Update StoryComposeController, fix expiry bug

This commit is contained in:
Daniel Supernault 2021-09-04 01:55:29 -06:00
parent 8c86953f42
commit 7dee8f58fe
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -68,6 +68,7 @@ class StoryComposeController extends Controller
$story->local = true;
$story->size = $photo->getSize();
$story->bearcap_token = str_random(64);
$story->expires_at = now()->addMinutes(1440);
$story->save();
$url = $story->path;
@ -179,7 +180,6 @@ class StoryComposeController extends Controller
->findOrFail($id);
$story->active = true;
$story->expires_at = now()->addMinutes(1440);
$story->duration = $request->input('duration', 10);
$story->can_reply = $request->input('can_reply');
$story->can_react = $request->input('can_react');