// 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 {
+ } else {
/*
* Allow one to see reply tweets from status.net even when
* we don't have or can't see the original post.