forgejo-aneksajo/models/activities
forgejo-backport-action 06cb8dfcca [v12.0/forgejo] fix: make the action feed resilient to database inconsistencies (#8618)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8617

This reverts commit 7380eac5a2.

Resolves forgejo/forgejo#8612

It is possible for the action feed to reference deleted repositories the
`INNER JOIN` will make sure that these are filtered out. We cannot
filter these out after the fact, because the value of `count` will still
be incorrect.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/8617): <!--number 8617 --><!--line 0 --><!--description bWFrZSB0aGUgYWN0aW9uIGZlZWQgcmVzaWxpZW50IHRvIGRhdGFiYXNlIGluY29uc2lzdGVuY2llcw==-->make the action feed resilient to database inconsistencies<!--description-->
<!--end release-notes-assistant-->

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8618
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-07-23 00:18:50 +02:00
..
action.go [v12.0/forgejo] fix: make the action feed resilient to database inconsistencies (#8618) 2025-07-23 00:18:50 +02:00
action_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
action_test.go [v12.0/forgejo] fix: make the action feed resilient to database inconsistencies (#8618) 2025-07-23 00:18:50 +02:00
federated_user_activity.go Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
federated_user_activity_test.go Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification_list.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
notification_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
repo_activity.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo_activity_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
statistic.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_heatmap.go fix: include activity needed for entire heatmap (#7893) 2025-05-21 05:25:39 +02:00
user_heatmap_test.go fix: include activity needed for entire heatmap (#7893) 2025-05-21 05:25:39 +02:00