1
0
Fork 0
forked from mirrors/akkoma

activitypub: prime OGP crawler cache when new messages are inserted into the database

This commit is contained in:
William Pitcock 2019-01-28 06:07:18 +00:00
parent 8e42251e06
commit 91ef64a1ec

View file

@ -88,6 +88,10 @@ def insert(map, local \\ true) when is_map(map) do
recipients: recipients
})
Task.start(fn ->
Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
end)
Notification.create_notifications(activity)
stream_out(activity)
{:ok, activity}