diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-14 21:56:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 21:56:17 +0200 |
commit | aaac14b8ad1a2a9e3d58871feb07b1e78c5316c3 (patch) | |
tree | 3af07062d5ee5a31058afd7ca2ded4985f0d27e0 /app/models | |
parent | ec2c516ab865ea63b5e7bc4405d0141d377e3e12 (diff) |
Show exact number of followers/statuses on export page/in tooltip (#8199)
* Show exact number of followers/statuses on export page/in tooltip * Fix tests
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/export.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/models/export.rb b/app/models/export.rb index f0d5dd255..0eeac0dc0 100644 --- a/app/models/export.rb +++ b/app/models/export.rb @@ -24,8 +24,16 @@ class Export account.media_attachments.sum(:file_file_size) end + def total_statuses + account.statuses_count + end + def total_follows - account.following.count + account.following_count + end + + def total_followers + account.followers_count end def total_blocks |