mirror of
https://github.com/friendica/friendica
synced 2025-04-24 08:30:11 +00:00
Use channels for non public content
This commit is contained in:
parent
a1f6e6e871
commit
b00c2070d7
9 changed files with 67 additions and 58 deletions
|
@ -1250,7 +1250,7 @@ class Item
|
|||
}
|
||||
}
|
||||
|
||||
Post::insert($item['uri-id'], $item);
|
||||
$inserted = Post::insert($item['uri-id'], $item);
|
||||
|
||||
if ($item['gravity'] == self::GRAVITY_PARENT) {
|
||||
Post\Thread::insert($item['uri-id'], $item);
|
||||
|
@ -1405,7 +1405,9 @@ class Item
|
|||
self::updateDisplayCache($posted_item['uri-id']);
|
||||
}
|
||||
|
||||
Post\Engagement::storeFromItem($posted_item);
|
||||
if ($inserted) {
|
||||
Post\Engagement::storeFromItem($posted_item);
|
||||
}
|
||||
|
||||
return $post_user_id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue