aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-05 12:10:15 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-05 12:10:15 +0200
commitc403c9aece31ea78006089a18b7ad6fda278e698 (patch)
treef4c4a28e743b6d641422ad8a373be98a8b416af2 /include
parentdf5115e7b8d7a21e9dafbe14d68590f84c40da60 (diff)
parent22fbb512d5be1d95cae7c59f967b978d59557a5a (diff)
downloadvolse-hubzilla-c403c9aece31ea78006089a18b7ad6fda278e698.tar.gz
volse-hubzilla-c403c9aece31ea78006089a18b7ad6fda278e698.tar.bz2
volse-hubzilla-c403c9aece31ea78006089a18b7ad6fda278e698.zip
Merge branch '3.8RC' of https://framagit.org/hubzilla/core into 3.8RC
Diffstat (limited to 'include')
-rw-r--r--include/channel.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 33e438e53..6a934cb82 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2533,6 +2533,12 @@ function channel_remove($channel_id, $local = true, $unset_session = false) {
if(! $local) {
+ if(intval($r[0]['channel_removed'])) {
+ // already removed. do not propagate deletion of a channel which
+ // may have been removed locally at some previous time.
+ return;
+ }
+
$r = q("update channel set channel_deleted = '%s', channel_removed = 1 where channel_id = %d",
dbesc(datetime_convert()),
intval($channel_id)