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 7d7e73042b
commit e89a02bb91

View file

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