From: Michael Date: Fri, 2 Aug 2019 16:46:26 +0000 (+0000) Subject: Improved PR 7452: We now respect the "self" contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=418009ffea8f9eed127e568a6069ae00c4ee5685;p=friendica.git Improved PR 7452: We now respect the "self" contact --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 248e646afc..ef461fe652 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1234,7 +1234,9 @@ class Item extends BaseObject private static function contactId($item) { - if (!empty($item['uid']) && !Contact::isSharing($item['author-id'], $item['uid'])) { + if (!empty($item['contact-id']) && DBA::exists('contact', ['self' => true, 'id' => $item['contact-id']])) { + return $item['contact-id']; + } elseif (!empty($item['uid']) && !Contact::isSharing($item['author-id'], $item['uid'])) { return $item['author-id']; } elseif (!empty($item['contact-id'])) { return $item['contact-id'];