diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 400ed2dab..6d00c6132 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 ''; }