aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.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/channel.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/channel.php')
-rw-r--r--mod/channel.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 3fc4a9269..16aac2e51 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -158,13 +158,11 @@ function channel_content(&$a, $update = 0, $load = false) {
$simple_update = (($update) ? " AND item_unseen = 1 " : '');
-
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 = '';
-
if(($update) && (! $load)) {
if ($mid) {
$r = q("SELECT parent AS item_id from item where mid like '%s' and uid = %d AND item_restrict = 0
@@ -185,6 +183,7 @@ function channel_content(&$a, $update = 0, $load = false) {
intval(ITEM_WALL),
intval(ABOOK_FLAG_BLOCKED)
);
+ $_SESSION['loadtime'] = datetime_convert();
}
}