summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-02 09:53:39 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-10-02 09:53:39 +0200
commit7707bbe6482c50cfda2529c8f0d7f8c7e1e52d48 (patch)
tree5b66a50e1035ec5a3750974c9da72f621e0a2940 /lib/private
parent3dec30d0e09128002f24f58b7ea042c42defce31 (diff)
downloadnextcloud-server-7707bbe6482c50cfda2529c8f0d7f8c7e1e52d48.tar.gz
nextcloud-server-7707bbe6482c50cfda2529c8f0d7f8c7e1e52d48.zip
Allow identifying whether the current item is the filtered one
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/activitymanager.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/activitymanager.php b/lib/private/activitymanager.php
index fc250173536..340f3d335e5 100644
--- a/lib/private/activitymanager.php
+++ b/lib/private/activitymanager.php
@@ -44,6 +44,12 @@ class ActivityManager implements IManager {
/** @var IConfig */
protected $config;
+ /** @var string */
+ protected $formattingObjectType;
+
+ /** @var int */
+ protected $formattingObjectId;
+
/**
* constructor of the controller
*
@@ -304,6 +310,24 @@ class ActivityManager implements IManager {
}
/**
+ * @param string $type
+ * @param int $id
+ */
+ public function setFormattingObject($type, $id) {
+ $this->formattingObjectType = $type;
+ $this->formattingObjectId = $id;
+ }
+
+ /**
+ * @return bool
+ */
+ public function isFormattingFilteredObject() {
+ return 'filter' === $this->request->getParam('filter')
+ && $this->formattingObjectType === $this->request->getParam('objecttype')
+ && $this->formattingObjectId === $this->request->getParam('objectid');
+ }
+
+ /**
* @param string $app
* @param string $text
* @param array $params