From 78536f774cacece20c22c1b26a7c4840d9e10794 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 27 Jan 2025 20:34:41 +0000 Subject: allow changing scope of replies --- templates/reply_form.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'templates') diff --git a/templates/reply_form.php b/templates/reply_form.php index 915189e..1b9961e 100644 --- a/templates/reply_form.php +++ b/templates/reply_form.php @@ -1,4 +1,5 @@ summary) { $summaryText = "re: $note->summary"; } } + +$scopeOptions = match ($note->privacy->scope) { + NotePrivacyScope::NONE => ['none'], + NotePrivacyScope::MUTUALS => ['none', 'mutuals'], + NotePrivacyScope::FOLLOWERS => ['none', 'mutuals', 'followers'], + default => ['none', 'mutuals', 'followers', 'public'] +}; +$selectedScope = $note->privacy->scope->value; ?>
summary) { } ?> +
+ + +
-- cgit v1.3