]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Smilies.php
Merge pull request #12591 from MrPetovan/task/2023-licence
[friendica.git] / src / Content / Smilies.php
index 04dcf99070ac234e5a95197462fa0d97ef38cbdc..5ebb5b64e83341c5f958438aa3fff413d8308073 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
  *
@@ -213,7 +213,7 @@ class Smilies
        public static function replaceFromArray(string $text, array $smilies, bool $no_images = false): string
        {
                if (intval(DI::config()->get('system', 'no_smilies'))
-                       || (local_user() && intval(DI::pConfig()->get(local_user(), 'system', 'no_smilies')))
+                       || (DI::userSession()->getLocalUserId() && intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'no_smilies')))
                ) {
                        return $text;
                }