mirror of
https://github.com/friendica/friendica
synced 2024-11-20 02:23:41 +00:00
Merge pull request #10001 from annando/issue-9925
issue 9925: Fixes database error with MySQL 8
This commit is contained in:
commit
ab9090ede1
1 changed files with 2 additions and 2 deletions
|
@ -81,11 +81,11 @@ class Profile extends BaseModule
|
|||
}
|
||||
|
||||
$items_stmt = DBA::p(
|
||||
"SELECT DISTINCT(`parent-uri-id`) AS `uri-id`, MAX(`created`), MAX(`received`) FROM `post-user-view`
|
||||
"SELECT `parent-uri-id` AS `uri-id`, MAX(`created`), MAX(`received`) FROM `post-user-view`
|
||||
WHERE `uid` = ? AND NOT `contact-blocked` AND NOT `contact-pending`
|
||||
AND `visible` AND (NOT `deleted` OR `gravity` = ?)
|
||||
AND `wall` $sql_extra4 $sql_extra
|
||||
ORDER BY `received` DESC",
|
||||
GROUP BY `parent-uri-id` ORDER BY `received` DESC",
|
||||
$a->profile['uid'],
|
||||
GRAVITY_ACTIVITY
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue