mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:40:17 +00:00
is sensitive
This commit is contained in:
parent
0ebfa6fc12
commit
4368c922fb
1 changed files with 2 additions and 2 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in a new issue