kopia lustrzana https://github.com/nextcloud/social
Adds a test on the toArray field in ACore's isPUblic function.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>pull/638/head
rodzic
cb37082dc9
commit
83738c0fe7
|
@ -227,7 +227,8 @@ class ACore extends Item implements JsonSerializable {
|
|||
*/
|
||||
public function isPublic(): bool {
|
||||
return ($this->getTo() === self::CONTEXT_PUBLIC
|
||||
|| in_array(self::CONTEXT_PUBLIC, $this->getCcArray()));
|
||||
|| in_array(self::CONTEXT_PUBLIC, $this->getCcArray())
|
||||
|| in_array(self::CONTEXT_PUBLIC, $this->getToArray()));
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue