-
Notifications
You must be signed in to change notification settings - Fork 1
Add AuthorType to posts #10
Description
It would be nice to have the type of author returned by the API, that way the clients can do highlighting based on the type without having to do a bunch of string comparisons. I believe this is something that just about all clients currently do and it would be cool to have it in one place so the lists can be maintained in one place.
The only type we wouldn't be able to handle would be a self type since we don't know the name of the user accessing the information.
Suggested types:
- News - For news posts made by the Shacknews user
- OriginalParent - The author of a reply is the same as the thread root user
- Staff - The author is shacknews staff
- Mod - The author is a moderator
- GameDeveloper - The author is a game developer
- CommunityDeveloper - The author is a third party community developer (ShackBrowse, Lamp, etc...)
- MercuryMember - The author is a mercury subscriber
Some of these will require a list of known names for the types. There is also the possibility that more than one type could apply - suggestions on how or if that should be handled are welcome.
Some of this could be implemented today, some will require more work behind the scenes and may not be possible until official integration starts but I thought I'd get this idea out there.
Alternatively, we could maintain lists of Staff, Mod, GameDeveloper, etc through the API that each client has to retrieve and then they can do the determinations internally but it seems like if we already have that info we might as well pass it along in the same place it gets used.