"post-reason" ends double usage of "post-type"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user