1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-11-02 16:37:19 -04:00

Add id targets to redirects from boost/fav without JS. Resolves #48

This commit is contained in:
McBrayer 2019-01-29 13:06:04 -05:00
parent 7f331eeb48
commit a4dbe81aa1

View File

@ -686,7 +686,7 @@ def fav(request, id):
'own_acct': request.session['user'],
"preferences": account.preferences})
else:
return redirect(thread, id)
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
else:
return render(request, 'main/fav.html',
{"toot": toot,
@ -712,7 +712,7 @@ def boost(request, id):
'own_acct': request.session['user'],
"preferences": account.preferences})
else:
return redirect(thread, id)
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
else:
return render(request, 'main/boost.html',
{"toot": toot,