diaspora
https://github.com/diaspora/diaspora
Ruby
A privacy-aware, distributed, open source social network.
Diaspora::Mentionable.format
takes a message text and returns the text with mentions in (html escaped) plain text or formatted with html markup linking to user profiles. default is html output.
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-format-for-pr
# Commit to gitgit add lib/diaspora/mentionable.rbgit commit -m "better docs for Diaspora::Mentionable.format"
# 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-format-for-pr
hub pull-request
# Celebrate!