summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-02 11:12:16 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-02 11:12:16 +0100
commit7f563dc3e9a03284d9eff69214b6686cf9eb1916 (patch)
tree4031bd27c53623ac8bd55ad044723494635104d9
parentb5e40bc8f615caeba0a0b5d5d777037fff87e2f9 (diff)
downloadnextcloud-server-7f563dc3e9a03284d9eff69214b6686cf9eb1916.tar.gz
nextcloud-server-7f563dc3e9a03284d9eff69214b6686cf9eb1916.zip
Fix path match
-rw-r--r--apps/systemtags/activity/listener.php2
-rw-r--r--apps/systemtags/appinfo/app.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/systemtags/activity/listener.php b/apps/systemtags/activity/listener.php
index 3afbde7a669..9b6597119c6 100644
--- a/apps/systemtags/activity/listener.php
+++ b/apps/systemtags/activity/listener.php
@@ -163,7 +163,7 @@ class Listener {
/** @var Node $node */
$node = array_shift($nodes);
$path = $node->getPath();
- if (strpos($path, '/' . $owner . '/files') === 0) {
+ if (strpos($path, '/' . $owner . '/files/') === 0) {
$path = substr($path, strlen('/' . $owner . '/files'));
}
// Get all users that have access to the mount point
diff --git a/apps/systemtags/appinfo/app.php b/apps/systemtags/appinfo/app.php
index d948f4857f6..0bb57e1227b 100644
--- a/apps/systemtags/appinfo/app.php
+++ b/apps/systemtags/appinfo/app.php
@@ -48,11 +48,14 @@ $eventDispatcher->addListener(
$activityManager = \OC::$server->getActivityManager();
$activityManager->registerExtension(function() {
$application = new \OCP\AppFramework\App('systemtags');
- return $application->getContainer()->query('OCA\SystemTags\Activity\Extension');
+ /** @var \OCA\SystemTags\Activity\Extension $extension */
+ $extension = $application->getContainer()->query('OCA\SystemTags\Activity\Extension');
+ return $extension;
});
$managerListener = function(ManagerEvent $event) use ($activityManager) {
$application = new \OCP\AppFramework\App('systemtags');
+ /** @var \OCA\SystemTags\Activity\Listener $listener */
$listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener');
$listener->event($event);
};
@@ -63,6 +66,7 @@ $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener);
$mapperListener = function(MapperEvent $event) use ($activityManager) {
$application = new \OCP\AppFramework\App('systemtags');
+ /** @var \OCA\SystemTags\Activity\Listener $listener */
$listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener');
$listener->mapperEvent($event);
};