aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/revolt/client.go4
1 files changed, 4 insertions, 0 deletions
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
+}