projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e914eeb
)
Remove default value for rich media.
author
lain
<lain@soykaf.club>
Thu, 31 Jan 2019 19:02:08 +0000
(20:02 +0100)
committer
lain
<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
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/rich_media/helpers.ex
b/lib/pleroma/web/rich_media/helpers.ex
index 44e876777c92ce93b1cbdd4c1ae3a9c6fb466130..521fa7ee048cabcee0b465f524cae89170a56184 100644
(file)
--- 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