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 55bd152 commit e7d6c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/timelines/public_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def show
private

def require_auth?
if Setting.timeline_preview false
if Setting.timeline_preview
if truthy_param?(:local)
!Setting.timeline_preview_local
elsif truthy_param?(:remote) or truthy_param?(:allow_local_only)

Check failure on line 20 in app/controllers/api/v1/timelines/public_controller.rb

View workflow job for this annotation

GitHub Actions / lint

[Correctable] Style/AndOr: Use || instead of or. (https://rubystyle.guide#no-and-or-or)
Expand Down

0 comments on commit e7d6c12

Please sign in to comment.