feat(photos): add square medium variant for sharp grid thumbnails
This commit is contained in:
@@ -133,6 +133,11 @@ func (s *Service) attachURLs(ctx context.Context, p *models.Photo) error {
|
||||
p.ThumbURL = url
|
||||
}
|
||||
}
|
||||
if p.MediumKey != "" {
|
||||
if url, err := s.storage.URL(ctx, p.MediumKey); err == nil {
|
||||
p.MediumURL = url
|
||||
}
|
||||
}
|
||||
if p.PreviewKey != "" {
|
||||
if url, err := s.storage.URL(ctx, p.PreviewKey); err == nil {
|
||||
p.PreviewURL = url
|
||||
|
||||
Reference in New Issue
Block a user