1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/routers
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
..
api Refactor package (routes and error handling, npm peer dependency) (#33111) 2025-01-06 22:45:20 +08:00
common Fix bleve fuzziness search (#33078) 2025-01-03 00:32:02 +08:00
install Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
private [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web fix empty repo updated time (#33120) 2025-01-07 01:54:06 +08:00
init.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00