ishapi 0.1.8.199 → 0.1.8.201

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: 293c8385f0908f5e82344214bed003094f8662e22a96e9fd63c2002a456c1839
4
- data.tar.gz: b77b29f13b648c11ab5239367a4b5ab32fe9e14616003aab33798763d49f8624
3
+ metadata.gz: 4ae973b7eb017636cf7c59d67f2046d502696efda657b252da622ded0e63dd5b
4
+ data.tar.gz: 1478df0a622ba3303c932670d86a879a6ff33ee5e0ce2f60314eabce0afe1fe9
5
5
  SHA512:
6
- metadata.gz: 45bfa11e1ff0fffaa172f7caf8ed2ba502c36a5b03692b192c60a0ba4a55db2018b2c8abff68dafc9f0b414c5a3b84bd2c4ad44320979272bec7b84816e9a719
7
- data.tar.gz: af860664582fdb6d676a7427eb3b2ed867d01deb78a29638d353ec002ccca946db7fd82263d5ffe3d654cedc1cea8efbfdf6a7c6ec01fbb549effa5d524db85f
6
+ metadata.gz: a259d45e18d6f871d895cd7c1ed9b599bee807bc2cc6f8a7292daa6ecec38b4ae7aea1414af4d9270a07b6eb392f3babb19d577ea70a6fd8a11a13005baad092
7
+ data.tar.gz: 397b37352e1c81cce619b06ac6ff26aa19cba23ad44acd5b88c0de74010dbff13288fed32cbb714c541de2f05cb0952175eeac3267983f92797a4ee89b5e485f
@@ -20,6 +20,7 @@ class Ishapi::ApplicationController < ActionController::Base
20
20
  @graph = Koala::Facebook::API.new( accessToken )
21
21
  @me = @graph.get_object( 'me', :fields => 'email' )
22
22
  @current_user = User.where( :email => @me['email'] ).first
23
+ @current_profile = Ish::UserProfile.find_by( email: @current_user.email )
23
24
 
24
25
  # send the jwt to client
25
26
  @jwt_token = encode(user_id: @current_user.id.to_s)
@@ -9,7 +9,7 @@ json.array! @galleries do |gallery|
9
9
  json.slug gallery.slug
10
10
  json.slug gallery.slug
11
11
  json.subhead gallery.subhead
12
- json.username gallery.user_profile.name
12
+ json.username gallery.user_profile&.name
13
13
  json.partial! 'ishapi/photos/index', :photos => gallery.photos
14
14
  end
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.199
4
+ version: 0.1.8.201
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-24 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails