From db7af4c45ba6b1a42201c66335d14c89e53827bd Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 16 Nov 2022 08:49:48 +0100 Subject: [PATCH] Remove jotnets --- src/Module/Post/Edit.php | 4 +--- view/theme/smoothly/templates/jot.tpl | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Module/Post/Edit.php b/src/Module/Post/Edit.php index f89f73f0b..ba6a73620 100644 --- a/src/Module/Post/Edit.php +++ b/src/Module/Post/Edit.php @@ -76,7 +76,7 @@ class Edit extends BaseModule $this->errorExit($this->t('Permission denied.'), HTTPException\UnauthorizedException::class); } - $postId = $this->parameters['post_id']; + $postId = $this->parameters['post_id'] ?? 0; if (empty($postId)) { $this->errorExit($this->t('Post not found.'), HTTPException\BadRequestException::class); @@ -115,7 +115,6 @@ class Edit extends BaseModule } $jotplugins = ''; - $jotnets = ''; Hook::callAll('jot_tool', $jotplugins); @@ -150,7 +149,6 @@ class Edit extends BaseModule '$pvisit' => 'none', '$emailcc' => $this->t('CC: email addresses'), '$public' => $this->t('Public post'), - '$jotnets' => $jotnets, '$title' => $item['title'], '$placeholdertitle' => $this->t('Set title'), '$category' => Post\Category::getCSVByURIId($item['uri-id'], $this->session->getLocalUserId(), Post\Category::CATEGORY), diff --git a/view/theme/smoothly/templates/jot.tpl b/view/theme/smoothly/templates/jot.tpl index 74c9d0523..86485cad1 100644 --- a/view/theme/smoothly/templates/jot.tpl +++ b/view/theme/smoothly/templates/jot.tpl @@ -70,7 +70,6 @@
{{$acl nofilter}} - {{$jotnets nofilter}} {{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}} {{if $created_at}}{{$created_at nofilter}}{{/if}}