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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ae973b7eb017636cf7c59d67f2046d502696efda657b252da622ded0e63dd5b
|
4
|
+
data.tar.gz: 1478df0a622ba3303c932670d86a879a6ff33ee5e0ce2f60314eabce0afe1fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|