Remove jotnets

This commit is contained in:
Philipp 2022-11-16 08:49:48 +01:00
parent 09e01b9356
commit db7af4c45b
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 1 additions and 4 deletions

View file

@ -76,7 +76,7 @@ class Edit extends BaseModule
$this->errorExit($this->t('Permission denied.'), HTTPException\UnauthorizedException::class); $this->errorExit($this->t('Permission denied.'), HTTPException\UnauthorizedException::class);
} }
$postId = $this->parameters['post_id']; $postId = $this->parameters['post_id'] ?? 0;
if (empty($postId)) { if (empty($postId)) {
$this->errorExit($this->t('Post not found.'), HTTPException\BadRequestException::class); $this->errorExit($this->t('Post not found.'), HTTPException\BadRequestException::class);
@ -115,7 +115,6 @@ class Edit extends BaseModule
} }
$jotplugins = ''; $jotplugins = '';
$jotnets = '';
Hook::callAll('jot_tool', $jotplugins); Hook::callAll('jot_tool', $jotplugins);
@ -150,7 +149,6 @@ class Edit extends BaseModule
'$pvisit' => 'none', '$pvisit' => 'none',
'$emailcc' => $this->t('CC: email addresses'), '$emailcc' => $this->t('CC: email addresses'),
'$public' => $this->t('Public post'), '$public' => $this->t('Public post'),
'$jotnets' => $jotnets,
'$title' => $item['title'], '$title' => $item['title'],
'$placeholdertitle' => $this->t('Set title'), '$placeholdertitle' => $this->t('Set title'),
'$category' => Post\Category::getCSVByURIId($item['uri-id'], $this->session->getLocalUserId(), Post\Category::CATEGORY), '$category' => Post\Category::getCSVByURIId($item['uri-id'], $this->session->getLocalUserId(), Post\Category::CATEGORY),

View file

@ -70,7 +70,6 @@
<div style="display: none;"> <div style="display: none;">
<div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;"> <div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
{{$acl nofilter}} {{$acl nofilter}}
{{$jotnets nofilter}}
{{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}} {{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}}
{{if $created_at}}{{$created_at nofilter}}{{/if}} {{if $created_at}}{{$created_at nofilter}}{{/if}}
</div> </div>