]> git.mxchange.org Git - friendica.git/commitdiff
Oh no, even more notices ... (#5697)
authorMichael Vogel <icarus@dabo.de>
Wed, 29 Aug 2018 18:28:13 +0000 (18:28 +0000)
committerHypolite Petovan <mrpetovan@eml.cc>
Wed, 29 Aug 2018 18:28:13 +0000 (14:28 -0400)
mod/videos.php
src/Model/User.php

index e622e17f0f33cac9258352808e2cd520f8794590..e00df10a24b48d171fa05287c7456b86875a795d 100644 (file)
@@ -367,11 +367,12 @@ function videos_content(App $a)
                foreach ($r as $rr) {
                        $alt_e = $rr['filename'];
                        /// @todo The album isn't part of the above query. This seems to be some unfinished code that needs to be reworked completely.
+                       $rr['album'] = '';
                        $name_e = $rr['album'];
 
                        $videos[] = [
                                'id'       => $rr['id'],
-                               'link'     => System::baseUrl() . '/videos/' . $a->data['user']['nickname'] . '/video/' . $rr['resource-id'],
+                               'link'     => System::baseUrl() . '/videos/' . $a->data['user']['nickname'] . '/video/' . $rr['hash'],
                                'title'    => L10n::t('View Video'),
                                'src'      => System::baseUrl() . '/attach/' . $rr['id'] . '?attachment=0',
                                'alt'      => $alt_e,
index a43ef06f970619105a9cd8e29f84f86972697aa5..d65e7d8f9699e41aabadb406bd3034bd7da2266f 100644 (file)
@@ -730,7 +730,7 @@ class User
                DBA::insert('userd', ['username' => $user['nickname']]);
 
                // The user and related data will be deleted in "cron_expire_and_remove_users" (cronjobs.php)
-               DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc($t . " + 7 day")], ['uid' => $uid]);
+               DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . " + 7 day")], ['uid' => $uid]);
                Worker::add(PRIORITY_HIGH, "Notifier", "removeme", $uid);
 
                // Send an update to the directory