mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Improve emails (#305)
This commit is contained in:
committed by
GitHub
parent
5ad01b0138
commit
98daafc244
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user