activitypub: transmogrifier: unify mention extraction
This commit is contained in:
parent
0a2c1a3419
commit
6b4064fa5d
3 changed files with 10 additions and 6 deletions
|
|
@ -95,6 +95,10 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||
"#{Web.base_url()}/#{type}/#{UUID.generate()}"
|
||||
end
|
||||
|
||||
def get_notified_from_object(object) do
|
||||
User.get_notified_from_activity(%Activity{data: object}, false)
|
||||
end
|
||||
|
||||
def create_context(context) do
|
||||
context = context || generate_id("contexts")
|
||||
changeset = Object.context_mapping(context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue