Add: Sharkeyをスタンプ利用可能なサーバーに追加 (#345)
This commit is contained in:
parent
9a64fe852e
commit
0838f1ac8f
3 changed files with 3 additions and 2 deletions
|
@ -103,7 +103,7 @@ class ActivityPub::Activity::Follow < ActivityPub::Activity
|
|||
info = instance_info
|
||||
return false if info.nil?
|
||||
|
||||
%w(misskey calckey firefish meisskey cherrypick).include?(info.software)
|
||||
%w(misskey calckey firefish meisskey cherrypick sharkey).include?(info.software)
|
||||
end
|
||||
|
||||
def instance_info
|
||||
|
|
|
@ -216,7 +216,7 @@ class StatusReachFinder
|
|||
return [] if status.public_searchability?
|
||||
return [] unless (status.public_unlisted_visibility? && status.account.user&.setting_reject_public_unlisted_subscription) || (status.unlisted_visibility? && status.account.user&.setting_reject_unlisted_subscription)
|
||||
|
||||
from_info = InstanceInfo.where(software: %w(misskey calckey cherrypick)).pluck(:domain)
|
||||
from_info = InstanceInfo.where(software: %w(misskey calckey cherrypick sharkey)).pluck(:domain)
|
||||
from_domain_block = DomainBlock.where(detect_invalid_subscription: true).pluck(:domain)
|
||||
(from_info + from_domain_block).uniq
|
||||
end
|
||||
|
|
|
@ -21,6 +21,7 @@ class InstanceInfo < ApplicationRecord
|
|||
calckey
|
||||
cherrypick
|
||||
meisskey
|
||||
sharkey
|
||||
firefish
|
||||
renedon
|
||||
fedibird
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue