From d9bf17761d6b770e8e56c642a8fa0f8e460a662f Mon Sep 17 00:00:00 2001 From: jade (winter) Date: Sat, 9 May 2026 15:50:43 +0100 Subject: add rudimentary language option and improve reply scope stuff --- templates/note/reply_form.php | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'templates/note/reply_form.php') diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php index 1f84133..37b24b0 100644 --- a/templates/note/reply_form.php +++ b/templates/note/reply_form.php @@ -14,12 +14,13 @@ if ($note->summary) { } $scopeOptions = match ($note->privacy->scope) { - NotePrivacyScope::NONE => ['none'], - NotePrivacyScope::MUTUALS => ['none', 'mutuals'], - NotePrivacyScope::FOLLOWERS => ['none', 'mutuals', 'followers'], - default => ['none', 'mutuals', 'followers', 'public'] + NotePrivacyScope::NONE => ['none' => 'lock'], + NotePrivacyScope::MUTUALS => ['none' => 'lock', 'mutuals' => 'group'], + NotePrivacyScope::FOLLOWERS => ['none' => 'lock', 'mutuals' => 'group', 'followers' => 'groups'], + default => ['none' => 'lock', 'mutuals' => 'group', 'followers' => 'groups', 'public' => 'public'] }; $selectedScope = $note->privacy->scope->value; +$selectedInteractors = $note->privacy->canReply->value; ?>
- - autocomplete="off"> + - + +
+ + 'person-off', 'mutuals' => 'group', 'followers' => 'groups', 'all' => 'select-all'] as $group => $icon): ?> + autocomplete="off"> + + +
+ +
+ +
-- cgit v1.3