Skip to content

Commit

Permalink
redo changes that werent getting through: cheepnis and direct_message…
Browse files Browse the repository at this point in the history
… api
  • Loading branch information
mtravers committed Nov 7, 2010
1 parent 3372317 commit fd7369d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/models/user.rb
Expand Up @@ -38,7 +38,8 @@ def perform

def twitter_direct_message(message)
tparams = { :user => tname , :text => message}
url = "http://twitter.com/direct_messages/new.json?#{tparams.to_query}"
url = "http://api.twitter.com/1/direct_messages/new.json?#{tparams.to_query}"
puts url
# should eventually be changed to _authenticated (mm, no, because that requires OAuth which the server isnt equipped to get)
# OK, this works when done by hand, has problems from server, presumably because friendship is not set up?
ApplicationController.do_twitter_request(url, :post, true)
Expand Down
2 changes: 1 addition & 1 deletion lib/cheepnis.rb
Expand Up @@ -45,7 +45,7 @@ def self.stop
# this needs some experimentation
def self.maybe_stop
count = Delayed::Job.count
if count == 1
if count <= 1
stop
else
# if there are actual jobs, fail so we will run again
Expand Down

0 comments on commit fd7369d

Please sign in to comment.