]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Post/Edit.php
spelling: occurred
[friendica.git] / src / Module / Post / Edit.php
index 11c50ff130408e5d3a0afa53dae0a0a68d54b21d..0d6badf4da4b4614ca330db3538821033750ecc4 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
  *
@@ -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);