From f7323c065a086533ce8c7f0f0cb3f69a80539992 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 26 Apr 2025 15:03:05 +0200 Subject: [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend (#4052) * [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend * whoops * boop * restore function signature of ExtractAttachments --- web/template/status_attachment.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/template') diff --git a/web/template/status_attachment.tmpl b/web/template/status_attachment.tmpl index d04f11d5d..6f5041229 100644 --- a/web/template/status_attachment.tmpl +++ b/web/template/status_attachment.tmpl @@ -29,6 +29,10 @@ height="{{- .Meta.Small.Height -}}" data-blurhash-hash="{{- .Blurhash -}}" data-sensitive="{{- .Sensitive -}}" + {{- if or (ne .Meta.Focus.X 0.0) (ne .Meta.Focus.Y 0.0) }} + data-object-position="{{ objectPosition .Meta.Focus.X .Meta.Focus.Y }}" + {{- else }} + {{- end }} /> {{- else }} {{- end }} -- cgit v1.2.3