]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Merge pull request #12562 from MrPetovan/bug/notices
[friendica.git] / src / Content / Widget.php
index 400ed2dab7f2b3437c4b9495e902b6e07d5c849a..641f56329c25bef71f05facc59f9dd1b533fc7d9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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 '';
                }