diff options
author | lain <lain@soykaf.club> | 2020-05-13 14:05:22 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-13 14:05:22 +0200 |
commit | 06cad239e50cada3aec4fc3b4c494a70d328672c (patch) | |
tree | b8c9ada87e554de5f37f02a3ff5af3b01bbee3e7 | |
parent | 3cff4e24cd8c56af47b1983ea97ec4643dbc183e (diff) | |
download | pleroma-06cad239e50cada3aec4fc3b4c494a70d328672c.tar.gz |
InstanceView: Add pleroma chat messages to nodeinfo
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/instance_view.ex | 3 | ||||
-rw-r--r-- | test/web/node_info_test.exs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex index a329ffc28..17cfc4fcf 100644 --- a/lib/pleroma/web/mastodon_api/views/instance_view.ex +++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -68,7 +68,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView 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 diff --git a/test/web/node_info_test.exs b/test/web/node_info_test.exs index 9bcc07b37..00925caad 100644 --- a/test/web/node_info_test.exs +++ b/test/web/node_info_test.exs @@ -145,7 +145,8 @@ defmodule Pleroma.Web.NodeInfoTest 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?( |