lib/cosgrove/comment_job.rb in cosgrove-0.0.3rc1 vs lib/cosgrove/comment_job.rb in cosgrove-0.0.3.1
- old
+ new
@@ -12,11 +12,11 @@
author = find_author(chain: chain, author_name: author_name)
return if author.nil?
- post = find_comment(chain: chain, author: author_name, permlink: permlink)
+ post = find_comment(chain: chain, author_name: author_name, permlink: permlink)
if post.nil?
cannot_find_input(event)
return
end
@@ -48,10 +48,10 @@
elsif muted.include? author_name
puts "Won't vote because author muted."
'Unable to vote.'
# elsif template == :welcome && author.post_count != 1
# 'Sorry, this function is intended to welcome new authors.'
- elsif find_comment(chain: :steem, author: steem_account, parent_permlink: post.permlink).any?
+ elsif find_comment(chain: :steem, author_name: steem_account, parent_permlink: post.permlink).any?
title = post.title
title = post.permlink if title.empty?
"I already commented on #{title} by #{post.author}."
end