修改留言
This commit is contained in:
parent
f6b97eed48
commit
85351ee7e3
|
@ -13,7 +13,7 @@ class WordsController < ApplicationController
|
||||||
refer_user_id = params[:new_form][:reference_user_id].to_i
|
refer_user_id = params[:new_form][:reference_user_id].to_i
|
||||||
|
|
||||||
@user.add_jour(User.current, message, refer_user_id)
|
@user.add_jour(User.current, message, refer_user_id)
|
||||||
unless refer_user_id == 0
|
unless refer_user_id == 0 || refer_user_id == User.current.id
|
||||||
User.find(refer_user_id).add_jour(User.current, message, refer_user_id)
|
User.find(refer_user_id).add_jour(User.current, message, refer_user_id)
|
||||||
end
|
end
|
||||||
@user.count_new_jour
|
@user.count_new_jour
|
||||||
|
|
Loading…
Reference in New Issue