diff --git a/app/models/abuse_report.rb b/app/models/abuse_report.rb index 7fa90f9e0c..7f128cfc26 100644 --- a/app/models/abuse_report.rb +++ b/app/models/abuse_report.rb @@ -182,10 +182,11 @@ def creator_ids end end - # ID of the reported work, unless the report is about comment(s) on the work + # ID of the reported work, unless the report is about comment(s) or bookmark(s) on the work def reported_work_id comments = url[%r{/comments/}, 0] - url[%r{/works/(\d+)}, 1] if comments.nil? + bookmarks = url[%r{/bookmarks}, 0] + url[%r{/works/(\d+)}, 1] if comments.nil? && bookmarks.nil? end # ID of the reported comment