Issue 3196: Not all forum posts weren't shown
This commit is contained in:
parent
c23298b4c9
commit
3ab845dcf3
1 changed files with 1 additions and 3 deletions
|
@ -282,14 +282,12 @@ function profile_content(App $a, $update = 0) {
|
||||||
STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id`
|
STRAIGHT_JOIN `contact` ON `contact`.`id` = `thread`.`contact-id`
|
||||||
AND NOT `contact`.`blocked` AND NOT `contact`.`pending`
|
AND NOT `contact`.`blocked` AND NOT `contact`.`pending`
|
||||||
WHERE `thread`.`uid` = %d AND `thread`.`visible`
|
WHERE `thread`.`uid` = %d AND `thread`.`visible`
|
||||||
AND `thread`.`contact-id` = %d
|
|
||||||
AND NOT `thread`.`deleted`
|
AND NOT `thread`.`deleted`
|
||||||
AND NOT `thread`.`moderated`
|
AND NOT `thread`.`moderated`
|
||||||
AND `thread`.`wall`
|
AND `thread`.`wall`
|
||||||
$sql_extra $sql_extra2
|
$sql_extra $sql_extra2
|
||||||
ORDER BY `thread`.`created` DESC $pager_sql",
|
ORDER BY `thread`.`created` DESC $pager_sql",
|
||||||
intval($a->profile['profile_uid']),
|
intval($a->profile['profile_uid'])
|
||||||
intval($a->profile['contact_id'])
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue