]> git.mxchange.org Git - friendica.git/commitdiff
Issue 11875: Fetch post on activity
authorMichael <heluecht@pirati.ca>
Sat, 10 Dec 2022 21:48:00 +0000 (21:48 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 10 Dec 2022 21:48:00 +0000 (21:48 +0000)
src/Model/Item.php

index 8b9909f8bf06699ed71f0ff8a1b8bdbf52d54027..d9bd72d7c783d981de2d8338e5773494d698911b 100644 (file)
@@ -1629,7 +1629,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])) {
+                       !in_array($item['post-reason'], [self::PR_FOLLOWER, self::PR_TAG, self::PR_TO, self::PR_CC, self::PR_ACTIVITY])) {
                        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;
                }