|
|
@ -478,7 +478,7 @@ class Status < ApplicationRecord |
|
|
|
return if direct_visibility? |
|
|
|
return if direct_visibility? |
|
|
|
|
|
|
|
|
|
|
|
account&.increment_count!(:statuses_count) |
|
|
|
account&.increment_count!(:statuses_count) |
|
|
|
reblog&.increment_count!(:reblogs_count) if reblog? |
|
|
|
reblog&.increment_count!(:reblogs_count) if reblog? && (public_visibility? || unlisted_visibility?) |
|
|
|
thread&.increment_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) |
|
|
|
thread&.increment_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -486,7 +486,7 @@ class Status < ApplicationRecord |
|
|
|
return if direct_visibility? || marked_for_mass_destruction? |
|
|
|
return if direct_visibility? || marked_for_mass_destruction? |
|
|
|
|
|
|
|
|
|
|
|
account&.decrement_count!(:statuses_count) |
|
|
|
account&.decrement_count!(:statuses_count) |
|
|
|
reblog&.decrement_count!(:reblogs_count) if reblog? |
|
|
|
reblog&.decrement_count!(:reblogs_count) if reblog? && (public_visibility? || unlisted_visibility?) |
|
|
|
thread&.decrement_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) |
|
|
|
thread&.decrement_count!(:replies_count) if in_reply_to_id.present? && (public_visibility? || unlisted_visibility?) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|