diaspora
https://github.com/diaspora/diaspora
Ruby
A privacy-aware, distributed, open source social network.
Diaspora::Mentionable.filter_for_aspects
takes a message text and converts mentions for people that are not in the given aspects to simple markdown links, leaving only mentions for people who will actually be able to receive notifications for being mentioned.
Edit
git clone [email protected]:diaspora/diaspora.git
cd diaspora
open lib/diaspora/mentionable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Diaspora--Mentionable-filter_for_aspects-for-pr
# Commit to gitgit add lib/diaspora/mentionable.rbgit commit -m "better docs for Diaspora::Mentionable.filter_for_aspects"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Diaspora--Mentionable-filter_for_aspects-for-pr
hub pull-request
# Celebrate!