]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Post/Edit.php
Merge pull request #12635 from MrPetovan/task/12629-contact-threads-tab
[friendica.git] / src / Module / Post / Edit.php
index 2b371ba9c177f90a745ed2f3f28a18d650dd33ca..55c86988ad9cff9af5c29dea5bd990550316383c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -82,8 +82,10 @@ class Edit extends BaseModule
                        $this->errorExit($this->t('Post not found.'), HTTPException\BadRequestException::class);
                }
 
-               $fields = ['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid',
-                                  'body', 'title', 'uri-id', 'wall', 'post-type', 'guid'];
+               $fields = [
+                       'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid',
+                       'body', 'title', 'uri-id', 'wall', 'post-type', 'guid'
+               ];
 
                $item = Post::selectFirstForUser($this->session->getLocalUserId(), $fields, [
                        'id'  => $postId,
@@ -102,6 +104,7 @@ class Edit extends BaseModule
 
                $this->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('jot-header.tpl'), [
                        '$ispublic'  => '&nbsp;',
+                       '$geotag'    => '',
                        '$nickname'  => $this->app->getLoggedInUserNickname(),
                        '$is_mobile' => $this->mode->isMobile(),
                ]);
@@ -162,18 +165,18 @@ class Edit extends BaseModule
                        '$rand_num'            => Crypto::randomDigits(12),
 
                        // Formatting button labels
-                       '$edbold'              => $this->t('Bold'),
-                       '$editalic'            => $this->t('Italic'),
-                       '$eduline'             => $this->t('Underline'),
-                       '$edquote'             => $this->t('Quote'),
-                       '$edcode'              => $this->t('Code'),
-                       '$edurl'               => $this->t('Link'),
-                       '$edattach'            => $this->t('Link or Media'),
+                       '$edbold'   => $this->t('Bold'),
+                       '$editalic' => $this->t('Italic'),
+                       '$eduline'  => $this->t('Underline'),
+                       '$edquote'  => $this->t('Quote'),
+                       '$edcode'   => $this->t('Code'),
+                       '$edurl'    => $this->t('Link'),
+                       '$edattach' => $this->t('Link or Media'),
 
                        //jot nav tab (used in some themes)
-                       '$message'             => $this->t('Message'),
-                       '$browser'             => $this->t('Browser'),
-                       '$shortpermset'        => $this->t('Permissions'),
+                       '$message'      => $this->t('Message'),
+                       '$browser'      => $this->t('Browser'),
+                       '$shortpermset' => $this->t('Permissions'),
 
                        '$compose_link_title' => $this->t('Open Compose page'),
                ]);