mod reports: enable reporting for members, add dmail reporting.

* Add ability to report dmails.
* Enable reports for comments, forum posts, and dmails.
* Allow Members to send reports.
* Don't allow users to report the same thing twice.
This commit is contained in:
evazion
2020-01-27 12:55:59 -06:00
parent 812918556f
commit af044c45db
19 changed files with 56 additions and 49 deletions

View File

@@ -827,7 +827,7 @@ class User < ApplicationRecord
@presenter ||= UserPresenter.new(self)
end
def viewable_moderation_reports
CurrentUser.is_moderator? ? moderation_reports.recent : []
def dtext_shortlink
"<@#{name}>"
end
end