From 69dc1b59a4ee995f4f6ae229df5e4a36889f48ce Mon Sep 17 00:00:00 2001 From: r Date: Wed, 7 Apr 2021 05:21:53 +0000 Subject: Use preview url for images --- templates/status.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index a1e2d9f..fdff1f8 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -101,7 +101,7 @@ {{else}} - status-image + status-image {{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
{{end}} -- cgit v1.2.3 From c7e130e305c1071a75ef4bbe01ad39af2343041d Mon Sep 17 00:00:00 2001 From: r Date: Wed, 7 Apr 2021 06:55:11 +0000 Subject: Fix animated avatars --- templates/status.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index fdff1f8..d6bfedf 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -3,7 +3,7 @@ {{if .Reblog}}
- avatar + avatar {{EmojiFilter .Account.DisplayName .Account.Emojis}} @@ -18,7 +18,7 @@
-- cgit v1.2.3 From 469f2d1d25f0b266abb15eab410131ebe1856aad Mon Sep 17 00:00:00 2001 From: r Date: Fri, 23 Apr 2021 10:19:09 +0000 Subject: Fix HTML escaping --- templates/status.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index d6bfedf..7dcc0b6 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -88,7 +88,7 @@ {{end}}
{{if .Content}} -
{{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}}
+
{{StatusContentFilter (html .SpoilerText) .Content .Emojis .Mentions}}
{{end}} {{if .MediaAttachments}}
@@ -153,12 +153,12 @@ {{range $i, $o := .Poll.Options}}
{{if (or $s.Poll.Expired $s.Poll.Voted)}} -
{{EmojiFilter $o.Title $s.Emojis}} - {{$o.VotesCount}} votes
+
{{EmojiFilter $o.Title $s.Emojis | html}} - {{$o.VotesCount}} votes
{{else}} {{end}}
-- cgit v1.2.3 From 045be151bd275d0913305dc2a22f9af3d866fd17 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 10 May 2021 13:29:18 +0000 Subject: Fix emojis --- templates/status.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index 7dcc0b6..775631a 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -153,12 +153,12 @@ {{range $i, $o := .Poll.Options}}
{{if (or $s.Poll.Expired $s.Poll.Voted)}} -
{{EmojiFilter $o.Title $s.Emojis | html}} - {{$o.VotesCount}} votes
+
{{EmojiFilter (html $o.Title) $s.Emojis}} - {{$o.VotesCount}} votes
{{else}} {{end}}
-- cgit v1.2.3 From 07978649f151fe2a9daa85441400215edf7d50fc Mon Sep 17 00:00:00 2001 From: r Date: Sun, 30 May 2021 06:59:34 +0000 Subject: Fix retweet button for private/direct post --- templates/status.tmpl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index 775631a..9109f4e 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -193,24 +193,19 @@
- {{if or (eq .Visibility "private") (eq .Visibility "direct")}} - - retweet - - {{else}} {{$rt := "retweet"}} {{if .Reblogged}} {{$rt = "unretweet"}} {{end}}
- + {{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}} ({{DisplayInteractionCount .ReblogsCount}}) {{end}}
- {{end}}
{{$like := "like"}} {{if .Favourited}} {{$like = "unlike"}} {{end}} -- cgit v1.2.3