You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just playing with it and discovered that /api/profiles/:username always returns "following": false whether a token is provided or not in the standard Authorization.
Meanwhile, I'll keep looking for the root cause.
The text was updated successfully, but these errors were encountered:
SELECT u.*, EXISTS (
SELECT"fu"."user_id", "fu"."followed_user_id"FROM"follow_users"AS"fu"WHERE (fu.followed_user_id=u.id) AND (fu.user_id=31)
) AS following FROM"users"AS"u"WHERE (username ='joe')
And actually this should be:
SELECT u.*, EXISTS (
SELECT"fu"."user_id", "fu"."followed_user_id"FROM"follow_users"AS"fu", "users"AS"u"WHERE (fu.followed_user_id=u.id) AND (fu.user_id=31)
) AS following FROM"users"AS"u"WHERE (username ='joe')
Hi!
First of all, that's a nice project structure! 👍
Just playing with it and discovered that
/api/profiles/:username
always returns"following": false
whether a token is provided or not in the standardAuthorization
.Meanwhile, I'll keep looking for the root cause.
The text was updated successfully, but these errors were encountered: