Merge branch 'hotfix/ogp-cachex-fix' into 'develop'
Rich media: Remove :commit since a tuple is already returned See merge request pleroma/pleroma!649
This commit is contained in:
commit
b57db828c7
@ -5,7 +5,7 @@ defmodule Pleroma.Web.RichMedia.Parser do
|
|||||||
def parse(url), do: parse_url(url)
|
def parse(url), do: parse_url(url)
|
||||||
else
|
else
|
||||||
def parse(url),
|
def parse(url),
|
||||||
do: {:commit, Cachex.fetch!(:rich_media_cache, url, fn _ -> parse_url(url) end)}
|
do: Cachex.fetch!(:rich_media_cache, url, fn _ -> parse_url(url) end)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp parse_url(url) do
|
defp parse_url(url) do
|
||||||
|
Loading…
Reference in New Issue
Block a user