Update StoryComposeController, fix expiry bug

pull/2900/head
Daniel Supernault 2021-09-04 01:55:29 -06:00
rodzic 8c86953f42
commit 7dee8f58fe
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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');