Improved quotes

This commit is contained in:
2013-01-20 15:24:14 -05:00
parent 44402b2e7f
commit e92fb33275
5 changed files with 36 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ class PostsController < ApplicationController
if params[:quote]
quote_post = Post.find(params[:quote])
if quote_post
@post.body = "[quote]#{quote_post.body}[/quote]"
@post.body = "[quote=#{quote_post.user.username}]#{quote_post.body}[/quote]"
end
end
end
@@ -42,4 +42,4 @@ class PostsController < ApplicationController
end
end
end
end