aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-22 12:55:13 -0700
committerfriendica <info@friendica.com>2015-03-22 12:55:13 -0700
commit6631540d20068d3c4ee221518e8f430507662e27 (patch)
tree4a8430ae2063d1e9397cce6315dd5b3fa691366a /mod/network.php
parent1b17b0193ec08936b5485216ba6bbe9a46ede187 (diff)
downloadvolse-hubzilla-6631540d20068d3c4ee221518e8f430507662e27.tar.gz
volse-hubzilla-6631540d20068d3c4ee221518e8f430507662e27.tar.bz2
volse-hubzilla-6631540d20068d3c4ee221518e8f430507662e27.zip
provide visual feedback when deleting a like by liking it again.
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index f71a7569a..0cf535769 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -396,7 +396,7 @@ function network_content(&$a, $update = 0, $load = false) {
// which are both ITEM_UNSEEN and have "changed" since that time. Cross fingers...
if($update && $_SESSION['loadtime'])
- $simple_update .= " and item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ";
+ $simple_update = " AND ( item_unseen = 1 or item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) ";
if($load)
$simple_update = '';
@@ -445,7 +445,7 @@ function network_content(&$a, $update = 0, $load = false) {
}
else {
if(! $firehose) {
- // update
+ // this is an update
$r = q("SELECT item.parent AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
WHERE true $uids AND item.item_restrict = 0 $simple_update
@@ -453,6 +453,7 @@ function network_content(&$a, $update = 0, $load = false) {
$sql_extra3 $sql_extra $sql_nets ",
intval(ABOOK_FLAG_BLOCKED)
);
+ $_SESSION['loadtime'] = datetime_convert();
}
}