]> git.mxchange.org Git - friendica.git/commitdiff
Remove jotnets
authorPhilipp <admin@philipp.info>
Wed, 16 Nov 2022 07:49:48 +0000 (08:49 +0100)
committerPhilipp <admin@philipp.info>
Wed, 16 Nov 2022 07:49:48 +0000 (08:49 +0100)
src/Module/Post/Edit.php
view/theme/smoothly/templates/jot.tpl

index f89f73f0bde3e8495afe2c50be548c66a3790964..ba6a7362045a6386497e9c5993b0fa3ff8c1fb9e 100644 (file)
@@ -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),
index 74c9d0523a5554f956c3ce0bb020095af62a5187..86485cad125c3f87bcab29b292733077a342ee88 100644 (file)
@@ -70,7 +70,6 @@
         <div style="display: none;">
             <div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
                 {{$acl nofilter}}
-                {{$jotnets nofilter}}
                 {{if $scheduled_at}}{{$scheduled_at nofilter}}{{/if}}
                 {{if $created_at}}{{$created_at nofilter}}{{/if}}
             </div>