mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-10-30 05:23:10 +00:00
16 lines
409 B
Elixir
16 lines
409 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.RichMediaExpirationWorker do
|
||
|
alias Pleroma.Web.RichMedia.Card
|
||
|
|
||
|
use Oban.Worker,
|
||
|
queue: :rich_media_expiration
|
||
|
|
||
|
@impl Oban.Worker
|
||
|
def perform(%Job{args: %{"url" => url} = _args}) do
|
||
|
Card.delete(url)
|
||
|
end
|
||
|
end
|