summaryrefslogtreecommitdiffstats
path: root/lib/private/activitymanager.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-02 10:11:19 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-02 10:11:58 +0100
commitb5e40bc8f615caeba0a0b5d5d777037fff87e2f9 (patch)
tree75590a954216cb25dc29f502016a3f205ce1fb04 /lib/private/activitymanager.php
parent25cbc17becc4a47d67ad24ce12118a0d6b0aacea (diff)
downloadnextcloud-server-b5e40bc8f615caeba0a0b5d5d777037fff87e2f9.tar.gz
nextcloud-server-b5e40bc8f615caeba0a0b5d5d777037fff87e2f9.zip
Fix IManager::isFormattingFilteredObject()
Diffstat (limited to 'lib/private/activitymanager.php')
-rw-r--r--lib/private/activitymanager.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/activitymanager.php b/lib/private/activitymanager.php
index e5235cb9bfe..68bb8c13401 100644
--- a/lib/private/activitymanager.php
+++ b/lib/private/activitymanager.php
@@ -310,20 +310,19 @@ class ActivityManager implements IManager {
/**
* @param string $type
- * @param int $id
+ * @param string $id
*/
public function setFormattingObject($type, $id) {
$this->formattingObjectType = $type;
- $this->formattingObjectId = $id;
+ $this->formattingObjectId = (string) $id;
}
/**
* @return bool
*/
public function isFormattingFilteredObject() {
- return 'filter' === $this->request->getParam('filter')
- && $this->formattingObjectType === $this->request->getParam('objecttype')
- && $this->formattingObjectId === $this->request->getParam('objectid');
+ return $this->formattingObjectType === $this->request->getParam('object_type')
+ && $this->formattingObjectId === $this->request->getParam('object_id');
}
/**