summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-04-26 15:03:05 +0200
committerLibravatar GitHub <noreply@github.com>2025-04-26 15:03:05 +0200
commitf7323c065a086533ce8c7f0f0cb3f69a80539992 (patch)
treeba1451f4d1c1841bcc0867599673d9527c31f2bf /testrig/testmodels.go
parent[performance] rewrite timelines to rely on new timeline cache type (#3941) (diff)
downloadgotosocial-f7323c065a086533ce8c7f0f0cb3f69a80539992.tar.xz
[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
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go6
1 files changed, 6 insertions, 0 deletions
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",