]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Cleaned advanced contact tab
[friendica.git] / src / Protocol / Diaspora.php
index 5fe4149c02d92117e988e7dee45fba30104d5b3e..d276814f5d3e21a17055d14bfd8198c5be77ec58 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -3411,7 +3411,7 @@ class Diaspora
 
                        $attachments = Post\Media::getByURIId($item['uri-id'], [Post\Media::DOCUMENT, Post\Media::TORRENT, Post\Media::UNKNOWN]);
                        if (!empty($attachments)) {
-                               $body .= "\n".DI::l10n()->t("Attachments:")."\n";
+                               $body .= "\n[hr]\n";
                                foreach ($attachments as $attachment) {
                                        $body .= "[" . $attachment['description'] . "](" . $attachment['url'] . ")\n";
                                }
@@ -4059,7 +4059,6 @@ class Diaspora
                $fields = ['uri-id', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
                $item = Post::selectFirst($fields, ['uri-id' => $UriId, 'uid' => [$uid, 0], 'private' => [Item::PUBLIC, Item::UNLISTED]]);
                if (!DBA::isResult($item)) {
-                       Logger::info('Blubb-4', ['uri-id' => $UriId, 'uid' => $uid]);
                        return 0;
                }
 
@@ -4100,7 +4099,9 @@ class Diaspora
                } else {
                        $item['private'] = Item::PUBLIC;
                }
-               Logger::info('Blubb-5', ['uri-id' => $UriId, 'uid' => $uid, 'item' => $item]);
+
+               // Don't trigger the addons
+               $item['api_source'] = false;
 
                return Item::insert($item, true);
        }