forgejo/tests/integration/fixtures/TestAdminModerationViewReports/user.yml
floss4good d87e2e7e40 feat: Admin interface for abuse reports (#7905)
- Implementation of milestone 5. from **Task F. Moderation features: Reporting** (part of [amendment of the workplan](https://codeberg.org/forgejo/sustainability/src/branch/main/2022-12-01-nlnet/2025-02-07-extended-workplan.md#task-f-moderation-features-reporting) for NLnet 2022-12-035):
  `5. Forgejo admins can see a list of reports`
  There is a lot of room for improvements, but it was decided to start with a basic version so that feedback can be collected from real-life usages (based on which the UI might change a lot).
- Also covers milestone 2. from same **Task F. Moderation features: Reporting**:
  `2. Reports from multiple users are combined in the database and don't create additional reports.`
  But instead of combining the reports when stored, they are grouped when retrieved (it was concluded _that it might be preferable to take care of the deduplication while implementing the admin interface_; see https://codeberg.org/forgejo/forgejo/pulls/7939#issuecomment-4841754 for more details).

---

Follow-up of !6977

### See also:
- forgejo/design#30

---

This adds a new _Moderation reports_ section (/admin/moderation/reports) within the _Site administration_ page, where administrators can see an overview with the submitted abuse reports that are still open (not yet handled in any way). When multiple reports exist for the same content (submitted by distinct users) only the first one will be shown in the list and a counter can be seen on the right side (indicating the number of open reports for the same content type and ID). Clicking on the counter or the icon from the right side will open the details page where a list with all the reports (when multiple) linked to the reported content is available, as well as any shadow copy saved for the current report(s).
The new section is available only when moderation in enabled ([moderation] ENABLED config is set as true within app.ini).

Discussions regarding the UI/UX started with https://codeberg.org/forgejo/design/issues/30#issuecomment-2908849

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7905
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: jerger <jerger@noreply.codeberg.org>
Co-authored-by: floss4good <floss4good@disroot.org>
Co-committed-by: floss4good <floss4good@disroot.org>
2025-07-23 00:20:15 +02:00

108 lines
2.5 KiB
YAML

-
id: 1001
lower_name: contributor
name: contributor
full_name: The Contributor
email: contributor@example.org
keep_email_private: true
passwd: passwdSalt:password
passwd_hash_algo: dummy
type: 0
salt: passwdSalt
description: ''
created_unix: 1121422200 # 2005-07-15 10:10:00
is_active: true
is_admin: false
is_restricted: false
avatar: avatar-hash-1001
avatar_email: contributor@example.org
use_custom_avatar: false
num_repos: 1
-
id: 1002
lower_name: spammer01
name: spammer01
full_name: King of SPAM
email: spammer01@example.org
keep_email_private: false
passwd: passwdSalt:password
passwd_hash_algo: dummy
type: 0
location: '@master@smap.net'
website: http://spammer.xyz
pronouns: http://spam.me
salt: passwdSalt
description: I can help you abuse others inboxes. Updated prices on spammer.xyz/services
created_unix: 1121422800 # 2005-07-15 10:20:00
is_active: true
is_admin: false
is_restricted: false
avatar: avatar-hash-1002
avatar_email: spammer01@example.org
use_custom_avatar: false
-
id: 1003
lower_name: spam-services
name: SPAM-services
full_name: SPAM services
email: get@spamservices.co
keep_email_private: false
email_notifications_preference: ''
passwd: ''
passwd_hash_algo: ''
type: 1
location: www.spamservices.co
website: https://spamservices.co
salt: 1888c34e04642082a791b49cf147cc88
description: Contact us for **bulk emails** sending.
created_unix: 1121422860 # 2005-07-15 10:21:00
is_active: true
is_admin: false
is_restricted: false
allow_create_organization: false
avatar: avatar-hash-1003
avatar_email: ''
use_custom_avatar: true
num_repos: 1
-
id: 1004
lower_name: reporter1
name: reporter1
full_name: Reporter One
email: reporter1@example.org
keep_email_private: true
passwd: passwdSalt:password
passwd_hash_algo: dummy
type: 0
salt: passwdSalt
description: ''
created_unix: 1121423400 # 2005-07-15 10:30:00
is_active: true
is_admin: false
is_restricted: false
avatar: avatar-hash-1004
avatar_email: reporter1@example.org
use_custom_avatar: false
-
id: 1005
lower_name: reporter2
name: reporter2
full_name: Reporter Two
email: reporter2@example.org
keep_email_private: true
passwd: passwdSalt:password
passwd_hash_algo: dummy
type: 0
salt: passwdSalt
description: ''
created_unix: 1121424000 # 2005-07-15 10:40:00
is_active: true
is_admin: false
is_restricted: false
avatar: avatar-hash-1005
avatar_email: reporter2@example.org
use_custom_avatar: false