FreeFeed / freefeed-react-client

React-based frontend
https://freefeed.net
MIT License
39 stars 30 forks source link

Show placeholder instead of invisible displaynames #1521

Open indeyets opened 2 years ago

indeyets commented 2 years ago

I believe we should do our best effort to show some kind of visible placeholder instead of displayname, which consists of invisible characters.

We could use the list from https://invisible-characters.com/ FreeFeed Development (ffdev) - FreeFeed 2022-03-23 10-52-13

I suggest we could use White Square U+25A1 character

clbn commented 2 years ago

See also: https://github.com/clbn/freefeed-gamma/commit/149269d194e49737a25d00fd70d4c42252dade79

indeyets commented 2 years ago

@clbn thanks. that's another way to do that, but seems a bit too harsh… I think white square might be a bit closer to user's intention. They want to be nameless. This solution keeps both the "nameless" aspect and usability of readers

clbn commented 2 years ago

(What to do after those characters are detected would be another topic for discussion. And I personally don't think the user has the right to be nameless, so falling back to the username is the right thing to do for them.)