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 +4 -4
- data/app/views/ishapi/newsitems/_index.jbuilder +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6b93828545b3f0c63df48d764a930c0ce189a7b6c56d80ad8d71d22c12ff6af
|
|
4
|
+
data.tar.gz: 16ada34a0d549ced6d4bd3cb7103ddd074dac990bcc382f37ab48fa9753d4502
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
51
|
+
json.is_purchased current_user&.profile&.has_premium_purchase( item.report )
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|