From 518b54d097288dcd4fbf0e92f285fe0ab6053979 Mon Sep 17 00:00:00 2001 From: MoshiKoi <54333972+MoshiKoi@users.noreply.github.com> Date: Wed, 21 Sep 2022 02:02:54 -0700 Subject: [PATCH] Apparently there is actually a save --- app/controllers/posts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index f9e0e26c7..d3295ea77 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -99,6 +99,7 @@ class PostsController < ApplicationController end if @post.save + @post.update(last_activity: @post.created_at, last_activity_by: current_user) if @post_type.has_parent? unless @post.user_id == @post.parent.user_id @post.parent.user.create_notification("New response to your post #{@post.parent.title}", -- GitLab