Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/models/media_attachment.rb Upstream raised max image size from 8MB to 10MB while our limit is configurable. Raised the default to 10MB.
This commit is contained in:
		@@ -42,7 +42,7 @@ class Status < ApplicationRecord
 | 
			
		||||
  # will be based on current time instead of `created_at`
 | 
			
		||||
  attr_accessor :override_timestamps
 | 
			
		||||
 | 
			
		||||
  update_index('statuses#status', :proper) if Chewy.enabled?
 | 
			
		||||
  update_index('statuses#status', :proper)
 | 
			
		||||
 | 
			
		||||
  enum visibility: [:public, :unlisted, :private, :direct, :limited], _suffix: :visibility
 | 
			
		||||
 | 
			
		||||
@@ -136,12 +136,14 @@ class Status < ApplicationRecord
 | 
			
		||||
  REAL_TIME_WINDOW = 6.hours
 | 
			
		||||
 | 
			
		||||
  def searchable_by(preloaded = nil)
 | 
			
		||||
    ids = [account_id]
 | 
			
		||||
    ids = []
 | 
			
		||||
 | 
			
		||||
    ids << account_id if local?
 | 
			
		||||
 | 
			
		||||
    if preloaded.nil?
 | 
			
		||||
      ids += mentions.pluck(:account_id)
 | 
			
		||||
      ids += favourites.pluck(:account_id)
 | 
			
		||||
      ids += reblogs.pluck(:account_id)
 | 
			
		||||
      ids += mentions.where(account: Account.local).pluck(:account_id)
 | 
			
		||||
      ids += favourites.where(account: Account.local).pluck(:account_id)
 | 
			
		||||
      ids += reblogs.where(account: Account.local).pluck(:account_id)
 | 
			
		||||
    else
 | 
			
		||||
      ids += preloaded.mentions[id] || []
 | 
			
		||||
      ids += preloaded.favourites[id] || []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user