Skip to content

Commit

Permalink
l
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 29, 2024
1 parent d608edc commit 1882bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 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,9 @@ 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

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/Void: Operator ! used in void context.
!Setting.timeline_preview_local && truthy_param?(:local)
!Setting.timeline_preview_remote && truthy_param?(:remote)
end

def require_auth_local?
Expand Down

0 comments on commit 1882bb6

Please sign in to comment.