From: William Pitcock Date: Mon, 28 Jan 2019 06:07:18 +0000 (+0000) Subject: activitypub: prime OGP crawler cache when new messages are inserted into the database X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=91ef64a1ece210d86ad970cd751b5c7fe36df41b;p=akkoma activitypub: prime OGP crawler cache when new messages are inserted into the database --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index feff22400..0199ac9e7 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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}