activitypub: transmogrifier: unify mention extraction
This commit is contained in:
parent
0a2c1a3419
commit
6b4064fa5d
3 changed files with 10 additions and 6 deletions
|
|
@ -482,7 +482,10 @@ defmodule Pleroma.User do
|
|||
|
||||
def get_notified_from_activity(activity, local_only \\ true)
|
||||
|
||||
def get_notified_from_activity(%Activity{data: %{"type" => "Announce", "to" => to} = data}, local_only) do
|
||||
def get_notified_from_activity(
|
||||
%Activity{data: %{"type" => "Announce", "to" => to} = data},
|
||||
local_only
|
||||
) do
|
||||
object = Object.normalize(data["object"])
|
||||
actor = User.get_cached_by_ap_id(data["actor"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue