Discourse Meta
Widget's user awareness
Dev
zcuric
(Zdravko)
March 31, 2020, 4:35pm
2
You can use:
const user = api.getCurrentUser() if(user) { return user.username; }
More info here:
5 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Discourse Login & Registeration
Dev
4
2937
September 28, 2016
How to find out if user logged in
Support
6
1127
November 2, 2020
Discourse API Get Current Topic
Support
1
1054
December 23, 2020
How to get username and make an URL with that?
Support
5
2004
July 28, 2018
How to show HTML view and how to update data in HTML view
Dev
1
861
November 30, 2020