mirror of
https://github.com/friendica/friendica
synced 2024-11-13 00:22:59 +00:00
Avoid SQL error when in Forum view
This commit is contained in:
parent
829e8ca946
commit
ecce105ae8
1 changed files with 2 additions and 1 deletions
|
@ -856,11 +856,12 @@ function networkThreadedView(App $a, $update = 0) {
|
||||||
|
|
||||||
if (!$group && !$cid && !$star) {
|
if (!$group && !$cid && !$star) {
|
||||||
$condition = array('unseen' => true, 'uid' => local_user());
|
$condition = array('unseen' => true, 'uid' => local_user());
|
||||||
|
networkSetSeen($condition);
|
||||||
} elseif ($parents_str) {
|
} elseif ($parents_str) {
|
||||||
$condition = array("`uid` = ? AND `unseen` AND `parent` IN (" . dbesc($parents_str) . ")", local_user());
|
$condition = array("`uid` = ? AND `unseen` AND `parent` IN (" . dbesc($parents_str) . ")", local_user());
|
||||||
|
networkSetSeen($condition);
|
||||||
}
|
}
|
||||||
|
|
||||||
networkSetSeen($condition);
|
|
||||||
|
|
||||||
$mode = 'network';
|
$mode = 'network';
|
||||||
$o .= networkConversation($a, $items, $mode, $update);
|
$o .= networkConversation($a, $items, $mode, $update);
|
||||||
|
|
Loading…
Reference in a new issue