Fetch followers/followings of contacts

This commit is contained in:
Michael 2020-07-26 07:34:33 +00:00
parent eaf159fc20
commit 18617f6c48
10 changed files with 219 additions and 208 deletions

View file

@ -1554,9 +1554,7 @@ class Item
}
// Update the contact relations
if ($item['author-id'] != $parent['author-id']) {
DBA::update('contact-relation', ['last-interaction' => $item['created']], ['cid' => $parent['author-id'], 'relation-cid' => $item['author-id']], true);
}
ContactRelation::store($parent['author-id'], $item['author-id'], $item['created']);
}
return $item;