]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Content/Widget.php
authorPhilipp <admin+Github@philipp.info>
Fri, 21 Oct 2022 17:34:02 +0000 (19:34 +0200)
committerPhilipp <admin@philipp.info>
Fri, 21 Oct 2022 17:35:34 +0000 (19:35 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Content/Widget.php

index 400ed2dab7f2b3437c4b9495e902b6e07d5c849a..6d00c6132089c91d07e3119f1fd1b53fb7bd1c20 100644 (file)
@@ -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 '';
                }