include local instance in bubble timeline (#117)
[akkoma] / lib / pleroma / web / mastodon_api / controllers / timeline_controller.ex
index 6200263744bc468d010872c960e8d571a15b8414..b9978c05bb54b0d30b1f8a40672bf0ae19329b3d 100644 (file)
@@ -128,7 +128,11 @@ defmodule Pleroma.Web.MastodonAPI.TimelineController do
 
   # GET /api/v1/timelines/bubble
   def bubble(%{assigns: %{user: user}} = conn, params) do
-    bubble_instances = Config.get([:instance, :local_bubble], [])
+    bubble_instances =
+      Enum.uniq(
+        Config.get([:instance, :local_bubble], []) ++
+          [Pleroma.Web.Endpoint.host()]
+      )
 
     if is_nil(user) do
       fail_on_bad_auth(conn)