Show contact comments in the post
This commit is contained in:
parent
91011b7190
commit
a638417ab5
1 changed files with 5 additions and 1 deletions
|
@ -890,14 +890,18 @@ function contact_posts($a, $contact_id) {
|
||||||
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||||
`author-name` AS `name`, `owner-avatar` AS `photo`,
|
`author-name` AS `name`, `owner-avatar` AS `photo`,
|
||||||
`owner-link` AS `url`, `owner-avatar` AS `thumb`
|
`owner-link` AS `url`, `owner-avatar` AS `thumb`
|
||||||
FROM `item` WHERE `item`.`uid` = %d AND `contact-id` = %d AND `item`.`id` = `item`.`parent`
|
FROM `item` WHERE `item`.`uid` = %d AND `contact-id` = %d
|
||||||
|
AND ((`item`.`id` = `item`.`parent`) OR (`author-link` = '%s'))
|
||||||
ORDER BY `item`.`created` DESC LIMIT %d, %d",
|
ORDER BY `item`.`created` DESC LIMIT %d, %d",
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
intval($contact_id),
|
intval($contact_id),
|
||||||
|
dbesc($contact["url"]),
|
||||||
intval($a->pager['start']),
|
intval($a->pager['start']),
|
||||||
intval($a->pager['itemspage'])
|
intval($a->pager['itemspage'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$tab_str = contact_tabs($a, $contact_id, 1);
|
$tab_str = contact_tabs($a, $contact_id, 1);
|
||||||
|
|
||||||
$header = $contact["name"];
|
$header = $contact["name"];
|
||||||
|
|
Loading…
Reference in a new issue