ishapi 0.1.8.199 → 0.1.8.200
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0fc21aadd8c289e4134c3bf021ddbae8d605cf2a2c0f26bdc3d8eacf962172a
|
4
|
+
data.tar.gz: 5cfb349f42b3b40a6daef2435830d1fef96c87a4353cabfca424197afbb9f0ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67fd9439e5b2374a22d77640be78191cdb23b97b4c7ca3b1163a4cd1feaef34ad74ec75d585db889d37fd53be082a1039b3355b4882c8779ad025768e2b0ffe6
|
7
|
+
data.tar.gz: e50989196218ba925eb3398d3305289c3eb687dc87d0f0e5f97e42fa62887f2c158e39809296dd4bff4c687a521138bd9cf47cb6c55adefc0213a8835e2c445a
|
@@ -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
|
12
|
+
json.username gallery.user_profile&.name
|
13
13
|
json.partial! 'ishapi/photos/index', :photos => gallery.photos
|
14
14
|
end
|
15
15
|
|