From: Philipp Date: Fri, 21 Oct 2022 17:34:02 +0000 (+0200) Subject: Update src/Content/Widget.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b3caca27663a37b06bc9ada6ed5a3e813a11e64;p=friendica.git Update src/Content/Widget.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 400ed2dab7..6d00c61320 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -365,7 +365,7 @@ class Widget return ''; } - $visitorPCid = DI::userSession()->getLocalUserId() ? Contact::getPublicIdByUserId(DI::userSession()->getLocalUserId()) : DI::userSession()->getRemoteUserId(); + $visitorPCid = DI::userSession()->getPublicContactId() ?: DI::userSession()->getRemoteUserId(); if (!$visitorPCid) { return ''; }