Skip to content
Snippets Groups Projects
Commit 518b54d0 authored by MoshiKoi's avatar MoshiKoi
Browse files

Apparently there is actually a save

parent 3cc5d31f
Branches
Tags
1 merge request!24Release 22-09-2022
...@@ -99,6 +99,7 @@ class PostsController < ApplicationController ...@@ -99,6 +99,7 @@ class PostsController < ApplicationController
end end
if @post.save if @post.save
@post.update(last_activity: @post.created_at, last_activity_by: current_user)
if @post_type.has_parent? if @post_type.has_parent?
unless @post.user_id == @post.parent.user_id unless @post.user_id == @post.parent.user_id
@post.parent.user.create_notification("New response to your post #{@post.parent.title}", @post.parent.user.create_notification("New response to your post #{@post.parent.title}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment