You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
Yarden Shoham f2a9951741
Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570)
We make sure the user cards are updated

- Fixes https://github.com/go-gitea/gitea/issues/32561

I also removed `ctx.Data["PageIsWatchers"] = true` and
`ctx.Data["PageIsStargazers"] = true` as they are not used anywhere.

# Before

![before](https://github.com/user-attachments/assets/e3bc3235-35eb-4eda-862d-bdf2510282ea)

# After

![after](https://github.com/user-attachments/assets/bc0488a5-8399-4cf6-95c9-17328a9702eb)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
3 months ago
..
actions Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 4 months ago
setting Refactor push mirror find and add check for updating push mirror (#32539) 3 months ago
activity.go Replace DateTime with DateUtils (#32383) 4 months ago
attachment.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 4 months ago
blame.go Refactor DateUtils and merge TimeSince (#32409) 4 months ago
branch.go Support repo license (#24872) 5 months ago
cherry_pick.go Refactor names (#31405) 8 months ago
code_frequency.go Move context from modules to services (#29440) 1 year ago
commit.go Refactor markup render system (#32589) 3 months ago
compare.go Refactor markup render system (#32589) 3 months ago
contributors.go Fix Activity Page Contributors dropdown (#31264) 9 months ago
download.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 4 months ago
editor.go Notify the user when the file path contains leading or trailing spaces and fix the error message for invalid file names. (#31507) 5 months ago
editor_test.go Refactor names (#31405) 8 months ago
find.go Refactor names (#31405) 8 months ago
fork.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 11 months ago
githttp.go Fix git error handling (#32401) 4 months ago
githttp_test.go Fix http protocol auth (#27875) 1 year ago
helper.go Add option to filter board cards by labels and assignees (#31999) 5 months ago
issue.go Refactor markup render system (#32589) 3 months ago
issue_comment.go Refactor markup render system (#32589) 3 months ago
issue_content_history.go Refactor DateUtils and merge TimeSince (#32409) 4 months ago
issue_dependency.go Refactor names (#31405) 8 months ago
issue_label.go Refactor sidebar label selector (#32460) 3 months ago
issue_label_test.go Refactor sidebar label selector (#32460) 3 months ago
issue_list.go Move some functions from issue.go to standalone files (#32468) 3 months ago
issue_lock.go Move context from modules to services (#29440) 1 year ago
issue_new.go Move some functions from issue.go to standalone files (#32468) 3 months ago
issue_page_meta.go Fix get reviewers' bug (#32415) 3 months ago
issue_pin.go Refactor names (#31405) 8 months ago
issue_poster.go Move some functions from issue.go to standalone files (#32468) 3 months ago
issue_stopwatch.go Move context from modules to services (#29440) 1 year ago
issue_suggestions.go Fix suggestions for issues (#32380) 4 months ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Refactor names (#31405) 8 months ago
issue_view.go Refactor markup render system (#32589) 3 months ago
issue_watch.go Move context from modules to services (#29440) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go Move context from modules to services (#29440) 1 year ago
migrate.go Fix javascript error when an anonymous user visiting migration page (#32144) 5 months ago
milestone.go Refactor markup render system (#32589) 3 months ago
packages.go Remove AddParamIfExist(AddParam) (#29841) 11 months ago
patch.go Move context from modules to services (#29440) 1 year ago
projects.go Refactor markup render system (#32589) 3 months ago
projects_test.go Refactor names (#31405) 8 months ago
pull.go Add line-through for deleted branch on pull request view page (#32500) 3 months ago
pull_review.go Move some functions from issue.go to standalone files (#32468) 3 months ago
pull_review_test.go Fix template error when comment review doesn't exist (#29888) 11 months ago
recent_commits.go Move context from modules to services (#29440) 1 year ago
release.go Refactor markup render system (#32589) 3 months ago
release_test.go Move context from modules to services (#29440) 1 year ago
render.go Refactor markup render system (#32589) 3 months ago
repo.go Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 3 months ago
search.go Improve grep search (#30843) 10 months ago
search_test.go Improve grep search (#30843) 10 months ago
topic.go Move context from modules to services (#29440) 1 year ago
treelist.go Move context from modules to services (#29440) 1 year ago
view.go Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 3 months ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Refactor markup render system (#32589) 3 months ago
wiki_test.go Fix raw wiki links (#31825) 6 months ago