From: lain Date: Thu, 31 Jan 2019 19:02:08 +0000 (+0100) Subject: Remove default value for rich media. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b19b4f85376f6bad33bb37b1624f45dbd502bfda;p=akkoma Remove default value for rich media. Setting it to true will actually override a 'false' set before. --- diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex index 44e876777..521fa7ee0 100644 --- a/lib/pleroma/web/rich_media/helpers.ex +++ b/lib/pleroma/web/rich_media/helpers.ex @@ -7,7 +7,7 @@ defmodule Pleroma.Web.RichMedia.Helpers do alias Pleroma.Web.RichMedia.Parser def fetch_data_for_activity(%Activity{} = activity) do - with true <- Pleroma.Config.get([:rich_media, :enabled], true), + with true <- Pleroma.Config.get([:rich_media, :enabled]), %Object{} = object <- Object.normalize(activity.data["object"]), {:ok, page_url} <- HTML.extract_first_external_url(object, object.data["content"]), {:ok, rich_media} <- Parser.parse(page_url) do