mirror of
https://github.com/friendica/friendica
synced 2025-05-23 13:44:12 +02:00
"post-reason" ends double usage of "post-type"
This commit is contained in:
parent
9a3a7793f0
commit
688e056ad1
13 changed files with 159 additions and 76 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue