InstanceView: Add pleroma chat messages to nodeinfo

This commit is contained in:
lain 2020-05-13 14:05:22 +02:00
parent 3cff4e24cd
commit 06cad239e5
2 changed files with 4 additions and 2 deletions

View file

@ -68,7 +68,8 @@ def features do
if Config.get([:instance, :safe_dm_mentions]) do
"safe_dm_mentions"
end,
"pleroma_emoji_reactions"
"pleroma_emoji_reactions",
"pleroma_chat_messages"
]
|> Enum.filter(& &1)
end

View file

@ -145,7 +145,8 @@ test "it shows default features flags", %{conn: conn} do
"shareable_emoji_packs",
"multifetch",
"pleroma_emoji_reactions",
"pleroma:api/v1/notifications:include_types_filter"
"pleroma:api/v1/notifications:include_types_filter",
"pleroma_chat_messages"
]
assert MapSet.subset?(