Skip to content

Commit

Permalink
Slogging through failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Dec 18, 2024
1 parent 4371859 commit b3f28aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApplicationController < ActionController::Base

def self.allow_thirdparty_images(**options)
content_security_policy(options) do |policy|
policy.img_src("*")
policy.img_src("*", :data)
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/models/user_block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class UserBlock < ApplicationRecord
validate :moderator_permissions
validates :reason, :characters => true
validates :reason, :characters => true, :length => { :maximum => 10000 }
validates :deactivates_at, :comparison => { :greater_than_or_equal_to => :ends_at }, :unless => -> { needs_view }
validates :deactivates_at, :absence => true, :if => -> { needs_view }

Expand Down

0 comments on commit b3f28aa

Please sign in to comment.