From 8a3fabf56e70787034ed2d429eafde83579c91c0 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 5 Feb 2022 15:20:39 +0100 Subject: [PATCH] fix: include links/captions for images not thumbnail'd --- distribusi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribusi.go b/distribusi.go index cbf4a16..4061ce5 100644 --- a/distribusi.go +++ b/distribusi.go @@ -570,12 +570,12 @@ func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { } if stype == "gif" { - href = fmt.Sprintf("", fname) + href = fmt.Sprintf("
%s
", fname, stype, fname, caption) } else { thumb, err := genThumb(c, fpath, caption) if err != nil { logrus.Debugf("failed to generate thumbnail for %s, showing original image", fpath) - href = fmt.Sprintf("", stype, fname) + href = fmt.Sprintf("
%s
", fname, stype, fname, caption) } else { href = fmt.Sprintf( "
%s
",