aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-10-28 15:31:30 +0000
committerr <r@freesoftwareextremist.com>2024-10-28 15:31:30 +0000
commit90eb2628f2a77a4deeb561f4f52d3e3cdbea31df (patch)
tree7d59875be304a763ea4923a2f765f299eb1169d8 /templates
parente5bf3159b8e485c108de0e4b1051ba6b66c16099 (diff)
downloadbloat-90eb2628f2a77a4deeb561f4f52d3e3cdbea31df.tar.gz
bloat-90eb2628f2a77a4deeb561f4f52d3e3cdbea31df.zip
fluoride: Fix like/retweet for quote posts
Diffstat (limited to 'templates')
-rw-r--r--templates/status.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index d841a93..83e210a 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -15,7 +15,7 @@
{{else}}
{{block "status" (WithContext . $.Ctx)}}
{{with $s := .Data}}
- <div class="status-container status-{{.ID}}" data-id="{{.ID}}">
+ <div class="status-container" data-id="{{.ID}}">
<div class="status-profile-img-container">
<a class="img-link" href="/user/{{.Account.ID}}">
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="@{{.Account.Acct}}" height="48">
@@ -184,7 +184,7 @@
</div>
{{end}}
{{end}}
- <div class="status-action-container">
+ <div class="status-action-container status-action-container-{{.ID}}">
<div class="status-action">
<a href="/thread/{{.ID}}?reply=true#status-{{.ID}}">reply</a>
<a class="status-reply-count {{if or $.Ctx.AntiDopamineMode (not .RepliesCount)}}hidden{{end}}"
@@ -196,7 +196,7 @@
</div>
<div class="status-action">
{{$rt := "retweet"}} {{if .Reblogged}} {{$rt = "unretweet"}} {{end}}
- <form class="status-retweet" data-action="{{$rt}}" action="/{{$rt}}/{{.ID}}" method="post" target="_self">
+ <form class="status-retweet" data-action="{{$rt}}" action="/{{$rt}}/{{.ID}}" method="post" target="_self" data-id="{{.ID}}">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
@@ -212,7 +212,7 @@
</div>
<div class="status-action">
{{$like := "like"}} {{if .Favourited}} {{$like = "unlike"}} {{end}}
- <form class="status-like" data-action="{{$like}}" action="/{{$like}}/{{.ID}}" method="post" target="_self">
+ <form class="status-like" data-action="{{$like}}" action="/{{$like}}/{{.ID}}" method="post" target="_self" data-id="{{.ID}}">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">