Skip to content

Commit

Permalink
post_to_twitter: require at least an upvote
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs committed Jun 11, 2017
1 parent 265cb63 commit e405219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/post_to_twitter
Expand Up @@ -11,7 +11,7 @@ Rails.application.require_environment!
# the web would see it, not just the first group of stories with no twitter ids
# which would just keep walking through pages
StoriesPaginator.new(StoryRepository.new.hottest).get.first.
reject{|s| s.twitter_id.present? || s.tags.map(&:tag).include?("meta") }.
reject{|s| s.twitter_id.present? || s.score < 2 || s.tags.map(&:tag).include?("meta") }.
each_with_index do |s,x|
if x > 0
sleep 2
Expand Down

0 comments on commit e405219

Please sign in to comment.