mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Fix module struct matching
This commit is contained in:
parent
9a83301ff8
commit
54c2bab25f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ defmodule Pleroma.Web.RichMedia.Card do
|
||||||
@cachex.del(:rich_media_cache, url_hash)
|
@cachex.del(:rich_media_cache, url_hash)
|
||||||
|
|
||||||
case get_by_url(url) do
|
case get_by_url(url) do
|
||||||
%__MODULE{} = card -> Repo.delete(card)
|
%__MODULE__{} = card -> Repo.delete(card)
|
||||||
nil -> :ok
|
nil -> :ok
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue