You can't get the current user data without their uid. If you have access to the express req object you can grab it with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.
[nodebb-plugin-audioplayer] for v0.8.1
ogerly last edited by ogerly
This plugin is prayed mp3, ogg, wav appear in a player. Plugin for Theme: Persona, Material, Lavender, Vanilla
run in v0.7.x & v0.8.1
link to user;
player fix im body;
link to topic;