Browse Source

Use the contact id whenever we are following the contact

pull/7512/head
Michael 1 week 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
1243 1243
 	{
1244 1244
 		if (!empty($item['contact-id']) && DBA::exists('contact', ['self' => true, 'id' => $item['contact-id']])) {
1245 1245
 			return $item['contact-id'];
1246
+		} elseif (($item['gravity'] == GRAVITY_PARENT) && !empty($item['uid']) && !empty($item['contact-id']) && Contact::isSharing($item['contact-id'], $item['uid'])) {
1247
+			return $item['contact-id'];
1246 1248
 		} elseif (!empty($item['uid']) && !Contact::isSharing($item['author-id'], $item['uid'])) {
1247 1249
 			return $item['author-id'];
1248 1250
 		} elseif (!empty($item['contact-id'])) {

Loading…
Cancel
Save