Fix module struct matching

This commit is contained in:
Mark Felder 2024-05-07 22:27:18 -04:00
parent 9a83301ff8
commit 54c2bab25f

View file

@ -47,7 +47,7 @@ defmodule Pleroma.Web.RichMedia.Card do
@cachex.del(:rich_media_cache, url_hash)
case get_by_url(url) do
%__MODULE{} = card -> Repo.delete(card)
%__MODULE__{} = card -> Repo.delete(card)
nil -> :ok
end
end