Skip to content

Commit

Permalink
Change: #100 リモートのスタンプに相乗りした時、それをフォロワーのいるサーバーに配送 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Oct 13, 2023
1 parent 369f3c6 commit 61b8693
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/models/emoji_reaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ def custom_emoji?
custom_emoji.present?
end

def remote_custom_emoji?
custom_emoji? && !custom_emoji.local?
end

def sign?
status&.distributable_friend?
end
Expand Down
1 change: 0 additions & 1 deletion app/services/emoji_react_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def notify_to_followers(emoji_reaction)
status = emoji_reaction.status

return unless status.account.local?
return if emoji_reaction.remote_custom_emoji?

ActivityPub::RawDistributionWorker.perform_async(build_json(emoji_reaction), status.account_id)
end
Expand Down

0 comments on commit 61b8693

Please sign in to comment.