mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Expiry post search index entries
This commit is contained in:
parent
919f97c9a0
commit
6389133575
12 changed files with 397 additions and 299 deletions
|
@ -1450,7 +1450,7 @@ class Item
|
|||
$engagement_uri_id = Post\Engagement::storeFromItem($posted_item);
|
||||
|
||||
if (in_array($posted_item['gravity'], [self::GRAVITY_PARENT, self::GRAVITY_COMMENT])) {
|
||||
Post\SearchIndex::insert($posted_item['uri-id'], $posted_item['network'], $posted_item['private']);
|
||||
Post\SearchIndex::insert($posted_item['uri-id'], $posted_item['network'], $posted_item['private'], $posted_item['created']);
|
||||
}
|
||||
|
||||
if (($posted_item['gravity'] == self::GRAVITY_ACTIVITY) && ($posted_item['verb'] == Activity::ANNOUNCE) && ($posted_item['parent-uri-id'] == $posted_item['thr-parent-id'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue