rich media: kill some testsuite noise

This commit is contained in:
William Pitcock 2019-01-28 20:55:33 +00:00
parent 0f11254a06
commit ddb5545202
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ defmodule Pleroma.HTML do
|> Floki.attribute("a", "href")
|> Enum.at(0)
{:commit, result}
{:commit, {:ok, result}}
end)
end
end

View file

@ -8,7 +8,7 @@ defmodule Pleroma.Web.RichMedia.Helpers do
def fetch_data_for_activity(%Activity{} = activity) do
with %Object{} = object <- Object.normalize(activity.data["object"]),
page_url <- HTML.extract_first_external_url(object, object.data["content"]),
{:ok, page_url} <- HTML.extract_first_external_url(object, object.data["content"]),
{:ok, rich_media} <- Parser.parse(page_url) do
%{page_url: page_url, rich_media: rich_media}
else