logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

post.rb (445B)


  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