mirror of
https://github.com/friendica/friendica
synced 2025-04-20 19:50:12 +00:00
Issue 9264: post types should now work
This commit is contained in:
parent
e0b0ca96d1
commit
9552473db5
3 changed files with 35 additions and 30 deletions
|
@ -488,6 +488,7 @@ class Processor
|
|||
}
|
||||
|
||||
$stored = false;
|
||||
ksort($activity['receiver']);
|
||||
|
||||
foreach ($activity['receiver'] as $receiver) {
|
||||
if ($receiver == -1) {
|
||||
|
@ -523,12 +524,10 @@ class Processor
|
|||
$item['post-type'] = Item::PT_ARTICLE;
|
||||
}
|
||||
|
||||
if (in_array($item['post-type'], [Item::PT_COMMENT, Item::PT_GLOBAL, Item::PT_ARTICLE])) {
|
||||
if (!empty($activity['from-relay'])) {
|
||||
$item['post-type'] = Item::PT_RELAY;
|
||||
} elseif (!empty($activity['thread-completion'])) {
|
||||
$item['post-type'] = Item::PT_FETCHED;
|
||||
}
|
||||
if (!empty($activity['from-relay'])) {
|
||||
$item['post-type'] = Item::PT_RELAY;
|
||||
} elseif (!empty($activity['thread-completion'])) {
|
||||
$item['post-type'] = Item::PT_FETCHED;
|
||||
}
|
||||
|
||||
if (!empty($activity['from-relay'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue