Merge branch 'refactor/use-job-queue-everywhere' into 'develop'
use job queue everywhere Closes #862 See merge request pleroma/pleroma!1142
This commit is contained in:
commit
692919c7d2
4 changed files with 89 additions and 55 deletions
|
|
@ -133,9 +133,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
activity
|
||||
end
|
||||
|
||||
Task.start(fn ->
|
||||
Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
|
||||
end)
|
||||
PleromaJobQueue.enqueue(:background, Pleroma.Web.RichMedia.Helpers, [:fetch, activity])
|
||||
|
||||
Notification.create_notifications(activity)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue