aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--Zotlabs/Module/Viewsrc.php2
-rw-r--r--include/channel.php6
2 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Viewsrc.php b/Zotlabs/Module/Viewsrc.php
index 5900e385a..119990b57 100644
--- a/Zotlabs/Module/Viewsrc.php
+++ b/Zotlabs/Module/Viewsrc.php
@@ -47,7 +47,7 @@ class Viewsrc extends \Zotlabs\Web\Controller {
$content = escape_tags($r[0]['body']);
- $o = (($json) ? json_encode($content) : str_replace("\n",'<br />',$content));
+ $o = (($json) ? json_encode($content) : $content);
}
}
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)