diff options
author | 2021-09-11 20:18:06 +0100 | |
---|---|---|
committer | 2021-09-11 20:18:06 +0100 | |
commit | 7f36688643dfa6a08d032ffdb61cbf1c5370d3c4 (patch) | |
tree | b623b44349eee12133a2cada1d2b1d6a19b2f626 /internal/media/processicon.go | |
parent | add git.iim.gay/grufwub/go-store for storage backend, replacing blob.Storage (diff) | |
download | gotosocial-7f36688643dfa6a08d032ffdb61cbf1c5370d3c4.tar.xz |
rename KVStore uses as storage to differentiate between upcoming store package
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'internal/media/processicon.go')
-rw-r--r-- | internal/media/processicon.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/media/processicon.go b/internal/media/processicon.go index 9ef4d77ec..b6b113b0c 100644 --- a/internal/media/processicon.go +++ b/internal/media/processicon.go @@ -85,13 +85,13 @@ func (mh *mediaHandler) processHeaderOrAvi(imageBytes []byte, contentType string // we store the original... originalPath := fmt.Sprintf("%s/%s/%s/%s/%s.%s", mh.config.StorageConfig.BasePath, accountID, mediaType, Original, newMediaID, extension) - if err := mh.store.Put(originalPath, original.image); err != nil { + if err := mh.storage.Put(originalPath, original.image); err != nil { return nil, fmt.Errorf("storage error: %s", err) } // and a thumbnail... smallPath := fmt.Sprintf("%s/%s/%s/%s/%s.%s", mh.config.StorageConfig.BasePath, accountID, mediaType, Small, newMediaID, extension) - if err := mh.store.Put(smallPath, small.image); err != nil { + if err := mh.storage.Put(smallPath, small.image); err != nil { return nil, fmt.Errorf("storage error: %s", err) } |