FEATURE: Pleroma reactions implemented partially

This commit is contained in:
localhost_frssoft 2022-10-17 20:01:11 +03:00
parent 0cd239b8aa
commit f452fab462
5 changed files with 75 additions and 6 deletions

View file

@ -97,6 +97,18 @@
{{StatusContentFilter .Content .Emojis .Mentions | Raw}}
</div>
{{end}}
{{$st_id := .ID}}
{{if .Pleroma.Reactions}}
<div class="pleroma-reactions">
{{range .Pleroma.Reactions}}
<form action="/react-with/{{$st_id}}?emoji={{.Name}}" method="post" target="_self" title="Who reacted:&#10;{{range .Accounts}}{{.Acct}}&#10;{{end}}">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
<input type="submit" value="{{.Name}}" class="pleroma-emoji">
</form>
{{end}}
</div>
{{end}}
{{if .MediaAttachments}}
<div class="status-media-container">
{{range .MediaAttachments}}