aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-13 08:54:58 +0000
committerMario <mario@mariovavti.com>2021-01-13 08:54:58 +0000
commitb9fd87b004fe083c3f8064de5defea4ff439bce0 (patch)
treeb56b960e0527d428045903d573a3ff9edf25085a /include
parentf430db0de74e886a76da6b0e62554a91204d6dbd (diff)
downloadvolse-hubzilla-b9fd87b004fe083c3f8064de5defea4ff439bce0.tar.gz
volse-hubzilla-b9fd87b004fe083c3f8064de5defea4ff439bce0.tar.bz2
volse-hubzilla-b9fd87b004fe083c3f8064de5defea4ff439bce0.zip
do not turn the groups own direkt messages into group items - fixes #1510
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 85465192d..317a84730 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2673,6 +2673,11 @@ function tag_deliver($uid, $item_id) {
}
if ($is_group && intval($item['item_private']) === 2 && intval($item['item_thread_top'])) {
+
+ // do not turn the groups own direkt messages into group items
+ if($item['item_wall'] && $item['author_xchan'] === $u[0]['channel_hash'])
+ return;
+
// group delivery via DM
if(perm_is_allowed($uid,$item['owner_xchan'],'post_wall') || perm_is_allowed($uid,$item['owner_xchan'],'tag_deliver')) {
logger('group DM delivery for ' . $u[0]['channel_address']);