Commit 29fac24
Backend/moderation: use UMS helper in get_num_references
Filter reference counts through where_moderated_content_visible instead
of checking ModerationState.visibility directly, matching ListReferences.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 1e55619 commit 29fac24
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
1013 | 1011 | | |
1014 | 1012 | | |
1015 | 1013 | | |
1016 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1017 | 1018 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1019 | + | |
1022 | 1020 | | |
1023 | 1021 | | |
1024 | 1022 | | |
| |||
1054 | 1052 | | |
1055 | 1053 | | |
1056 | 1054 | | |
1057 | | - | |
| 1055 | + | |
1058 | 1056 | | |
1059 | 1057 | | |
1060 | 1058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| |||
0 commit comments