aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-07 20:29:51 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-08 09:44:51 +0200
commit278c281cc9c03ad060ac6a91784058066411c7a8 (patch)
treed82e5fda75a9811bc2e280f3933cc36a99ff9e4b /apps/comments/src
parenta3800a6810fca68eff1789dc21488389bf22108a (diff)
downloadnextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.tar.gz
nextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.zip
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/comments/src')
-rw-r--r--apps/comments/src/commentstabview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/src/commentstabview.js b/apps/comments/src/commentstabview.js
index f87cf29a7d1..8b71fc1f87b 100644
--- a/apps/comments/src/commentstabview.js
+++ b/apps/comments/src/commentstabview.js
@@ -354,7 +354,7 @@
});
var username = $el.find('.avatar').data('username');
- if (username !== oc_current_user) {
+ if (username !== OC.getCurrentUser().uid) {
$el.find('.authorRow .avatar, .authorRow .author').contactsMenu(
username, 0, $el.find('.authorRow'));
}