]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Store "audience" and "attributedTo" data
[friendica.git] / src / Model / Item.php
index d7de9ca49635fd3eae1286744edfb93eba69b721..89446c492bc01697dcad8114d925290575426d73 100644 (file)
@@ -79,6 +79,7 @@ class Item
        const PR_DISTRIBUTE = 79;
        const PR_PUSHED = 80;
        const PR_LOCAL = 81;
+       const PR_AUDIENCE = 82;
 
        // system.accept_only_sharer setting values
        const COMPLETION_NONE    = 1;
@@ -1624,7 +1625,7 @@ class Item
 
                if (($uid != 0) && (($item['gravity'] == self::GRAVITY_PARENT) || $is_reshare) &&
                        DI::pConfig()->get($uid, 'system', 'accept_only_sharer') == self::COMPLETION_NONE &&
-                       !in_array($item['post-reason'], [self::PR_FOLLOWER, self::PR_TAG, self::PR_TO, self::PR_CC, self::PR_ACTIVITY])) {
+                       !in_array($item['post-reason'], [self::PR_FOLLOWER, self::PR_TAG, self::PR_TO, self::PR_CC, self::PR_ACTIVITY, self::PR_AUDIENCE])) {
                        Logger::info('Contact is not a follower, thread will not be stored', ['author' => $item['author-link'], 'uid' => $uid, 'uri-id' => $uri_id, 'post-reason' => $item['post-reason']]);
                        return 0;
                }