Fix other setting merge misstake

This commit is contained in:
KMY 2023-05-14 14:40:39 +09:00
parent 1200842ca5
commit 6e31ac8714

View file

@ -173,7 +173,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
def other_setting def other_setting
config = { 'noindex' => object.noindex?, 'noai' => object.noai?, 'hide_network' => object.hide_collections } config = { 'noindex' => object.noindex?, 'noai' => object.noai?, 'hide_network' => object.hide_collections }
config.merge(object.settings) if object.settings.present? config = config.merge(object.settings) if object.settings.present?
config.map do |k, v| config.map do |k, v|
{ {
type: 'PropertyValue', type: 'PropertyValue',