mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
Only warn about missing recipients for PM archetype
This commit is contained in:
parent
88e23d4cfa
commit
9db59deb11
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user