ayadn 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af910b3cdf032bba6a40ec67f9ef72b26f85bcce
4
- data.tar.gz: 30406883a202fe07dea4b2f4c64ab1db07579118
3
+ metadata.gz: dbef520e744519eb89d3572d2ed07278e3d7cff7
4
+ data.tar.gz: d334761a0eb199dfed6f62ccb9fa67f16dcabee3
5
5
  SHA512:
6
- metadata.gz: c96df00a81872453044d605c2c2391f21a2e96847660bcb299cbade0cc7e5f7e76fe910dfcdb951c23c0635681d589b4e88585fd718f789b5178b74265ae56a4
7
- data.tar.gz: 02c601968b84ef5cd20b37835efefbb0551fa3cf35641f7837151f430e3616823703beaf9eee2afc38a807bed877f237bd3130714e0caf9449f7dad1da8a364b
6
+ metadata.gz: d2643e94560b360c577d4f2d08031fd31f561023276a511e12ded496a70cc61a0b91e7306537b53b1360cf747abd342266cd23b9b576b319cfb420a765f4bbad
7
+ data.tar.gz: 4ae9761ff188b03063756b75ff0138bbc9b5c51384ec5f6bc634a449d3f317528812a5bffbaaf6faa0e72c43a7e5f2d9803b42a0551f0d27ed472d81232ad142
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.3
2
+
3
+ - Fixed the bug introduced by the last bugfix (yes, I know... sigh...)
4
+
1
5
  # 1.0.2
2
6
 
3
7
  - Fixed a critical bug in Reply (when the original post was a repost)
data/lib/ayadn/action.rb CHANGED
@@ -759,9 +759,11 @@ module Ayadn
759
759
  replied_to = @api.get_details(post_id)
760
760
  post_404(post_id) if meta_404(replied_to)
761
761
  post_id = get_original_id(post_id, replied_to)
762
- if post_id == replied_to['data']['repost_of']['id']
763
- replied_to = @api.get_details(post_id)
764
- post_404(post_id) if meta_404(replied_to)
762
+ if replied_to['data']['repost_of']
763
+ if post_id == replied_to['data']['repost_of']['id']
764
+ replied_to = @api.get_details(post_id)
765
+ post_404(post_id) if meta_404(replied_to)
766
+ end
765
767
  end
766
768
  poster = Post.new
767
769
  puts Status.reply
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere