Add hide someone setting

This commit is contained in:
KMY 2023-05-15 14:21:30 +09:00
parent 1bcf3e8c0b
commit a85fbcd471
8 changed files with 39 additions and 6 deletions

View file

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