Excitedly send a user a message that their comment was posted.

This commit is contained in:
Christopher Allan Webber 2011-06-29 20:51:17 -05:00
parent 95e6da024d
commit 52359e9103

View File

@ -15,6 +15,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from webob import exc
from mediagoblin import messages
from mediagoblin.db.util import DESCENDING, ObjectId
from mediagoblin.util import (
Pagination, render_to_response, redirect, cleaned_markdown_conversion)
@ -115,6 +117,10 @@ def media_post_comment(request):
comment.save()
messages.add_message(
request, messages.SUCCESS,
'Comment posted!')
return redirect(request, 'mediagoblin.user_pages.media_home',
media = request.matchdict['media'],
user = request.matchdict['user'])