discourse/app/models/concerns/reports/likes.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
242 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Reports::Likes
extend ActiveSupport::Concern
class_methods do
def report_likes(report)
report.icon = 'heart'
post_action_report report, PostActionType.types[:like]
end
end
end