1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/routers/web
Chai-Shi 1a95d9d6a1
fix empty repo updated time (#33120)
fixes #33119 

routers/web/repo/view_home.go

![image](https://github.com/user-attachments/assets/b0d6c5f5-7abc-478a-8d41-4b44dbd460aa)

Calling `updateContextRepoEmptyAndStatus` will always ask the DB to
update the updated Unix attributes.
When revisiting the repo's home page, the timestamp will be updated
unexpectedly, so I added the needsUpdate variable to check whether, in
the end, the commitment to db update is necessary if columns have not
changed at all.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-07 01:54:06 +08:00
..
admin Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
auth Support for email addresses containing uppercase characters when activating user account (#32998) 2024-12-27 19:16:23 +08:00
devtest De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
feed Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
repo fix empty repo updated time (#33120) 2025-01-07 01:54:06 +08:00
shared [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
user Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
base.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-10-31 15:28:25 +00:00
githttp.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +08:00
goget.go Refactor RepoRefByType (#32413) 2024-11-05 06:35:54 +00:00
home.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go workflow_dispatch use workflow from trigger branch (#33098) 2025-01-05 21:47:18 +08:00
webfinger.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00