Kaynağa Gözat

Change reblogs counter to be updated when boosted privately (#10964)

master^2
Eugen Rochko 5 yıl önce
committed by GitHub
ebeveyn
işleme
6a9a759f40
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      app/models/status.rb

+ 2
- 2
app/models/status.rb Dosyayı Görüntüle

@@ -499,7 +499,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

@@ -507,7 +507,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



Yükleniyor…
İptal
Kaydet