]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The selection between posts from forums and other users had a problem
authorMichael <heluecht@pirati.ca>
Sun, 22 Oct 2017 09:02:54 +0000 (09:02 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Oct 2017 09:02:54 +0000 (09:02 +0000)
include/Contact.php

index 88f588e2f6e4271b898e5111d34d30763953baab..8be873bd3089533d01eafe7aa3230befcc7a9940 100644 (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",