mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
activitypub: prime OGP crawler cache when new messages are inserted into the database
This commit is contained in:
parent
8e42251e06
commit
91ef64a1ec
|
@ -88,6 +88,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
recipients: recipients
|
recipients: recipients
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Task.start(fn ->
|
||||||
|
Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
|
||||||
|
end)
|
||||||
|
|
||||||
Notification.create_notifications(activity)
|
Notification.create_notifications(activity)
|
||||||
stream_out(activity)
|
stream_out(activity)
|
||||||
{:ok, activity}
|
{:ok, activity}
|
||||||
|
|
Loading…
Reference in a new issue