Merge pull request #4509 from annando/fix-network-update

Bugfix: The network update after a post now works again
This commit is contained in:
Tobias Diekershoff 2018-02-27 07:32:18 +01:00 committed by GitHub
commit 0e0ba4a2dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -764,7 +764,7 @@ function networkThreadedView(App $a, $update = 0)
} else {
$sql_extra4 = '';
}
$r = q("SELECT `item`.`uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
$r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
FROM `item` $sql_post_table
STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
AND (NOT `contact`.`blocked` OR `contact`.`pending`)