aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-04 18:56:47 +0000
committerr <r@freesoftwareextremist.com>2020-01-04 18:56:47 +0000
commit50e58c4e010959955286e4250ebacb3b93f8c525 (patch)
treecd09f7a81418e3a68ea78b5af02f825c9244eb19 /templates
parente9bd72306e8ad1c7d17a5f1bd39bb6cb86d3ab19 (diff)
downloadbloat-50e58c4e010959955286e4250ebacb3b93f8c525.tar.gz
bloat-50e58c4e010959955286e4250ebacb3b93f8c525.zip
Use post method for like and retweet
Diffstat (limited to 'templates')
-rw-r--r--templates/status.tmpl24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index 7facba2..1661f58 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -101,13 +101,13 @@
</a>
{{else}}
{{if .Reblogged}}
- <a class="status-retweet" href="/unretweet/{{.ID}}" title="undo retweet">
- <img class="icon" src="/static/icons/retweeted.png" alt="undo retweet" />
- </a>
+ <form class="status-retweet" action="/unretweet/{{.ID}}" method="post">
+ <input type="image" src="/static/icons/retweeted.png" alt="undo retweet" class="icon" title="undo retweet">
+ </form>
{{else}}
- <a class="status-retweet" href="/retweet/{{.ID}}" title="retweet">
- <img class="icon" src="/static/icons/retweet.png" alt="retweet" />
- </a>
+ <form class="status-retweet" action="/retweet/{{.ID}}" method="post">
+ <input type="image" src="/static/icons/retweet.png" alt="retweet" class="icon" title="retweet">
+ </form>
{{end}}
{{end}}
<a class="status-action-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
@@ -116,13 +116,13 @@
</div>
<div class="status-action">
{{if .Favourited}}
- <a class="status-like" href="/unlike/{{.ID}}" title="unlike">
- <img class="icon" src="/static/icons/liked.png" alt="unlike" />
- </a>
+ <form class="status-like" action="/unlike/{{.ID}}" method="post">
+ <input type="image" src="/static/icons/liked.png" alt="unlike" class="icon" title="unlike">
+ </form>
{{else}}
- <a class="status-like" href="/like/{{.ID}}" title="like">
- <img class="icon" src="/static/icons/star-o.png" alt="like" />
- </a>
+ <form class="status-like" action="/like/{{.ID}}" method="post">
+ <input type="image" src="/static/icons/star-o.png" alt="like" class="icon" title="like">
+ </form>
{{end}}
<a class="status-action-count" href="/likedby/{{.ID}}" title="click to see the the list">
<span> {{DisplayInteractionCount .FavouritesCount}} </span>