ishapi 0.1.8.147 → 0.1.8.148

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
  SHA256:
3
- metadata.gz: 37a74ed060c1c14807a40188d3cb99e1a7b67910a88dfc8ab4a97ad01f4eb11c
4
- data.tar.gz: 5c3529a4f9b79117cb4d5c45e92a0d24f4194717f64fe8c2c2f71e3e13543ebb
3
+ metadata.gz: a6b93828545b3f0c63df48d764a930c0ce189a7b6c56d80ad8d71d22c12ff6af
4
+ data.tar.gz: 16ada34a0d549ced6d4bd3cb7103ddd074dac990bcc382f37ab48fa9753d4502
5
5
  SHA512:
6
- metadata.gz: 19ecdf1027c55c91fdc1526fcc7f0fb1d80e47c60d802b01733ab6ba9cd7de0a9eb8f4a31b5dc857758a0f7abf531cebc190c6c8556ae31d20c91e9ad65b5c17
7
- data.tar.gz: 040f38f5013b4ee85b9385b746a4ce01464613e1c1c2ea315099fc69b7b2fb4d6380dc343e5cf0ad14dc07ca854a000a792182280c3bcaea30fc1c5cf4091bbb
6
+ metadata.gz: 8d950587452e9e0521ea2d5631aa26d7e46929ffe3ba24e31cf1b47c15f4811b089b3e5c67a0c7040ba507f5cc6e47dec914de37b3c90241601f8c5f301857c1
7
+ data.tar.gz: 0a1776f2adfaad26e1122efe3a38f19d5685ed8daa454512206f67dd9835fefe8b3ddfea921ad75f221647259a086285daabb08b863819b1d0cc93932aca3f66
@@ -23,7 +23,7 @@ json.newsitems do
23
23
  if item.gallery.is_premium
24
24
  json.premium_tier item.gallery.premium_tier
25
25
  json.is_premium item.gallery.premium_tier > 0
26
- json.is_purchased current_user.profile.has_premium_purchase( item.gallery )
26
+ json.is_purchased current_user&.profile&.has_premium_purchase( item.gallery )
27
27
  json.partial! 'ishapi/photos/index', :photos => [ item.gallery.photos[0] ]
28
28
  else
29
29
  json.partial! 'ishapi/photos/index', :photos => item.gallery.photos
@@ -48,7 +48,7 @@ json.newsitems do
48
48
  if item.report.is_premium
49
49
  json.premium_tier item.report.premium_tier
50
50
  json.is_premium item.report.premium_tier > 0
51
- json.is_purchased current_user.profile.has_premium_purchase( item.report )
51
+ json.is_purchased current_user&.profile&.has_premium_purchase( item.report )
52
52
  end
53
53
  end
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.147
4
+ version: 0.1.8.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox