From: foxing Date: Sat, 11 Mar 2023 03:26:48 +0000 (+0000) Subject: Show bubble_timeline in the api if any instances are set in it, do not show if none... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=19eb8264249ff41a516834fc0728cf652cafb6b9;p=akkoma Show bubble_timeline in the api if any instances are set in it, do not show if none are set --- diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex index 2717da99d..d06c80a12 100644 --- a/lib/pleroma/web/mastodon_api/views/instance_view.ex +++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -67,6 +67,9 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do "pleroma:api/v1/notifications:include_types_filter", "quote_posting", "editing", + if Config.get([:instance, :local_bubble], []) != [] do + "bubble_timeline" + end, if Config.get([:media_proxy, :enabled]) do "media_proxy" end,