1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update StoryController, fix postgres bug

This commit is contained in:
Daniel Supernault 2020-01-08 14:51:34 -07:00
parent fa8aed7dd5
commit a8a8e5f0dc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -42,7 +42,9 @@ class StoryController extends Controller
} }
$story = new Story(); $story = new Story();
$story->duration = 3;
$story->profile_id = $user->profile_id; $story->profile_id = $user->profile_id;
$story->expires_at = now()->addHours(24);
$story->save(); $story->save();
$monthHash = substr(hash('sha1', date('Y').date('m')), 0, 12); $monthHash = substr(hash('sha1', date('Y').date('m')), 0, 12);