InstanceView: Add pleroma chat messages to nodeinfo
authorlain <lain@soykaf.club>
Wed, 13 May 2020 12:05:22 +0000 (14:05 +0200)
committerlain <lain@soykaf.club>
Wed, 13 May 2020 12:05:22 +0000 (14:05 +0200)
lib/pleroma/web/mastodon_api/views/instance_view.ex
test/web/node_info_test.exs

index a329ffc28e94e263aefa946fbe0babcbbbcc699e..17cfc4fcf21fa72f63b578fa2eb61978810a0b11 100644 (file)
@@ -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
index 9bcc07b37c50f2a240b28b29bc5e47eb363ebbc4..00925caad9b14344ca24b621059137118df2daff 100644 (file)
@@ -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?(