2
0

Add ability to manage which websites can credit you in link previews (#31819)

This commit is contained in:
Eugen Rochko
2024-09-10 14:00:40 +02:00
committed by GitHub
parent 3929e3c6d2
commit e0c27a5047
92 changed files with 381 additions and 160 deletions

View File

@@ -117,6 +117,7 @@ class ActivityPub::ProcessAccountService < BaseService
@account.discoverable = @json['discoverable'] || false
@account.indexable = @json['indexable'] || false
@account.memorial = @json['memorial'] || false
@account.attribution_domains = as_array(@json['attributionDomains'] || []).map { |item| value_or_id(item) }
end
def set_fetchable_key!