pushover messages can only be 512 characters long
This commit is contained in:
parent
09508f3ad6
commit
600b1c2b93
|
@ -9,6 +9,8 @@ class Pushover
|
|||
return
|
||||
end
|
||||
|
||||
params[:message] = params[:message].to_s.match(/.{0,512}/m).to_s
|
||||
|
||||
begin
|
||||
s = Sponge.new
|
||||
s.fetch("https://api.pushover.net/1/messages.json", :post, {
|
||||
|
|
Loading…
Reference in a new issue