diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-04 23:11:44 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 16:32:40 -0600 |
commit | 4a7267c3a948903d72969765b4d6716660bcf30f (patch) | |
tree | de6e40e3c8dcc2642ff123f2ec1e2838751a297e /app/models | |
parent | fbf08920a0d73231c04b35c263ea4e04224b6e7d (diff) |
Change reblogs counter to be updated when boosted privately (#10964)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index ff83f5ad5..60040b6cf 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -670,7 +670,7 @@ class Status < ApplicationRecord return if direct_visibility? account&.increment_count!(:statuses_count) - reblog&.increment_count!(:reblogs_count) if reblog? && (public_visibility? || unlisted_visibility?) + reblog&.increment_count!(:reblogs_count) if reblog? thread&.increment_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) end @@ -678,7 +678,7 @@ class Status < ApplicationRecord return if direct_visibility? || marked_for_mass_destruction? account&.decrement_count!(:statuses_count) - reblog&.decrement_count!(:reblogs_count) if reblog? && (public_visibility? || unlisted_visibility?) + reblog&.decrement_count!(:reblogs_count) if reblog? thread&.decrement_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) end |