Fix share assets, shared photo UI, and live show expiry
This commit is contained in:
@@ -1464,8 +1464,7 @@ class EventPublicController extends BaseController
|
||||
[
|
||||
'slug' => $shareLink->slug,
|
||||
'variant' => $variant,
|
||||
],
|
||||
absolute: false
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -212,6 +212,10 @@ class LiveShowController extends BaseController
|
||||
|
||||
return Event::query()
|
||||
->where('live_show_token', $token)
|
||||
->where(function (Builder $query) {
|
||||
$query->whereNull('live_show_token_expires_at')
|
||||
->orWhere('live_show_token_expires_at', '>=', now());
|
||||
})
|
||||
->first();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ class LiveShowLinkController extends Controller
|
||||
'url' => $url,
|
||||
'qr_code_data_url' => $this->buildQrCodeDataUrl($url),
|
||||
'rotated_at' => $event->live_show_token_rotated_at?->toIso8601String(),
|
||||
'expires_at' => $event->live_show_token_expires_at?->toIso8601String(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user