Gate Events-linked joins behind registration and badge check-in.
Deploy Ladill Meet / deploy (push) Successful in 43s
Deploy Ladill Meet / deploy (push) Successful in 43s
Attendees register or sign in with a badge before the display-name screen; email is no longer collected on the Meet join form. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -51,18 +51,32 @@ class EventsSourceLink
|
||||
return $eventId ? self::baseUrl().'/events/'.$eventId : null;
|
||||
}
|
||||
|
||||
public static function eventRegistrationUrl(Room $room): ?string
|
||||
public static function meetReturnUrl(Room $room): string
|
||||
{
|
||||
return route('meet.join', $room, absolute: true);
|
||||
}
|
||||
|
||||
public static function eventRegistrationUrl(Room $room, ?string $meetReturn = null): ?string
|
||||
{
|
||||
$source = (array) ($room->source ?? []);
|
||||
$stored = trim((string) ($source['registration_url'] ?? ''));
|
||||
|
||||
if ($stored !== '') {
|
||||
return $stored;
|
||||
$url = $stored !== ''
|
||||
? $stored
|
||||
: (($eventId = self::eventId($room))
|
||||
? self::baseUrl().'/q/'.($source['short_code'] ?? '')
|
||||
: null);
|
||||
|
||||
if ($url === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$eventId = self::eventId($room);
|
||||
$meetReturn = trim((string) ($meetReturn ?? ''));
|
||||
if ($meetReturn === '') {
|
||||
return $url;
|
||||
}
|
||||
|
||||
return $eventId ? self::baseUrl().'/q/'.($source['short_code'] ?? '') : null;
|
||||
return $url.(str_contains($url, '?') ? '&' : '?').'meet_return='.urlencode($meetReturn);
|
||||
}
|
||||
|
||||
public static function eventQrUrl(Room $room): ?string
|
||||
|
||||
Reference in New Issue
Block a user