]> git.mxchange.org Git - friendica.git/commitdiff
Set "follower" on relayed posts as well
authorMichael <heluecht@pirati.ca>
Tue, 22 Sep 2020 05:57:03 +0000 (05:57 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 22 Sep 2020 05:57:03 +0000 (05:57 +0000)
src/Model/Item.php

index a42e4664607a579dc11744f2a928f100737fe3d0..970c5f4a569149c8c010b7a6ab30a6ff4d0d8fd2 100644 (file)
@@ -1712,7 +1712,7 @@ class Item
                $item['owner-id'] = ($item['owner-id'] ?? 0) ?: Contact::getIdForURL($item['owner-link'], 0, null, $default);
 
                $actor = ($item['gravity'] == GRAVITY_PARENT) ? $item['owner-id'] : $item['author-id'];
-               if (!$item['origin'] && in_array($item['post-type'], [self::PT_ARTICLE, self::PT_COMMENT, self::PT_GLOBAL]) && Contact::isSharing($actor, $item['uid'])) {
+               if (!$item['origin'] && in_array($item['post-type'], [self::PT_ARTICLE, self::PT_COMMENT, self::PT_RELAY, self::PT_GLOBAL]) && Contact::isSharing($actor, $item['uid'])) {
                        $item['post-type'] = self::PT_FOLLOWER;
                }