~jadedctrl/jam-xwx-moe
Showing details for patch 5ff87badf9795e75bc040dd95373b18725ca7fde.
diff -rN -u old-jam-xwx-moe/bloat/instance/ktp/fluoride.js new-jam-xwx-moe/bloat/instance/ktp/fluoride.js --- old-jam-xwx-moe/bloat/instance/ktp/fluoride.js 2024-11-23 17:27:35.528800610 +0000 +++ new-jam-xwx-moe/bloat/instance/ktp/fluoride.js 2024-11-23 17:27:35.528800610 +0000 @@ -1,10 +1,10 @@ // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0 var reverseActions = { - "like": "unlike", - "unlike": "like", - "retweet": "unretweet", - "unretweet": "retweet" + "like": "senŝati", + "unlike": "ŝati", + "retweet": "malripeti", + "unretweet": "ripeti" }; var csrfToken = ""; diff -rN -u "old-jam-xwx-moe/bloat/instance/\305\235ablonoj/status.tmpl" "new-jam-xwx-moe/bloat/instance/\305\235ablonoj/status.tmpl" --- "old-jam-xwx-moe/bloat/instance/\305\235ablonoj/status.tmpl" 2024-11-23 17:27:35.528800610 +0000 +++ "new-jam-xwx-moe/bloat/instance/\305\235ablonoj/status.tmpl" 2024-11-23 17:27:35.528800610 +0000 @@ -200,7 +200,8 @@ </div> <div class="status-action"> {{$rt := "ripeti"}} {{if .Reblogged}} {{$rt = "malripeti"}} {{end}} - <form class="status-retweet" data-action="{{$rt}}" action="/{{$rt}}/{{.ID}}" method="post" target="_self"> + {{$rtaction := "retweet"}} {{if .Reblogged}} {{$rtaction = "unretweet"}} {{end}} + <form class="status-retweet" data-action="{{$rtaction}}" action="/{{$rtaction}}/{{.ID}}" method="post" target="_self"> <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}}"> @@ -215,7 +216,8 @@ </div> <div class="status-action"> {{$like := "ŝati"}} {{if .Favourited}} {{$like = "senŝati"}} {{end}} - <form class="status-like" data-action="{{$like}}" action="/{{$like}}/{{.ID}}" method="post" target="_self"> + {{$likeaction := "like"}} {{if .Favourited}} {{$likeaction = "unlike"}} {{end}} + <form class="status-like" data-action="{{$likeaction}}" action="/{{$likeaction}}/{{.ID}}" method="post" target="_self"> <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}}">