]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Schedule.php
Remove VCard for owner in Profile\Photos module
[friendica.git] / src / Module / Profile / Schedule.php
index cac77c9c769ed82da5d3b1794d03cc88a1a2f527..10dd5339f8cd3fb5b48c2a5110a74caf6c3eb6e0 100644 (file)
@@ -35,7 +35,7 @@ class Schedule extends BaseProfile
 {
        protected function post(array $request = [])
        {
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
                }
 
@@ -43,7 +43,7 @@ class Schedule extends BaseProfile
                        throw new HTTPException\BadRequestException();
                }
 
-               if (!DBA::exists('delayed-post', ['id' => $_REQUEST['delete'], 'uid' => local_user()])) {
+               if (!DBA::exists('delayed-post', ['id' => $_REQUEST['delete'], 'uid' => DI::userSession()->getLocalUserId()])) {
                        throw new HTTPException\NotFoundException();
                }
 
@@ -52,16 +52,16 @@ class Schedule extends BaseProfile
 
        protected function content(array $request = []): string
        {
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
                }
 
                $a = DI::app();
 
-               $o = self::getTabsHTML($a, 'schedule', true, $a->getLoggedInUserNickname(), false);
+               $o = self::getTabsHTML('schedule', true, $a->getLoggedInUserNickname(), false);
 
                $schedule = [];
-               $delayed = DBA::select('delayed-post', [], ['uid' => local_user()]);
+               $delayed = DBA::select('delayed-post', [], ['uid' => DI::userSession()->getLocalUserId()]);
                while ($row = DBA::fetch($delayed)) {
                        $parameter = Post\Delayed::getParametersForid($row['id']);
                        if (empty($parameter)) {