mod reports: include reported user and message in forum post.

Also fix it so that reports against dmails include the key in the dmail
link so that mods can view the reported dmail.
This commit is contained in:
evazion
2020-02-03 04:42:09 -06:00
parent bb2022abed
commit 24cb920608
7 changed files with 36 additions and 12 deletions

View File

@@ -424,7 +424,7 @@ class ApplicationRecord < ActiveRecord::Base
end
concerning :DtextMethods do
def dtext_shortlink
def dtext_shortlink(**options)
"#{self.class.name.underscore.tr("_", " ")} ##{id}"
end
end