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
How to find out if user logged in
support
6
919
November 2, 2020
Discourse API Get Current Topic
support
1
881
December 23, 2020
Find a user by ID or username?
dev
3
1573
May 12, 2017
Getting Topic Information
dev
2
926
August 23, 2019
Getting data for the widget
dev
4
534
August 25, 2018