GravityProject/gravity

Allow "mentioning" of users in posts

Opened this issue · 7 comments

Like other social networks/comms apps, allow mentioning, i.e. @ + username, of users in posts.

Then probably notify mentioned users of post.

Yes, that's a good idea. Thanks!

Not tried it out yet but I found this package which looks like it might do the job:
https://github.com/tsega/meteor-mentions

At.js also looks promising
https://github.com/ichord/At.js

That's really cool. Great resources. Thanks!

I've used this https://github.com/mizzao/meteor-autocomplete in the past but I think your packages are way more lightweight.

This one seems to be done and working, but should we make the username a link? Or at least a different color in order to differentiate a mentioned user from plain text?

That is a good idea. Maybe we can use a highlighting which is used in e.g. slack (highlight the background of the username rather than the username).

Like this?
screen shot 2016-05-11 at 3 13 40 pm