Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
		@@ -295,7 +295,7 @@ module Mastodon
 | 
			
		||||
      table = Arel::Table.new(table_name)
 | 
			
		||||
 | 
			
		||||
      total = estimate_rows_in_table(table_name).to_i
 | 
			
		||||
      if total == 0
 | 
			
		||||
      if total < 1
 | 
			
		||||
        count_arel = table.project(Arel.star.count.as('count'))
 | 
			
		||||
        count_arel = yield table, count_arel if block_given?
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user