Only warn about missing recipients for PM archetype

This commit is contained in:
Martin Brennan 2020-01-21 16:38:16 +10:00
parent 88e23d4cfa
commit 9db59deb11

View File

@ -777,7 +777,7 @@ class PostsController < ApplicationController
result[:target_group_names] = groups.join(",")
end
if recipients.blank? || result[:target_usernames].blank?
if (recipients.blank? || result[:target_usernames].blank?) && params[:archetype] == Archetype.private_message
Rails.logger.warn("Missing recipients for PM! result: #{result.inspect} | params: #{params.inspect}")
end