mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update StoryComposeController, fix expiry bug
This commit is contained in:
parent
8c86953f42
commit
7dee8f58fe
1 changed files with 1 additions and 1 deletions
|
@ -68,6 +68,7 @@ class StoryComposeController extends Controller
|
||||||
$story->local = true;
|
$story->local = true;
|
||||||
$story->size = $photo->getSize();
|
$story->size = $photo->getSize();
|
||||||
$story->bearcap_token = str_random(64);
|
$story->bearcap_token = str_random(64);
|
||||||
|
$story->expires_at = now()->addMinutes(1440);
|
||||||
$story->save();
|
$story->save();
|
||||||
|
|
||||||
$url = $story->path;
|
$url = $story->path;
|
||||||
|
@ -179,7 +180,6 @@ class StoryComposeController extends Controller
|
||||||
->findOrFail($id);
|
->findOrFail($id);
|
||||||
|
|
||||||
$story->active = true;
|
$story->active = true;
|
||||||
$story->expires_at = now()->addMinutes(1440);
|
|
||||||
$story->duration = $request->input('duration', 10);
|
$story->duration = $request->input('duration', 10);
|
||||||
$story->can_reply = $request->input('can_reply');
|
$story->can_reply = $request->input('can_reply');
|
||||||
$story->can_react = $request->input('can_react');
|
$story->can_react = $request->input('can_react');
|
||||||
|
|
Loading…
Reference in a new issue