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
Pipeline #6678 failed with stages
in 39 seconds
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment