]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Removed redundant maximagesize = INF statements
[friendica.git] / 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 '';
                }