https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad5dc91
)
Use the contact id whenever we are following the contact
author
Michael
<heluecht@pirati.ca>
Tue, 13 Aug 2019 15:54:47 +0000
(15:54 +0000)
committer
Michael
<heluecht@pirati.ca>
Tue, 13 Aug 2019 15:54:47 +0000
(15:54 +0000)
src/Model/Item.php
patch
|
blob
|
history
diff --git
a/src/Model/Item.php
b/src/Model/Item.php
index
fbc4a23
..
f1983dd
100644
(file)
--- a/
src/Model/Item.php
+++ b/
src/Model/Item.php
@@
-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'])) {