]> git.mxchange.org Git - friendica-addons.git/commitdiff
Issue 12161: Fix Unknown column 'post-view.id'
authorMichael <heluecht@pirati.ca>
Sat, 12 Nov 2022 13:13:58 +0000 (13:13 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 12 Nov 2022 13:13:58 +0000 (13:13 +0000)
pumpio/pumpio.php

index 7c71919fe2d9c1d209d92f2c5d481d071d02e70c..903450c232fa76c8e43e911f4743a5cc3f6769cf 100644 (file)
@@ -1226,7 +1226,7 @@ function pumpio_fetchinbox(App $a, int $uid)
        $self = User::getOwnerDataById($uid);
 
        $lastitems = DBA::p("SELECT `uri` FROM `post-thread-user`
-               INNER JOIN `post-view` ON `post-view`.`id` = `post-thread-user`.`id`
+               INNER JOIN `post-view` ON `post-view`.`uri-id` = `post-thread-user`.`uri-id`
                WHERE `post-thread-user`.`network` = ? AND `post-thread-user`.`uid` = ? AND `post-view`.`extid` != ''
                ORDER BY `post-thread-user`.`commented` DESC LIMIT 10", Protocol::PUMPIO, $uid);