]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix IManager::isFormattingFilteredObject()
authorJoas Schilling <nickvergessen@owncloud.com>
Tue, 2 Feb 2016 09:11:19 +0000 (10:11 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Tue, 2 Feb 2016 09:11:58 +0000 (10:11 +0100)
lib/private/activitymanager.php

index e5235cb9bfe41109923061971cabf1724f4d60a2..68bb8c1340101ceadf28257ab692099b42832c4d 100644 (file)
@@ -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');
        }
 
        /**