forgejo/tests/integration/fixtures/TestAdminModerationViewReports/comment.yml
floss4good a93fa287f4
Some checks failed
/ release (push) Has been cancelled
testing-integration / test-unit (push) Has been cancelled
testing-integration / test-sqlite (push) Has been cancelled
testing-integration / test-mariadb (v10.6) (push) Has been cancelled
testing-integration / test-mariadb (v11.8) (push) Has been cancelled
testing / backend-checks (push) Has been cancelled
testing / frontend-checks (push) Has been cancelled
testing / test-unit (push) Has been cancelled
testing / test-e2e (push) Has been cancelled
testing / test-remote-cacher (redis) (push) Has been cancelled
testing / test-remote-cacher (valkey) (push) Has been cancelled
testing / test-remote-cacher (garnet) (push) Has been cancelled
testing / test-remote-cacher (redict) (push) Has been cancelled
testing / test-mysql (push) Has been cancelled
testing / test-pgsql (push) Has been cancelled
testing / test-sqlite (push) Has been cancelled
testing / security-check (push) Has been cancelled
fix: make sure the details page is still rendered correctly even if the poster of reported comment was deleted (#10199)
When opening the report details page of a reported comment who's poster was meanwhile deleted, the title was wrongly saying that _Reported content with type 4 and id ... no longer exists_ (on the overview page the title was correctly showing the content reference). This PR fixes the issue and adds some tests for this case.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10199
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: floss4good <floss4good@disroot.org>
Co-committed-by: floss4good <floss4good@disroot.org>
2025-11-21 23:04:09 +01:00

29 lines
755 B
YAML

-
id: 1001
type: 0 # Standard comment
poster_id: 1002 # @spammer01
issue_id: 1001 # contributor/first#1
content: And the first spammer; check SPAM-services/spammer-Tools#1
created_unix: 1121422990 # 2005-07-15 10:23:10
-
id: 1002
type: 5 # Reference from a comment
poster_id: 1002 # @spammer01
issue_id: 1002 # SPAM-services/spammer-tools#1
content: ''
content_version: 0
created_unix: 1121422990
ref_repo_id: 1001
ref_issue_id: 1001
ref_comment_id: 1001
ref_action: 0
ref_is_pull: false
-
id: 1003
type: 0 # Standard comment
poster_id: 9999 # Ghost user
issue_id: 1001 # contributor/first#1
content: Check my [website](https://test.net) for the best deals.
created_unix: 1752697810 # 2025-07-16 20:30:10