]> git.mxchange.org Git - friendica.git/commitdiff
is sensitive
authorMichael <heluecht@pirati.ca>
Thu, 4 Oct 2018 13:08:11 +0000 (13:08 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 4 Oct 2018 13:08:11 +0000 (13:08 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 965c430a70394cf373e1ac44371a3726f07283d5..3700e6f9fb8d1bfada6722e72b1baa1b30ca40ad 100644 (file)
@@ -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'])) {