andrei
(Andrei Prigorshnev)
October 4, 2022, 10:16am
1
With this announcement, we’re making publicly available a new feature that enables you to set a custom status message. After setting, that message will be shown next to your avatar on posts, in chat, on your user card etc.:
You can use it to let everyone know that you’re temporarily unavailable, are on a long vacation, or just to share your mood.
You can now test this feature on try.discourse.org
How to use it
To set custom status, go to the user menu and press the Set custom status button (this may look a bit different for you if you haven’t enabled the new user menu yet):
Then choose emoji and description, and, optionally, set an auto removing timer. For example, you can set status “ vacation” until Oct 9:
and everyone on the forum will see it. For example, on your posts:
To clear status, open the status modal and press the delete button:
How to enable it on your forum
To enable this feature, look for the enable user status
setting:
After enabling it everyone on your forum will be able to set a custom status message.
43 Likes
Tris20
(Tristan)
October 4, 2022, 10:10am
18
Out of curiousity, has there been any investigation into synching this with outlook or ms teams? How can I access it with the api?
8 Likes
Canapin
(Coin-coin le Canapin)
October 4, 2022, 11:04am
19
Cool feature.
I think I remember a similar feature, via a plugin, which allowed you to set hours of availability, It’s helpful on forums where you interact with people during their working hours.
But I can’t find it.
Anyways, do you plan to add recurring time spans so we could achieve the same thing?
4 Likes
merefield
(Robert)
October 4, 2022, 11:09am
20
Coin-coin le Canapin:
I think I remember a similar feature, via a plugin, which allowed you to set hours of availability, It’s helpful on forums where you interact with people during their working hours.
I wrote a simple one once, that allows you to visualise people’s relative working day: GitHub - paviliondev/discourse-team-timezones: A dashboard is placed at the top of specified category topic lists to show waking hours of specified group, e.g. staff
But there is a more sophisticated team solution, but its somewhat different.
6 Likes
mcwumbly
(Dave McClure)
October 4, 2022, 1:32pm
21
The idea of integrating it with calendars has come up. We haven’t really done much investigation, but expect there may be some complexity around authentication.
There’s the “do not disturb” feature, which has preferences for a “notification schedule” Do not disturb mode
We agree these features are closely related and may bring them closer together in the future, but they are separate at this time.
8 Likes
pfaffman
(Jay Pfaffman)
October 4, 2022, 3:55pm
22
With Reverse engineer the Discourse API ?
If outlook or whatever has webhooks you could conceivably make it update statuses in Discourse.
3 Likes
Tris20
(Tristan)
October 4, 2022, 5:21pm
24
That was my initial thought, but I’m not seeing many options:
I can see my username in the response but not the request. To me it looks like status can only be set by the user during an existing session. Am I missing something here? Is there a way to specify via api the username for setting status?
3 Likes
pfaffman
(Jay Pfaffman)
October 4, 2022, 6:33pm
26
I think you just use a global api key and pass the user you want to change as the user in the header.
4 Likes
RGJ
(Richard - Communiteq)
October 5, 2022, 10:39am
28
Is it me or do those icons look misaligned (too low / aligned to bottom of text instead of top/middle)
7 Likes
andrei
(Andrei Prigorshnev)
October 5, 2022, 3:15pm
32
You’re right, currently it’s only possible to set the current user’s status, you’re not missing anything.
This feature is very young now, and we’re currently working on some further improvements to it that potentially may (or may not) lead to adding a server method that will let you set status of any user. I think it’s worth waiting a bit until we deliver more improvements to user status.
Yes, this definitely can be improved. I’ll take care of it, thank you for reporting!
8 Likes
riking
(Kane York)
October 8, 2022, 6:18am
34
Great use for scoped API keys - either set-status for single user or whole site. status: In a meeting
10 Likes
kynic
October 11, 2022, 4:06pm
35
On mobile the emoji shows on left side why is that?
2 Likes
not-ethan
(Ethan)
October 11, 2022, 4:13pm
36
Either intentional or its a bug since its overflows. I don’t think it should be displayed there since it could be mistaken as a flair.
3 Likes
andrei
(Andrei Prigorshnev)
October 12, 2022, 4:38pm
39
Here is the fix:
discourse:main
← discourse:fix/status-emoji-alignment-on-posts
opened 02:03PM - 12 Oct 22 UTC
User status emojis on posts were misaligned, they were placed too low. This PR f… ixes it.
Before:
<img width="584" alt="Screenshot 2022-10-12 at 18 02 46" src="https://user-images.githubusercontent.com/1274517/195364032-621b1479-1847-44f6-a680-f42cbcb6fb50.png">
After:
<img width="589" alt="Screenshot 2022-10-12 at 18 02 33" src="https://user-images.githubusercontent.com/1274517/195364052-e5571966-9f99-4f24-9541-375eab4a3b39.png">
Here is the fix for this problem:
discourse:main
← discourse:fix/status-emoji-was-shown-on-the-left-on-mobile
opened 04:06PM - 12 Oct 22 UTC
Before:
<img width="455" alt="Screenshot 2022-10-12 at 20 04 28" src="https:/… /user-images.githubusercontent.com/1274517/195393305-e6d34d0a-b130-4a5f-86fc-11e413549cd1.png">
After:
<img width="456" alt="Screenshot 2022-10-12 at 20 04 11" src="https://user-images.githubusercontent.com/1274517/195393139-6549ef18-18eb-4221-a591-f41068a8f707.png">
9 Likes
kynic
October 15, 2022, 8:21pm
40
Thank you now it looks good
3 Likes
So, if I change the theme, the status is gone and I need to set it up again .
4 Likes
andrei
(Andrei Prigorshnev)
October 21, 2022, 9:26pm
42
@robotnjik , thank you for reporting this! I can reproduce it, looks like switching between any themes removes user status. I’ll fix it.
8 Likes
andrei
(Andrei Prigorshnev)
November 4, 2022, 8:35pm
43
Turned out, status was getting cleared not only when switching a theme, but when editing pretty much any user preference except of status itself.
This fixes it:
discourse:main
← discourse:fix/do-not-clear-status-when-editing-user-preferences
opened 06:39PM - 04 Nov 22 UTC
The problem was [reported](https://meta.discourse.org/t/user-status/240335/42) a… s a problem with changing theme in user preferences, after saving a new theme the previously set user status was disappearing. Turned out though that the problem was more wide, changing pretty much any setting in user preferences apart from user status itself led to clearing the status.
9 Likes
andrei
(Andrei Prigorshnev)
November 25, 2022, 1:12pm
44
This PR adds a REST API scope for user status:
discourse:main
← discourse:dev/api-scope-for-user-status
opened 10:15AM - 22 Nov 22 UTC
This adds API scope for the user status:
<img width="473" alt="image" src="ht… tps://user-images.githubusercontent.com/1274517/203367065-2ad79a55-fd45-416d-9a78-a2e273c0a54c.png">
This also adds a get method to the user status controller. We didn't need a dedicated method that returns status before because the server returns status with user objects, but I think we need to provide this method for API clients.
It’s possible now. Note, that you need to use an API key with the All Users level to do it:
More details about using Discourse REST API is here – Discourse REST API Documentation .
13 Likes
mattdm
(Matthew Miller)
November 29, 2022, 4:22am
45
Is there a webhook which fires when status is set?
5 Likes