mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Prevent non-local notices from rendering.
This commit is contained in:
parent
886a07ba57
commit
4729027f91
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue