Improve emails (#305)

This commit is contained in:
Riccardo Graziosi
2024-03-09 17:26:24 +01:00
committed by GitHub
parent 5ad01b0138
commit 98daafc244
32 changed files with 169 additions and 101 deletions

View File

@@ -89,7 +89,9 @@ class PostsController < ApplicationController
post_status_id: @post.post_status_id
)
UserMailer.notify_followers_of_post_status_change(post: @post).deliver_later
@post.followers.each do |follower|
UserMailer.notify_follower_of_post_status_change(post: @post, follower: follower).deliver_later
end
end
render json: @post