Mark posts with a CW as sensitive

This commit is contained in:
~keith 2022-11-08 06:16:02 +00:00
parent f826ce70ce
commit 72006652e1
Signed by: keith
GPG key ID: 5BEBEEAB2C73D520

View file

@ -1611,7 +1611,7 @@ class Transmitter
$data['url'] = $link ?? $item['plink']; $data['url'] = $link ?? $item['plink'];
$data['attributedTo'] = $item['author-link']; $data['attributedTo'] = $item['author-link'];
$data['sensitive'] = self::isSensitive($item['uri-id']); $data['sensitive'] = self::isSensitive($item['uri-id']) || (array_key_exists('summary', $data) && $data['summary'] != '');
if (!empty($item['conversation']) && ($item['conversation'] != './')) { if (!empty($item['conversation']) && ($item['conversation'] != './')) {
$data['conversation'] = $data['context'] = $item['conversation']; $data['conversation'] = $data['context'] = $item['conversation'];