X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=641f56329c25bef71f05facc59f9dd1b533fc7d9;hb=4faf08c0643d3e6bbe2a0a77be2ff8c1dbea4d5c;hp=400ed2dab7f2b3437c4b9495e902b6e07d5c849a;hpb=b3f9cef94a7be372428767125f85b7fec085b460;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 400ed2dab7..641f56329c 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -1,6 +1,6 @@ getLocalUserId() ? Contact::getPublicIdByUserId(DI::userSession()->getLocalUserId()) : DI::userSession()->getRemoteUserId(); + $visitorPCid = DI::userSession()->getPublicContactId() ?: DI::userSession()->getRemoteUserId(); if (!$visitorPCid) { return ''; }