lib/ayadn/action.rb in ayadn-1.0.2 vs lib/ayadn/action.rb in ayadn-1.0.3

- old
+ new

@@ -757,12 +757,14 @@ post_id = get_real_post_id(post_id) puts Status.replying_to(post_id) replied_to = @api.get_details(post_id) post_404(post_id) if meta_404(replied_to) post_id = get_original_id(post_id, replied_to) - if post_id == replied_to['data']['repost_of']['id'] - replied_to = @api.get_details(post_id) - post_404(post_id) if meta_404(replied_to) + if replied_to['data']['repost_of'] + if post_id == replied_to['data']['repost_of']['id'] + replied_to = @api.get_details(post_id) + post_404(post_id) if meta_404(replied_to) + end end poster = Post.new puts Status.reply lines_array = poster.compose poster.check_post_length(lines_array)