Commit b57db828 authored by rinpatch's avatar rinpatch
Browse files

Merge branch 'hotfix/ogp-cachex-fix' into 'develop'

Rich media: Remove :commit since a tuple is already returned

See merge request !649
parents 1881680e a2d7f0e0
Pipeline #6118 passed with stages
in 3 minutes and 40 seconds
......@@ -5,7 +5,7 @@ defmodule Pleroma.Web.RichMedia.Parser do
def parse(url), do: parse_url(url)
else
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
defp parse_url(url) do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment