aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
authorwinter2025-02-07 18:26:05 +0000
committerwinter2025-02-07 18:26:05 +0000
commitd18ec187847893f94418b29bc6a087d6b2dd9a2d (patch)
tree8ea4451cb1f62f8041eae71ca60ec2b64fafe8b2 /routes
parent43f0b9f41a582925838b2ba686110b2f07576be3 (diff)
localise note timestamps and stuff
Diffstat (limited to 'routes')
-rw-r--r--routes/note_fragment.php2
-rw-r--r--routes/preferences.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/routes/note_fragment.php b/routes/note_fragment.php
index be1c33f..916fc8d 100644
--- a/routes/note_fragment.php
+++ b/routes/note_fragment.php
@@ -101,7 +101,7 @@ Router::getInstance()->mount('/fragment/note', function (array $args) {
$note = Note::create(
$author->actor,
trim($_POST['content']),
- 'unk',
+ get_ui_language(), // TODO: actual language selector/detection
$summary,
NotePrivacyScope::from($_POST['scope'])
);
diff --git a/routes/preferences.php b/routes/preferences.php
index cb07bd1..243f90d 100644
--- a/routes/preferences.php
+++ b/routes/preferences.php
@@ -18,6 +18,7 @@ Router::getInstance()->mount('/fragment/preferences', function (array $args) {
$user->actor->requestToFollow = $_POST['requestToFollow'] == 'true';
$user->actor->save();
$settings->set('interface.smallUnreadIndicators', $_POST['smallIndicators']);
+ $settings->set('locale.timezone', $_POST['timezone']);
$saved = true;
}