1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-19 06:04:26 +00:00
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
..
2024-12-06 14:29:04 +00:00
2024-12-30 01:57:38 +00:00
2024-12-30 01:57:38 +00:00
2024-12-26 11:56:03 +08:00
2024-12-24 13:47:45 +00:00
2024-06-19 06:32:45 +08:00
2024-12-29 01:05:56 +00:00
2024-12-30 01:57:38 +00:00
2024-12-30 01:57:38 +00:00
2024-12-24 13:47:45 +00:00
2024-12-30 01:57:38 +00:00
2024-05-03 09:13:48 +00:00
2025-01-03 00:32:02 +08:00
2024-12-30 01:57:38 +00:00