]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Post/Edit.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / Post / Edit.php
index 55c86988ad9cff9af5c29dea5bd990550316383c..1505c301acf9b03473a8f93827d3cb64c57104b5 100644 (file)
@@ -83,7 +83,7 @@ class Edit extends BaseModule
                }
 
                $fields = [
-                       'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid',
+                       'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'gravity',
                        'body', 'title', 'uri-id', 'wall', 'post-type', 'guid'
                ];
 
@@ -115,6 +115,9 @@ class Edit extends BaseModule
                        $lockstate = 'unlock';
                }
 
+               $item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
+               $item = Post\Media::addHTMLAttachmentToItem($item);
+
                $jotplugins = '';
 
                Hook::callAll('jot_tool', $jotplugins);
@@ -169,6 +172,7 @@ class Edit extends BaseModule
                        '$editalic' => $this->t('Italic'),
                        '$eduline'  => $this->t('Underline'),
                        '$edquote'  => $this->t('Quote'),
+                       '$edemojis' => $this->t('Add emojis'),
                        '$edcode'   => $this->t('Code'),
                        '$edurl'    => $this->t('Link'),
                        '$edattach' => $this->t('Link or Media'),