From: Phil Hagelberg Date: Fri, 8 Nov 2019 05:43:21 +0000 (-0800) Subject: Prevent non-local notices from rendering. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4729027f91852a921cf74f507fbc1ac8761a07f0;p=akkoma Prevent non-local notices from rendering. --- diff --git a/lib/pleroma/web/static_fe/static_fe_controller.ex b/lib/pleroma/web/static_fe/static_fe_controller.ex index 0be47d6b3..66d2d0367 100644 --- a/lib/pleroma/web/static_fe/static_fe_controller.ex +++ b/lib/pleroma/web/static_fe/static_fe_controller.ex @@ -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})