mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:43:19 +08:00
FIX: Do not make notification API call if push_url is blank
Followup to 77643931bc
This commit is contained in:
parent
1c4baadc49
commit
e4424d7c2e
|
@ -20,7 +20,7 @@ module Jobs
|
|||
notification.merge(client_id: client_id)
|
||||
end
|
||||
|
||||
next unless push_url
|
||||
next unless push_url.present?
|
||||
|
||||
result = Excon.post(push_url,
|
||||
body: payload.merge(notifications: notifications).to_json,
|
||||
|
|
Loading…
Reference in New Issue
Block a user