Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 29, 2024
1 parent 513712f commit d608edc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/api/v1/timelines/public_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ def show
private

def require_auth?
!Setting.timeline_preview
!Setting.timeline_preview_local && !truthy_param?(:local)
!Setting.timeline_preview_remote && !truthy_param?(:remote)
!Setting.timeline_preview || !Setting.timeline_preview_local && truthy_param?(:local) || !Setting.timeline_preview_remote && truthy_param?(:remote)

Check warning on line 17 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity.

Check warning on line 17 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity.
end

def require_auth_local?
Expand Down

0 comments on commit d608edc

Please sign in to comment.