X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FThread.php;h=799029a28117ec8844481b76aa0c6651957e540a;hb=27d94023eef0263a3ce9750f79a73ac941a25304;hp=2872fe4a024ae6e5aafca808d3d4f111abde89bd;hpb=98c2cdb49acd24ed277883a793465d0bae4919c8;p=friendica.git diff --git a/src/Object/Thread.php b/src/Object/Thread.php index 2872fe4a02..799029a281 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -17,7 +17,7 @@ require_once 'include/text.php'; */ class Thread extends BaseObject { - private $parents = array(); + private $parents = []; private $mode = null; private $writable = false; private $profile_owner = 0; @@ -60,11 +60,15 @@ class Thread extends BaseObject break; case 'profile': $this->profile_owner = $a->profile['profile_uid']; - $this->writable = can_write_wall($a, $this->profile_owner); + $this->writable = can_write_wall($this->profile_owner); break; case 'display': $this->profile_owner = $a->profile['uid']; - $this->writable = can_write_wall($a, $this->profile_owner) || $writable; + $this->writable = can_write_wall($this->profile_owner) || $writable; + break; + case 'community': + $this->profile_owner = 0; + $this->writable = $writable; break; default: logger('[ERROR] Conversation::setMode : Unhandled mode ('. $mode .').', LOGGER_DEBUG); @@ -168,7 +172,7 @@ class Thread extends BaseObject public function getTemplateData($conv_responses) { $a = self::getApp(); - $result = array(); + $result = []; $i = 0; foreach ($this->parents as $item) {