Also return google bucket url in response

This commit is contained in:
2022-12-17 14:23:47 +01:00
parent 576a4e1579
commit 79d7c4068b
5 changed files with 25 additions and 21 deletions

View File

@@ -6,8 +6,9 @@ import (
// MessageImage is a representation of a single image in the database
type Image struct {
Path string `json:"path"`
URL string `json:"url,omitempty"`
Path string `json:"path"`
URL string `json:"url,omitempty"`
RemoteURL string `json:"remote_url"`
}
// GetURL gets URL of the image, also in cases where MessageImage.URL is not defined.