diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 13:50:01 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-21 13:50:01 +0200 |
| commit | 93800f8899fba97c00016301015fe812dec1b6e5 (patch) | |
| tree | 3a0367c6998d267545861d18d1576c44801be961 | |
| parent | 8fb2ce2f1350ea2bcaf7d4c99999424f0b979b7f (diff) | |
Whitespace fix
| -rw-r--r-- | app/controllers/shared_previews_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/shared_previews_controller.rb b/app/controllers/shared_previews_controller.rb index f6fb45a..65f744d 100644 --- a/app/controllers/shared_previews_controller.rb +++ b/app/controllers/shared_previews_controller.rb | |||
| @@ -8,7 +8,7 @@ class SharedPreviewsController < ApplicationController | |||
| 8 | is_draft = node.draft_id == @page.id | 8 | is_draft = node.draft_id == @page.id |
| 9 | 9 | ||
| 10 | currently_public = is_head && @page.public? | 10 | currently_public = is_head && @page.public? |
| 11 | superseded = !is_head && !is_draft | 11 | superseded = !is_head && !is_draft |
| 12 | 12 | ||
| 13 | if superseded || currently_public | 13 | if superseded || currently_public |
| 14 | redirect_to @page.public_link | 14 | redirect_to @page.public_link |
