about summary refs log tree commit diff
path: root/app/views/api/v1
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-31 14:38:17 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-31 20:38:17 +0200
commitb25e42a77f4b3472bc519e8a394b2cfe0e063e4c (patch)
tree7c541e3aab0268ffb9bbb7d4e2d97b91e413778c /app/views/api/v1
parent5236a6286107f5731c5f57940592a46ebd3c6107 (diff)
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
Diffstat (limited to 'app/views/api/v1')
-rw-r--r--app/views/api/v1/statuses/_mention.rabl4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/api/v1/statuses/_mention.rabl b/app/views/api/v1/statuses/_mention.rabl
index 498cca275..8c95fc9bd 100644
--- a/app/views/api/v1/statuses/_mention.rabl
+++ b/app/views/api/v1/statuses/_mention.rabl
@@ -1,4 +1,4 @@
 node(:url)      { |mention| TagManager.instance.url_for(mention.account) }
-node(:acct)     { |mention| mention.account.acct }
+node(:acct)     { |mention| mention.account_acct }
 node(:id)       { |mention| mention.account_id }
-node(:username) { |mention| mention.account.username }
+node(:username) { |mention| mention.account_username }