mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -05:00
After submitting a reply, jump right to the message you are replying to.
This commit is contained in:
parent
a4dbe81aa1
commit
c4c3117caa
@ -659,14 +659,15 @@ def reply(request, id):
|
|||||||
'own_acct': request.session['user'],
|
'own_acct': request.session['user'],
|
||||||
'notifications': notifications,
|
'notifications': notifications,
|
||||||
'preferences': account.preferences})
|
'preferences': account.preferences})
|
||||||
return redirect(thread, id)
|
return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
|
||||||
else:
|
else:
|
||||||
return render(request, 'main/reply.html',
|
return render(request, 'main/reply.html',
|
||||||
{'context': context, 'toot': toot, 'form': form, 'reply': True,
|
{'context': context, 'toot': toot, 'form': form, 'reply': True,
|
||||||
'own_acct': request.session['user'],
|
'own_acct': request.session['user'],
|
||||||
'preferences': account.preferences})
|
'preferences': account.preferences})
|
||||||
else:
|
else:
|
||||||
return redirect(reply, id)
|
return HttpResponseRedirect(reverse('reply', args=[id]) + "#toot-"+str(id))
|
||||||
|
|
||||||
|
|
||||||
@never_cache
|
@never_cache
|
||||||
@br_login_required
|
@br_login_required
|
||||||
|
Loading…
Reference in New Issue
Block a user