Nodeinfo: Add chat information back in.
This commit is contained in:
parent
7c7a6509b9
commit
7ed2296416
@ -19,35 +19,7 @@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo do
|
|||||||
|> Enum.map(fn u -> u.ap_id end)
|
|> Enum.map(fn u -> u.ap_id end)
|
||||||
|
|
||||||
federation = InstanceView.federation()
|
federation = InstanceView.federation()
|
||||||
|
features = InstanceView.features()
|
||||||
features =
|
|
||||||
[
|
|
||||||
"pleroma_api",
|
|
||||||
"mastodon_api",
|
|
||||||
"mastodon_api_streaming",
|
|
||||||
"polls",
|
|
||||||
"pleroma_explicit_addressing",
|
|
||||||
"shareable_emoji_packs",
|
|
||||||
"multifetch",
|
|
||||||
"pleroma:api/v1/notifications:include_types_filter",
|
|
||||||
if Config.get([:media_proxy, :enabled]) do
|
|
||||||
"media_proxy"
|
|
||||||
end,
|
|
||||||
if Config.get([:gopher, :enabled]) do
|
|
||||||
"gopher"
|
|
||||||
end,
|
|
||||||
if Config.get([:chat, :enabled]) do
|
|
||||||
"chat"
|
|
||||||
end,
|
|
||||||
if Config.get([:instance, :allow_relay]) do
|
|
||||||
"relay"
|
|
||||||
end,
|
|
||||||
if Config.get([:instance, :safe_dm_mentions]) do
|
|
||||||
"safe_dm_mentions"
|
|
||||||
end,
|
|
||||||
"pleroma_emoji_reactions"
|
|
||||||
]
|
|
||||||
|> Enum.filter(& &1)
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
version: "2.0",
|
version: "2.0",
|
||||||
|
@ -142,7 +142,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?(
|
||||||
|
Loading…
Reference in New Issue
Block a user