aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-09-03 14:33:09 +0200
committerMax Kostikov <max@kostikov.co>2019-09-03 14:33:09 +0200
commit914a096b42b741251a3132b74adf13e15c02cda3 (patch)
treedeab2943634b0ccd14fa013404e27e04865dabdd /include
parent5fa9dcbc7e940905cbcbf586731d83d27dd62fcf (diff)
parentbbc98db6b4071296ea02cea1a8c89fd33b251b1c (diff)
downloadvolse-hubzilla-914a096b42b741251a3132b74adf13e15c02cda3.tar.gz
volse-hubzilla-914a096b42b741251a3132b74adf13e15c02cda3.tar.bz2
volse-hubzilla-914a096b42b741251a3132b74adf13e15c02cda3.zip
Merge branch 'dev' into 'dev'
improved conversion of emoji reactions from zot to zot6 See merge request hubzilla/core!1720
Diffstat (limited to 'include')
-rw-r--r--include/connections.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/connections.php b/include/connections.php
index e942503f0..51df18b70 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -299,6 +299,11 @@ function remove_all_xchan_resources($xchan, $channel_id = 0) {
$r = q("delete from pgrp_member where xchan = '%s'",
dbesc($xchan)
);
+
+ // Cannot delete just one side of the conversation since we do not allow
+ // you to block private mail replies. This would leave open a gateway for abuse.
+ // Both participants are owners of the conversation and both can remove it.
+
$r = q("delete from mail where ( from_xchan = '%s' or to_xchan = '%s' )",
dbesc($xchan),
dbesc($xchan)