From e14f4b88e77b380afa8e40e1e66f48772515e95c Mon Sep 17 00:00:00 2001
From: winter Sparkles
Date: Thu, 2 Jul 2026 19:07:41 +0100
Subject: add IDN support in various ui places
---
templates/actor/profile.php | 2 +-
templates/actor/profile_editable.php | 4 ++--
templates/actor/profile_page.php | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
(limited to 'templates/actor')
diff --git a/templates/actor/profile.php b/templates/actor/profile.php
index 0029e8e..aa403a6 100644
--- a/templates/actor/profile.php
+++ b/templates/actor/profile.php
@@ -21,7 +21,7 @@ $actorUser = UserAccount::findByLinkedActor($actor);
= htmlspecialchars($actor->displayName) ?>
= htmlspecialchars($actor->pronouns) ?>
-
@= $actor->getFullHandle() ?>
+
@= $actor->getFullHandle($convertIdn = true) ?>
= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?>
automated): ?>
diff --git a/templates/actor/profile_editable.php b/templates/actor/profile_editable.php
index f6a0fc4..bb5f72c 100644
--- a/templates/actor/profile_editable.php
+++ b/templates/actor/profile_editable.php
@@ -15,7 +15,7 @@
value="= htmlspecialchars($actor->pronouns) ?>">
- @= $actor->getFullHandle() ?>
+ @= $actor->getFullHandle($convertIdn = true) ?>
= sprintf(__('user.profile.createdAt'), format_datetime($actor->created)) ?>
@@ -38,4 +38,4 @@
-
\ No newline at end of file
+
diff --git a/templates/actor/profile_page.php b/templates/actor/profile_page.php
index f9b688c..53bd47d 100644
--- a/templates/actor/profile_page.php
+++ b/templates/actor/profile_page.php
@@ -8,7 +8,7 @@ $lang = get_ui_language();
$actorUser = UserAccount::findByLinkedActor($actor);
call_template('skeleton', [
- 'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle(),
+ 'pageTitle' => "$actor->displayName - @" . $actor->getFullHandle($convertIdn = true),
'renderTitleHeading' => false,
'ogTitle' => $actor->displayName,
'ogDesc' => $actor->bio,
@@ -58,4 +58,4 @@ call_template('skeleton', [
call_template('placeholder_text', ['count' => $countNotShown]);
}
}
-});
\ No newline at end of file
+});
--
cgit v1.3