Fixed Fix report closure notification to link to reported content

Steffen

Well-known member
Affected version
2.2.7
If you report multiple posts in a single thread then all report closure notifications look the same and you don't know which report was resolved and which was rejected or which post/report a closure comment belongs to. This can be fixed by adding a link that points to the reported content. The variables already exist, they are just not used in the templates.

1. In the following four templates, the value of the "title" parameter needs to be changed from $extra.title to '<a href="' . $extra.link . '" class="fauxBlockLink-blockLink">' . $extra.title . '</a>':
  • unfortunately_report_made_recently_rejected
  • unfortunately_report_made_recently_rejected_comment_x
  • report_that_you_made_recently_has_been_resolved
  • report_that_you_made_recently_has_been_resolved_comment_x

2. In the following two templates, the tag <push:url>{{ base_url($extra.link, 'canonical') }}</push:url> needs to be appended:
  • push_user_report_resolved
  • push_user_report_rejected
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.9).

Change log:
Append content link and title to report closure alerts.
There may be a delay before changes are rolled out to the XenForo Community.
 

Kruzya

Well-known member
Post can be deleted when report is handling by moderator. Link in this cases can be really helpful, if user don't remember post content?
 
Top