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 --- testrig/testmodels.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testrig') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index dd74031c1..c059d4065 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -709,6 +709,12 @@ func NewTestAttachments() map[string]*gtsmodel.MediaAttachment { Size: 137216, Aspect: 1.9104477, }, + // Focus on top-left + // quadrant of image. + Focus: gtsmodel.Focus{ + X: -0.5, + Y: 0.5, + }, }, AccountID: "01F8MH17FWEB39HZJ76B6VXSKF", Description: "Black and white image of some 50's style text saying: Welcome On Board", -- cgit v1.3