Remove default value for rich media.
authorlain <lain@soykaf.club>
Thu, 31 Jan 2019 19:02:08 +0000 (20:02 +0100)
committerlain <lain@soykaf.club>
Thu, 31 Jan 2019 19:02:08 +0000 (20:02 +0100)
Setting it to true will actually override a 'false' set before.

lib/pleroma/web/rich_media/helpers.ex

index 44e876777c92ce93b1cbdd4c1ae3a9c6fb466130..521fa7ee048cabcee0b465f524cae89170a56184 100644 (file)
@@ -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