Browse Source

Use the contact id whenever we are following the contact

tags/2019.09
Michael 3 months ago
parent
commit
aab6b739d8
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/Model/Item.php

+ 2
- 0
src/Model/Item.php View File

@@ -1243,6 +1243,8 @@ class Item extends BaseObject
{
if (!empty($item['contact-id']) && DBA::exists('contact', ['self' => true, 'id' => $item['contact-id']])) {
return $item['contact-id'];
} elseif (($item['gravity'] == GRAVITY_PARENT) && !empty($item['uid']) && !empty($item['contact-id']) && Contact::isSharing($item['contact-id'], $item['uid'])) {
return $item['contact-id'];
} elseif (!empty($item['uid']) && !Contact::isSharing($item['author-id'], $item['uid'])) {
return $item['author-id'];
} elseif (!empty($item['contact-id'])) {

Loading…
Cancel
Save