mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:50:10 +00:00
Store the interaction date as well.
This commit is contained in:
parent
07a487cfdc
commit
c261457b03
3 changed files with 15 additions and 6 deletions
|
@ -1753,10 +1753,7 @@ class Item
|
|||
|
||||
// Update the contact relations
|
||||
if ($item['author-id'] != $parent['author-id']) {
|
||||
$fields = ['cid' => $parent['author-id'], 'relation-cid' => $item['author-id']];
|
||||
if (!DBA::exists('contact-relation', $fields)) {
|
||||
DBA::insert('contact-relation', $fields, true);
|
||||
}
|
||||
dba::update('contact-relation', ['last-interaction' => $item['created']], ['cid' => $parent['author-id'], 'relation-cid' => $item['author-id']], true);
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue