mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Add exception for self-contact in item_joins()
This commit is contained in:
parent
c417f779c4
commit
9edff6cc5c
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ These Fields are not added below (yet). They are here to for bug search.
|
|||
*/
|
||||
function item_joins() {
|
||||
return sprintf("STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||
AND `contact`.`rel` IN (%s, %s)
|
||||
AND (`contact`.`rel` IN (%s, %s) OR `contact`.`self`)
|
||||
AND NOT (`contact`.`blocked` OR `contact`.`readonly` OR `contact`.`pending`)
|
||||
LEFT JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id`
|
||||
LEFT JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id`
|
||||
|
|
Loading…
Reference in a new issue