From 55d559552c23ed8772092f7383e7700609089f62 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 13 Dec 2019 20:03:26 +0000 Subject: [PATCH] Add attachment media support --- templates/status.tmpl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/templates/status.tmpl b/templates/status.tmpl index 47ff6e4..fde2309 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -8,6 +8,27 @@ {{.Account.Acct}}
{{WithEmojis .Content .Emojis}}
+
+ {{range .MediaAttachments}} + {{if eq .Type "image"}} + + status-image + + {{else if eq .Type "audio"}} + + {{else if eq .Type "video"}} + + {{else}} + attachment + {{end}} + {{end}} +