]> git.mxchange.org Git - friendica.git/commitdiff
Fix #12262 - shared friendica posts are filtered on status page
authorMatthias Moritz <moritz370@googlemail.com>
Wed, 30 Nov 2022 11:15:58 +0000 (12:15 +0100)
committerMatthias Moritz <moritz370@googlemail.com>
Wed, 30 Nov 2022 11:15:58 +0000 (12:15 +0100)
Native shares from the same Instance (or maybe all Friendica instances) were filtered out from the users home. With this commit they now appear on the users Profile/Status

src/Module/Profile/Status.php

index 951a0e32702d4df6ca8852c1643ec6ee734a00fe..5dae349d7fbf643decd205be457fc4deafc57b4c 100644 (file)
@@ -174,8 +174,8 @@ class Status extends BaseProfile
 
                $condition = DBA::mergeConditions($condition, ["((`gravity` = ? AND `wall`) OR
                        (`gravity` = ? AND `vid` = ? AND `origin`
-                       AND `thr-parent-id` IN (SELECT `uri-id` FROM `post` WHERE `gravity` = ? AND `network` = ?)))",
-                       Item::GRAVITY_PARENT, Item::GRAVITY_ACTIVITY, Verb::getID(Activity::ANNOUNCE), Item::GRAVITY_PARENT, Protocol::ACTIVITYPUB]);
+                       AND `thr-parent-id` IN (SELECT `uri-id` FROM `post` WHERE `gravity` = ? )))",
+                       Item::GRAVITY_PARENT, Item::GRAVITY_ACTIVITY, Verb::getID(Activity::ANNOUNCE), Item::GRAVITY_PARENT]);
 
                $condition = DBA::mergeConditions($condition, ['uid' => $profile['uid'], 'network' => Protocol::FEDERATED,
                        'visible' => true, 'deleted' => false]);