Permalink
Browse files

Merge pull request #2 from ivey/fix_label_bug

Fix label bug
  • Loading branch information...
2 parents 57bd83f + b0e2685 commit f089fa9da30722fadc881b30f87d6f3fa59ef45e @jot committed Apr 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/notifo.rb
View
@@ -28,7 +28,7 @@ def subscribe_user(username)
# uri - the uri that will be loaded when the notification is opened; if specified, must be urlencoded; if a web address, must start with http:// or https://
# label - label describing the "application" (used only if being sent from a User account; the Service label is automatically applied if being sent from a Service account)
def post(username, msg, title=nil, uri=nil, label=nil)
- options = { :body => {:to => username, :msg => msg, :label=>title, :title=>title, :uri=>uri}, :basic_auth => @auth }
+ options = { :body => {:to => username, :msg => msg, :label=>label, :title=>title, :uri=>uri}, :basic_auth => @auth }
self.class.post('/send_notification', options)
end

0 comments on commit f089fa9

Please sign in to comment.