diff options
author | zotlabs <mike@macgirvin.com> | 2020-07-12 19:06:24 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2020-07-12 19:06:24 -0700 |
commit | fa752b0ac1bf4c0b19fcb0f7ff7dcfa3b3b90078 (patch) | |
tree | ee9c436a88ad37c9cdcbb299fd68c3e3527a5147 /Zotlabs/Lib/ThreadItem.php | |
parent | 3f69fc70f1958d902e7209c80f661868f9d456b0 (diff) | |
download | volse-hubzilla-fa752b0ac1bf4c0b19fcb0f7ff7dcfa3b3b90078.tar.gz volse-hubzilla-fa752b0ac1bf4c0b19fcb0f7ff7dcfa3b3b90078.tar.bz2 volse-hubzilla-fa752b0ac1bf4c0b19fcb0f7ff7dcfa3b3b90078.zip |
zot6 group updates to support edit and delete of top-level group posts. This is supported remotely by editing or removing the post that started it all. A W2W post can only be deleted at this time.
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 426f88688..fadc38b38 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -150,9 +150,11 @@ class ThreadItem { $edpost = false; - if($observer['xchan_hash'] == $this->get_data_value('author_xchan') + if($observer && $observer['xchan_hash'] + && ($observer['xchan_hash'] == $this->get_data_value('author_xchan') || $observer['xchan_hash'] == $this->get_data_value('owner_xchan') - || $this->get_data_value('uid') == local_channel()) + || $observer['xchan_hash'] == $this->get_data_value('source_xchan') + || $this->get_data_value('uid') == local_channel())) $dropping = true; |