Bläddra i källkod

Fix unscoped being used in the wrong place (#11987)

Regression from #11982
master^2
Eugen Rochko 4 år sedan
committed by GitHub
förälder
incheckning
50af41a00d
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      app/models/status.rb

+ 1
- 1
app/models/status.rb Visa fil

@@ -305,7 +305,7 @@ class Status < ApplicationRecord
end

def reblogs_map(status_ids, account_id)
select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).unscoped.each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
unscoped.select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
end

def mutes_map(conversation_ids, account_id)


Laddar…
Avbryt
Spara