mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-12 22:10:25 +00:00
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>
29 lines
755 B
YAML
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
|