]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
move forgotten rotator from template
[friendica.git] / src / Protocol / DFRN.php
index 8bf299be680195f8c7e31b66dbb503eae7f66ce1..1bb7bf3ff14dd2938339ed92c3f0d3bfb8e5aed2 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
  *
@@ -774,6 +774,7 @@ class DFRN
                }
 
                $body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
+               $body = Post\Media::addHTMLAttachmentToBody($item['uri-id'], $body);
 
                if ($item['private'] == Item::PRIVATE) {
                        $body = Item::fixPrivatePhotos($body, $owner['uid'], $item, $cid);
@@ -1040,7 +1041,7 @@ class DFRN
                }
 
                if (!empty($contact['gsid'])) {
-                       GServer::setReachableById($contact['gsid']);
+                       GServer::setReachableById($contact['gsid'], Protocol::DFRN);
                }
 
                if (!empty($res->message)) {
@@ -2079,6 +2080,7 @@ class DFRN
                        // This is my contact on another system, but it's really me.
                        // Turn this into a wall post.
                        $notify = Item::isRemoteSelf($importer, $item);
+                       $item['wall'] = (bool)$notify;
 
                        $posted_id = Item::insert($item, $notify);