Remove: #609 ローカルユーザー設定から購読許可を削除 (#782)

* #609 ローカルユーザー設定から購読許可を削除

* Fix test

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-07-31 13:01:36 +09:00 committed by GitHub
parent ec60b68608
commit 0c37295624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 34 additions and 146 deletions

View file

@ -7,14 +7,14 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
context :security
context_extensions :manually_approves_followers, :featured, :also_known_as,
:moved_to, :property_value, :discoverable, :olm, :suspended, :searchable_by, :subscribable_by,
:moved_to, :property_value, :discoverable, :olm, :suspended, :searchable_by,
:other_setting, :memorial, :indexable
attributes :id, :type, :following, :followers,
:inbox, :outbox, :featured, :featured_tags,
:preferred_username, :name, :summary,
:url, :manually_approves_followers,
:discoverable, :indexable, :published, :memorial, :searchable_by, :subscribable_by, :other_setting
:discoverable, :indexable, :published, :memorial, :searchable_by, :other_setting
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
@ -179,10 +179,6 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
ActivityPub::TagManager.instance.account_searchable_by(object)
end
def subscribable_by
ActivityPub::TagManager.instance.subscribable_by(object)
end
def other_setting
config = object.public_settings
config.map do |k, v|