Merge pull request #1309 from annando/issue-12161

Issue 12161: Fix Unknown column 'post-view.id'
pull/1310/head
Hypolite Petovan 2022-11-12 08:34:24 -05:00 committed by GitHub
commit 18e7d5bfea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);