From: Michael Date: Thu, 4 Oct 2018 13:08:11 +0000 (+0000) Subject: is sensitive X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4368c922fb18732eced5c726f8813ee16fe4aee6;p=friendica.git is sensitive --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 965c430a70..3700e6f9fb 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -676,7 +676,7 @@ class Transmitter return $context_uri; } - private static function fetchSensitive($item_id) + private static function isSensitive($item_id) { $condition = ['otype' => TERM_OBJ_POST, 'oid' => $item_id, 'type' => TERM_HASHTAG, 'term' => 'nsfw']; return DBA::exists('term', $condition); @@ -727,7 +727,7 @@ class Transmitter $data['url'] = $item['plink']; $data['attributedTo'] = $item['author-link']; $data['actor'] = $item['author-link']; - $data['sensitive'] = self::fetchSensitive($item['id']); + $data['sensitive'] = self::isSensitive($item['id']); $data['context'] = self::fetchContextURLForItem($item); if (!empty($item['title'])) {