X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDiaspora.php;h=d276814f5d3e21a17055d14bfd8198c5be77ec58;hb=b065318366301f57a0a7aaf33f1429e73dfc991c;hp=5fe4149c02d92117e988e7dee45fba30104d5b3e;hpb=bd2ee581d31f014c5e9a5055ebc1cd9958abb5d5;p=friendica.git diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 5fe4149c02..d276814f5d 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1,6 +1,6 @@ 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); }