add Changelog entry
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 17 May 2019 20:43:31 +0000 (20:43 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 17 May 2019 23:00:14 +0000 (23:00 +0000)
CHANGELOG.md
lib/pleroma/web/common_api/utils.ex

index 12c43913511f4e9dda5368c0daaf51bab669e27c..a73bf47d26ee493c27b563a894bd8bb32c586985 100644 (file)
@@ -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.
index 8d616097694a570f01b6e382e657250a50b83486..d93c0d46e5962ba93bc2796a738ac294dbbcd656 100644 (file)
@@ -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,