Prevent non-local notices from rendering.
authorPhil Hagelberg <phil@hagelb.org>
Fri, 8 Nov 2019 05:43:21 +0000 (21:43 -0800)
committerPhil Hagelberg <phil@hagelb.org>
Sun, 10 Nov 2019 02:08:45 +0000 (18:08 -0800)
lib/pleroma/web/static_fe/static_fe_controller.ex

index 0be47d6b350a8c2db72a2d821e149baa649b414f..66d2d0367c51f58db9561861c5911f3a00d80caa 100644 (file)
@@ -63,7 +63,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
 
   def show(%{assigns: %{notice_id: notice_id}} = conn, _params) do
     case Activity.get_by_id_with_object(notice_id) do
-      %Activity{} = activity ->
+      %Activity{local: true} = activity ->
         %User{} = user = User.get_by_ap_id(activity.object.data["actor"])
         meta = Metadata.build_tags(%{activity_id: notice_id, object: activity.object, user: user})