feat(ModerationReports): enhance moderation reports functionality and UI
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
- Added topic and forum IDs to moderation report queries for better context. - Updated admin interface to include links to open reported forum messages. - Implemented methods to handle opening target messages directly from the moderation reports view. - Enhanced internationalization support for new UI elements in both German and English. - Improved scrolling behavior to focus on specific messages when navigating to them.
This commit is contained in:
@@ -95,6 +95,8 @@ class ModerationService extends BaseService {
|
||||
r.id,
|
||||
r.target_type AS "targetType",
|
||||
r.target_id AS "targetId",
|
||||
fm.title_id AS "topicId",
|
||||
ft.forum_id AS "forumId",
|
||||
r.reason,
|
||||
r.details,
|
||||
r.status,
|
||||
@@ -106,6 +108,10 @@ class ModerationService extends BaseService {
|
||||
FROM community.moderation_report r
|
||||
JOIN community.user reporter ON reporter.id = r.reporter_user_id
|
||||
LEFT JOIN community.user reviewer ON reviewer.id = r.reviewer_user_id
|
||||
LEFT JOIN forum.message fm
|
||||
ON r.target_type = 'forum_message'
|
||||
AND fm.id = r.target_id
|
||||
LEFT JOIN forum.title ft ON ft.id = fm.title_id
|
||||
WHERE r.status = :status
|
||||
ORDER BY r.created_at DESC
|
||||
LIMIT :limit
|
||||
|
||||
Reference in New Issue
Block a user