mirror of
				https://gitlab.com/brutaldon/brutaldon
				synced 2025-06-05 21:49:32 +02:00 
			
		
		
		
	After submitting a reply, jump right to the message you are replying to.
This commit is contained in:
		@@ -659,14 +659,15 @@ def reply(request, id):
 | 
			
		||||
                               'own_acct': request.session['user'],
 | 
			
		||||
                               'notifications': notifications,
 | 
			
		||||
                               'preferences': account.preferences})
 | 
			
		||||
            return redirect(thread, id)
 | 
			
		||||
            return HttpResponseRedirect(reverse('thread', args=[id]) + "#toot-"+str(id))
 | 
			
		||||
        else:
 | 
			
		||||
            return render(request, 'main/reply.html',
 | 
			
		||||
                          {'context': context, 'toot': toot, 'form': form, 'reply': True,
 | 
			
		||||
                           'own_acct': request.session['user'],
 | 
			
		||||
                           'preferences': account.preferences})
 | 
			
		||||
    else:
 | 
			
		||||
        return redirect(reply, id)
 | 
			
		||||
        return HttpResponseRedirect(reverse('reply', args=[id]) + "#toot-"+str(id))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@never_cache
 | 
			
		||||
@br_login_required
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user