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 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
if Config.get([:instance, :safe_dm_mentions]) do if Config.get([:instance, :safe_dm_mentions]) do
"safe_dm_mentions" "safe_dm_mentions"
end, end,
"pleroma_emoji_reactions" "pleroma_emoji_reactions",
"pleroma_chat_messages"
] ]
|> Enum.filter(& &1) |> Enum.filter(& &1)
end end

View file

@ -145,7 +145,8 @@ defmodule Pleroma.Web.NodeInfoTest do
"shareable_emoji_packs", "shareable_emoji_packs",
"multifetch", "multifetch",
"pleroma_emoji_reactions", "pleroma_emoji_reactions",
"pleroma:api/v1/notifications:include_types_filter" "pleroma:api/v1/notifications:include_types_filter",
"pleroma_chat_messages"
] ]
assert MapSet.subset?( assert MapSet.subset?(