# HG changeset patch # User Brian Neal # Date 1307931553 0 # Node ID 72ef6e809f799fcd683a1f7600d3a2a62e4fd1fa # Parent e9f203c5f5bb28912e7ae68845c8ab8458858c9a For #218, put back the logic that updates the topic last visit after you make a post. diff -r e9f203c5f5bb -r 72ef6e809f79 gpp/forums/views/main.py --- a/gpp/forums/views/main.py Wed Jun 08 00:24:41 2011 +0000 +++ b/gpp/forums/views/main.py Mon Jun 13 02:19:13 2011 +0000 @@ -348,6 +348,7 @@ post.user.user_profile = request.user.get_profile() post.attach_list = post.attachments.all() _bump_post_count(request.user) + _update_last_visit(request.user, form.topic, datetime.datetime.now()) return render_to_response('forums/display_post.html', { 'post': post, @@ -595,6 +596,7 @@ form.attach_proc.save_attachments(post) _bump_post_count(request.user) + _update_last_visit(request.user, topic, datetime.datetime.now()) return HttpResponseRedirect(post.get_absolute_url()) else: quote_id = request.GET.get('quote')