Merge pull request 'Show bubble_timeline in the api if any instances are set in it...
authorfloatingghost <hannah@coffee-and-dreams.uk>
Tue, 21 Mar 2023 10:13:41 +0000 (10:13 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Tue, 21 Mar 2023 10:13:41 +0000 (10:13 +0000)
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/502

lib/pleroma/web/mastodon_api/views/instance_view.ex

index 2717da99d950b3c441ee3c7263c30b4ba61959ae..2b535487377dd2a591fb9d3c1c5eb6faeb411ffa 100644 (file)
@@ -67,6 +67,9 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
       "pleroma:api/v1/notifications:include_types_filter",
       "quote_posting",
       "editing",
+      if !Enum.empty?(Config.get([:instance, :local_bubble], [])) do
+        "bubble_timeline"
+      end,
       if Config.get([:media_proxy, :enabled]) do
         "media_proxy"
       end,