Bugfix: The selection between posts from forums and other users had a problem

This commit is contained in:
Michael 2017-10-22 09:02:54 +00:00
parent 6367439e8a
commit 596bb36151
1 changed files with 1 additions and 1 deletions

View File

@ -803,7 +803,7 @@ function posts_from_contact_url(App $a, $contact_url) {
$author_id = intval($r[0]["author-id"]);
$contact = ($r[0]["contact-type"] = ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id');
$contact = ($r[0]["contact-type"] == ACCOUNT_TYPE_COMMUNITY ? 'owner-id' : 'author-id');
$r = q(item_query()." AND `item`.`".$contact."` = %d AND ".$sql.
" ORDER BY `item`.`created` DESC LIMIT %d, %d",