diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-01-28 06:07:18 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-28 06:07:18 +0000 |
commit | 91ef64a1ece210d86ad970cd751b5c7fe36df41b (patch) | |
tree | c63b3937165525e75c30bee77460164953857482 | |
parent | 8e42251e064b4de6f1d767f28c79d64ca74dc245 (diff) | |
download | pleroma-91ef64a1ece210d86ad970cd751b5c7fe36df41b.tar.gz pleroma-91ef64a1ece210d86ad970cd751b5c7fe36df41b.zip |
activitypub: prime OGP crawler cache when new messages are inserted into the database
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 4 |
1 files changed, 4 insertions, 0 deletions
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} |