mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 05:53:45 +08:00
eb72307a54
* Introduce user display names It is not uncommon for forums to be intergrated with sites where users don't have a unique "handle" - they might just have their first name, or a full name, which is not guaranteed to be unique. This commit introduces the concept of "display names" for users. By default display names are the same as usernames, but extensions may override this and set them to something different. The important thing is that all code should use `display_name` whenever intending to output a human-readable name - `username` is reserved for cases where you want to output a unique identifier (which may or may not be human-friendly). The new "GetDisplayName" API is probably sub-optimal, but I didn't worry too much because we can come up with something better in `next-back`. ref #557 * Apply fixes from StyleCI [ci skip] [skip ci] |
||
---|---|---|
.. | ||
Discussion.js | ||
Forum.js | ||
Group.js | ||
Notification.js | ||
Post.js | ||
User.js |