Add test validating the activity_id is correctly present in the Oban job

This was preventing the activity from being streamed over websockets.
This commit is contained in:
Mark Felder 2024-06-23 20:56:58 -04:00
commit 634e3d4155
3 changed files with 8 additions and 1 deletions

View file

@ -83,7 +83,7 @@ defmodule Pleroma.Web.RichMedia.Card do
card
nil ->
activity_id = Keyword.get(opts, :activity, nil)
activity_id = Keyword.get(opts, :activity_id, nil)
RichMediaWorker.new(%{"op" => "backfill", "url" => url, "activity_id" => activity_id})
|> Oban.insert()