Add hide someone setting
This commit is contained in:
parent
1bcf3e8c0b
commit
a85fbcd471
8 changed files with 39 additions and 6 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue