X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FFeed.php;h=65af597f169962526514a596cf5e5a60c2bb64fb;hb=75e450bc1540a3547f6d337dc61de7cfae7a4c83;hp=a86d9f98f59bf78fd0531b1f5c457cae9e28077c;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index a86d9f98f5..65af597f16 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -235,6 +235,7 @@ class Feed $header["private"] = Item::PUBLIC; $header["verb"] = Activity::POST; $header["object-type"] = Activity\ObjectType::NOTE; + $header["post-type"] = Item::PT_ARTICLE; $header["contact-id"] = $contact["id"] ?? 0; @@ -539,6 +540,10 @@ class Feed } } + if (empty($item['title'])) { + $item['post-type'] = Item::PT_NOTE; + } + Logger::info('Stored feed', ['item' => $item]); $notify = Item::isRemoteSelf($contact, $item);