From 61b8693022e1f03f87b1a50eda2b448c1844633d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Fri, 13 Oct 2023 19:13:44 +0900 Subject: [PATCH] =?UTF-8?q?Change:=20#100=20=E3=83=AA=E3=83=A2=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=82=B9=E3=82=BF=E3=83=B3=E3=83=97=E3=81=AB?= =?UTF-8?q?=E7=9B=B8=E4=B9=97=E3=82=8A=E3=81=97=E3=81=9F=E6=99=82=E3=80=81?= =?UTF-8?q?=E3=81=9D=E3=82=8C=E3=82=92=E3=83=95=E3=82=A9=E3=83=AD=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E3=81=84=E3=82=8B=E3=82=B5=E3=83=BC=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=81=AB=E9=85=8D=E9=80=81=20(#111)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/emoji_reaction.rb | 4 ---- app/services/emoji_react_service.rb | 1 - 2 files changed, 5 deletions(-) diff --git a/app/models/emoji_reaction.rb b/app/models/emoji_reaction.rb index 5d6d58513cc92d..a562865f3a18b4 100644 --- a/app/models/emoji_reaction.rb +++ b/app/models/emoji_reaction.rb @@ -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 diff --git a/app/services/emoji_react_service.rb b/app/services/emoji_react_service.rb index 250868b3bc943f..c3135bdff2d8c3 100644 --- a/app/services/emoji_react_service.rb +++ b/app/services/emoji_react_service.rb @@ -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