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:
parent
7f331eeb48
commit
a4dbe81aa1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user