From e78e817057e01ce0cd2e3d532e4ca9ded8b88b73 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 1 Mar 2025 13:06:08 +0100 Subject: [PATCH] [feature] add microformat support (#3848) Related: #2959 Signed-off-by: Luca Matei Pintilie --- web/template/profile.tmpl | 23 ++++++++++++----------- web/template/status.tmpl | 8 ++++---- web/template/status_attributes.tmpl | 1 + web/template/status_header.tmpl | 9 ++++++--- web/template/status_info.tmpl | 4 ++-- 5 files changed, 25 insertions(+), 20 deletions(-) diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index bf58d660b..0456644c9 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -106,7 +106,7 @@ /> {{- end }} {{- template +

Profile for {{ .account.Username -}}

{{- if .account.Moved }} @@ -148,7 +148,7 @@ {{- end }}
Display name
-
+
{{- if .account.DisplayName -}} {{- emojify .account.Emojis (escape .account.DisplayName) -}} {{- else -}} @@ -171,7 +171,7 @@
{{- end }}
Username
-
@{{- .account.Username -}}@{{- .instance.AccountDomain -}}
+
@{{- .account.Username -}}@{{- .instance.AccountDomain -}}
{{- if .account.Roles }}
Role
@@ -180,6 +180,7 @@ {{- end }} {{- end }}
+
@@ -191,7 +192,7 @@ {{- include "profile_fields.tmpl" . | indent 3 }} {{- end }}

Bio

-
+
{{- if .account.Note }} {{ emojify .account.Emojis (noescape .account.Note) }} {{- else }} @@ -212,15 +213,15 @@
{{- if .pinned_statuses }} -
+
-

Pinned posts

+

Pinned posts

jump to recent
{{- range .pinned_statuses }}
{{- include "status.tmpl" . | indent 6 }} @@ -229,9 +230,9 @@
{{- end }} -
+