From: foxing Date: Mon, 13 Mar 2023 03:40:20 +0000 (+0000) Subject: Use enum empty instead X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ba635e97c8ddcf92946e3d221dbf813189d21ab8;p=akkoma Use enum empty instead --- diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex index d06c80a12..2b5354873 100644 --- a/lib/pleroma/web/mastodon_api/views/instance_view.ex +++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -67,7 +67,7 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do "pleroma:api/v1/notifications:include_types_filter", "quote_posting", "editing", - if Config.get([:instance, :local_bubble], []) != [] do + if !Enum.empty?(Config.get([:instance, :local_bubble], [])) do "bubble_timeline" end, if Config.get([:media_proxy, :enabled]) do