mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 15:09:48 +08:00
14 lines
242 B
Ruby
14 lines
242 B
Ruby
|
# 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
|