Skip to content
Snippets Groups Projects
Commit 91ef64a1 authored by kaniini's avatar kaniini
Browse files

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

parent 8e42251e
Branches
No related tags found
No related merge requests found
......@@ -88,6 +88,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment