mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-27 05:04:46 +00:00
15 lines
406 B
Elixir
15 lines
406 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Workers.RichMediaWorker do
|
|
alias Pleroma.Web.RichMedia.Card
|
|
|
|
use Oban.Worker,
|
|
queue: :background
|
|
|
|
@impl Oban.Worker
|
|
def perform(%Job{args: %{"op" => "expire", "url" => url} = _args}) do
|
|
Card.delete(url)
|
|
end
|
|
end
|