Skip to content

Commit

Permalink
label param to post() was sending title instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ivey committed Sep 9, 2010
1 parent 57bd83f commit b0e2685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/notifo.rb
Expand Up @@ -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

Expand Down

0 comments on commit b0e2685

Please sign in to comment.