mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
We are only formatting an object when it's not null
This commit is contained in:
parent
4b3af9dfe7
commit
dad98542a5
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ class ActivityManager implements IManager {
|
|||
* @return bool
|
||||
*/
|
||||
public function isFormattingFilteredObject() {
|
||||
return $this->formattingObjectType === $this->request->getParam('object_type')
|
||||
return $this->formattingObjectType !== null && $this->formattingObjectId !== null
|
||||
&& $this->formattingObjectType === $this->request->getParam('object_type')
|
||||
&& $this->formattingObjectId === $this->request->getParam('object_id');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue