mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-11-16 04:57:05 +01:00
Remove default value for rich media.
Setting it to true will actually override a 'false' set before.
This commit is contained in:
parent
e914eeb632
commit
b19b4f8537
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user