Skip to content

Commit

Permalink
Add: Sharkeyをスタンプ利用可能なサーバーに追加 (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Dec 11, 2023
1 parent 0e32b3e commit 709e19c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/activitypub/activity/follow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def proxyable_software?
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
Expand Down
2 changes: 1 addition & 1 deletion app/lib/status_reach_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def banned_domains_for_misskey_of_status(status)
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
Expand Down
1 change: 1 addition & 0 deletions app/models/instance_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class InstanceInfo < ApplicationRecord
calckey
cherrypick
meisskey
sharkey
firefish
renedon
fedibird
Expand Down

0 comments on commit 709e19c

Please sign in to comment.