summaryrefslogtreecommitdiff
path: root/internal/media/processingmedia.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-07-30 09:29:32 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-30 11:29:32 +0200
commit47c26818d6cd1545540e44d3475278a6a4296a77 (patch)
treeb1a2c6046b84d9849af29bf7720c00243005cb89 /internal/media/processingmedia.go
parent[feature] Implement following hashtags (#3141) (diff)
downloadgotosocial-47c26818d6cd1545540e44d3475278a6a4296a77.tar.xz
[chore] add some more slice related utility functions + remove duplicated functions (#3149)
Diffstat (limited to 'internal/media/processingmedia.go')
-rw-r--r--internal/media/processingmedia.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go
index b68d8d680..3da036ac7 100644
--- a/internal/media/processingmedia.go
+++ b/internal/media/processingmedia.go
@@ -218,8 +218,13 @@ func (p *ProcessingMedia) store(ctx context.Context) error {
}
if width > 0 && height > 0 {
- // Determine thumbnail dimensions to use.
- thumbWidth, thumbHeight := thumbSize(width, height, aspect, result.rotation)
+ // Determine thumbnail dimens to use.
+ thumbWidth, thumbHeight := thumbSize(
+ width,
+ height,
+ aspect,
+ result.rotation,
+ )
p.media.FileMeta.Small.Width = thumbWidth
p.media.FileMeta.Small.Height = thumbHeight
p.media.FileMeta.Small.Size = (thumbWidth * thumbHeight)