From 276b1fdd41de087a6700a1578e71dd8ccf83fee6 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 17 Jun 2023 19:59:20 -0400 Subject: cmd/marabot: upload shit to S3 Signed-off-by: Xe Iaso --- web/revolt/client.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/revolt') diff --git a/web/revolt/client.go b/web/revolt/client.go index f83f8ea..9d195ba 100644 --- a/web/revolt/client.go +++ b/web/revolt/client.go @@ -411,3 +411,7 @@ func (c *Client) Upload(ctx context.Context, tag, fname string, data []byte) (st } return res.ID, nil } + +func (c *Client) ResolveAttachment(att *Attachment) string { + return c.Settings.Features.Autumn.URL + "/" + att.Tag + "/" + att.ID +} -- cgit v1.2.3