mirror of
https://github.com/discourse/discourse.git
synced 2025-03-12 08:55:29 +08:00
FIX: Do not make notification API call if push_url is blank
Followup to 77643931bcf89bef317c5b6236a81ac2eafae323
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…
x
Reference in New Issue
Block a user