Ability to control the output of account/pleroma/relationship in statuses in order to improve the rendering performance.

See `[:extensions, output_relationships_in_statuses_by_default]` setting and `with_relationships` param.
This commit is contained in:
Ivan Tashkinov 2020-04-01 19:49:09 +03:00
commit 2f2bd7fe72
25 changed files with 278 additions and 76 deletions

View file

@ -262,6 +262,8 @@ config :pleroma, :instance,
extended_nickname_format: true,
cleanup_attachments: false
config :pleroma, :extensions, output_relationships_in_statuses_by_default: true
config :pleroma, :feed,
post_title: %{
max_length: 100,

View file

@ -121,6 +121,22 @@ config :pleroma, :config_description, [
}
]
},
%{
group: :pleroma,
key: :extensions,
type: :group,
description: "Pleroma-specific extensions",
children: [
%{
key: :output_relationships_in_statuses_by_default,
type: :beeolean,
description:
"If `true`, outputs account/pleroma/relationship map for each rendered status / notification (for all clients). " <>
"If `false`, outputs the above only if `with_relationships` param is tru-ish " <>
"(that breaks compatibility with older PleromaFE versions which do not send this param but expect the output)."
}
]
},
%{
group: :pleroma,
key: Pleroma.Uploaders.Local,