summary) { if (strtolower(substr($note->summary, 0, 3)) == 're:') { $summaryText = $note->summary; } else { $summaryText = "re: $note->summary"; } } $scopeOptions = match ($note->privacy->scope) { 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; ?>