Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `Gemfile.lock`: Not a real conflict, upstream-updated dependency (redis) textually too close to glitch-soc-only dependecy. Updated redis gem like upstream did.
This commit is contained in:
		@@ -452,10 +452,14 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def supported_blurhash?(blurhash)
 | 
			
		||||
    components = blurhash.blank? ? nil : Blurhash.components(blurhash)
 | 
			
		||||
    components = blurhash.blank? || !blurhash_valid_chars?(blurhash) ? nil : Blurhash.components(blurhash)
 | 
			
		||||
    components.present? && components.none? { |comp| comp > 5 }
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def blurhash_valid_chars?(blurhash)
 | 
			
		||||
    /^[\w#$%*+-.:;=?@\[\]^{|}~]+$/.match?(blurhash)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def skip_download?
 | 
			
		||||
    return @skip_download if defined?(@skip_download)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user