diff --git a/public/paste.php b/public/paste.php index ecbaeed..2f6266a 100644 --- a/public/paste.php +++ b/public/paste.php @@ -43,7 +43,6 @@ updatePageViews(); $totalpastes = Paste::count(); $paste = Paste::with('user')->find((int) trim($_REQUEST['id'])); -$is_private = false; $error = null; if (!$paste) { @@ -66,8 +65,6 @@ if (isset($_SESSION['password_ok'])) { $password_ok_pastes = []; } -$paste_owner_id = $paste->user->id; -$paste_title = $paste->title; $paste_code = $paste->code; $using_highlighter = $paste_code !== 'pastedown'; $fav_count = $paste->favouriters()->count(); @@ -76,8 +73,6 @@ $p_content = $paste->content; $p_password = $paste->password; $paste_is_favourited = $current_user !== null && $current_user->favourites->where('id', $paste->id)->count() === 1; -$is_private = $paste->visible === Paste::VISIBILITY_PRIVATE; - if (!can('view', $paste)) { if ($paste->is_hidden) { $error = 'This paste has been removed by the moderation team.';