summaryrefslogtreecommitdiffstats
path: root/lib/public/activity
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-25 15:18:11 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-30 15:23:09 +0200
commitb95d12700ccd5987e580ee30efc50c76019de97a (patch)
treea131362049194fa95d226b5b6d6b18070ddb8f27 /lib/public/activity
parent4c9c73bef925d41d8bc9f39f4365c34d794ab86a (diff)
downloadnextcloud-server-b95d12700ccd5987e580ee30efc50c76019de97a.tar.gz
nextcloud-server-b95d12700ccd5987e580ee30efc50c76019de97a.zip
Add logic for getting the user from the rss token to the Manager
Diffstat (limited to 'lib/public/activity')
-rw-r--r--lib/public/activity/imanager.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/activity/imanager.php b/lib/public/activity/imanager.php
index f7885860c4a..2e55c8b45b2 100644
--- a/lib/public/activity/imanager.php
+++ b/lib/public/activity/imanager.php
@@ -136,4 +136,14 @@ interface IManager {
* @return array
*/
function getQueryForFilter($filter);
+
+ /**
+ * Get the user we need to use
+ *
+ * Either the user is logged in, or we try to get it from the token
+ *
+ * @return string
+ * @throws \UnexpectedValueException If the token is invalid, does not exist or is not unique
+ */
+ public function getCurrentUserId();
}