Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Camo support #5386
The code might need some optimization, please review. Also I'm shamelessly using Travis to ensure my changes have no bad side effects, thus creating this PR. ;)
I don't quite follow why you added the processing to both, the getter methods and the message renderer. Are there still places where we hand out the content to the frontend through the getter methods instead of the message renderer?
The issue I see is that the getters are used when serializing the object for federation (https://github.com/diaspora/diaspora/blob/develop/app/models/comment.rb#L19).