You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
445 B

  1. # frozen_string_literal: true
  2. class Ostatus::Activity::Post < Ostatus::Activity::Creation
  3. def perform
  4. status, just_created = super
  5. if just_created
  6. status.mentions.includes(:account).each do |mention|
  7. mentioned_account = mention.account
  8. next unless mentioned_account.local?
  9. NotifyService.new.call(mentioned_account, mention)
  10. end
  11. end
  12. status
  13. end
  14. private
  15. def reblog
  16. nil
  17. end
  18. end