feat(mastodon): Add support for editing announcement templates

Updated the template editor and account settings to allow customization of announcement display:

- Added default announcement template to mastodon.defaults.

- Updated templateEditor to recognize announcement variables.

- Added 'Edit template for announcements' button to account configuration dialog.

- Implemented template saving logic in settings controller.
This commit is contained in:
2026-01-12 02:04:20 -06:00
parent 15a9df2ca9
commit 7a9337c07a
4 changed files with 21 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ post = string(default="$display_name, $safe_text $image_descriptions $date. $vis
person = string(default="$display_name (@$screen_name). $followers followers, $following following, $posts posts. Joined $created_at.")
conversation = string(default="Conversation with $users. Last message: $last_post")
notification = string(default="$display_name $text, $date")
announcement = string(default="$text. Published $published_at. $read")
[filters]