glitchier-soc/app/views/api/v1/statuses/_mention.rabl
Matt Jankowski 533a8cc68b Misc tidying and clean ups (#3445)
* Remove trailing whitespace in i18n mailers

* Use query methods instead of #present? on AR attributes

* Delegate Status#account_domain method

* Delegate Mention #account_username and #account_acct methods
2017-05-31 20:38:17 +02:00

4 lines
230 B
Ruby

node(:url) { |mention| TagManager.instance.url_for(mention.account) }
node(:acct) { |mention| mention.account_acct }
node(:id) { |mention| mention.account_id }
node(:username) { |mention| mention.account_username }