diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-05-17 20:43:31 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-05-17 23:00:14 +0000 |
commit | c4a55e167afcfd25cf4c1efb46886f2defe72c22 (patch) | |
tree | dbafd3e1e8e271197571b267f8676a9d9b2037f5 | |
parent | dc081595385084fe6b382e4b38c17cb51cf0a611 (diff) | |
download | pleroma-c4a55e167afcfd25cf4c1efb46886f2defe72c22.tar.gz |
add Changelog entry
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c439135..a73bf47d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Deps: Updated Ecto to 3.0.7 - Don't ship finmoji by default, they can be installed as an emoji pack - Hide deactivated users and their statuses +- Posts which are marked sensitive or tagged nsfw no longer have link previews. ### Fixed - Added an FTS index on objects. Running `vacuum analyze` and setting a larger `work_mem` is recommended. diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 8d6160976..d93c0d46e 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -232,7 +232,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do "cc" => cc, "content" => content_html, "summary" => cw, - "sensitive" => sensitive, + "sensitive" => !Enum.member?(["false", "False", "0", false], sensitive), "context" => context, "attachment" => attachments, "actor" => actor, |