Skip to content

Commit

Permalink
disable private paste push to twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
mifan committed Mar 27, 2010
1 parent f571512 commit b79c32c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/paste.rb
Expand Up @@ -37,7 +37,8 @@ class Paste < ActiveRecord::Base

def twitter_update
if post_to_twitter == '1'
self.user.twitter_update("twpaste: #{self.title} " + ShortenUrl.bitly_url("http://twpaste.com/pastes/#{self.id}"))
self.user.twitter_update("twpaste: #{self.title} " + ShortenUrl.bitly_url("http://twpaste.com/pastes/#{self.id}")) unless self.private?
end
end
end

Expand Down

0 comments on commit b79c32c

Please sign in to comment.