Attempt enum empty instead of checking against a literal array

This commit is contained in:
Fox 2023-03-13 12:31:44 +09:00
parent 71d3c83a4a
commit c13df70d38

View file

@ -66,6 +66,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
"shareable_emoji_packs",
"multifetch",
"pleroma:api/v1/notifications:include_types_filter",
"quote_posting",
if !Enum.empty?(Config.get([:instance, :local_bubble], [])) do
"bubble_timeline"
end,
"editing",
if Config.get([:media_proxy, :enabled]) do
"media_proxy"