]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Continued:
[friendica.git] / src / Content / Widget.php
index 876fbc79e489eafa8f0bd91d7e1e9918c7e1bff0..b9a75e4d2d8c5c1546f246175d55ff3b59171cb5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -574,7 +574,7 @@ class Widget
                        }
                }
 
-               foreach (DI::UserDefinedChannelFactory()->getForUser($uid) as $channel) {
+               foreach (DI::userDefinedChannel()->selectByUid($uid) as $channel) {
                        if (empty($enabled) || in_array($channel->code, $enabled)) {
                                $channels[] = ['ref' => $channel->code, 'name' => $channel->label];
                        }