Commit Graph

7 Commits

Author SHA1 Message Date
Fosco Marotto d91df58eb9 Remove stray } from api.js 2021-02-15 19:59:02 -05:00
Free Speech Forever 92c9092abd Avoid redundant OAuth queries when not signed in
If you aren't signed in, you don't have an auth token.
When you don't have an auth token, React was sending the headers

"Authorization: Bearer null"

This caused 5 Doorkeeper token lookups using
WHERE "oauth_access_tokens"."token" = 'null'
on the Explore page (the root of the app when not signed in).
2021-02-15 23:26:00 +00:00
Fosco Marotto ad35c7fa72 Revert "Merge branch 'fix_null_bearer' into 'develop'"
This reverts commit 22c3fa995d, reversing
changes made to 3931ba4f81.
2021-02-09 23:57:16 -05:00
rubic0n 57a88c5904 Avoid redundant OAuth queries when not signed in
If you aren't signed in, you don't have an auth token.
When you don't have an auth token, React was sending the headers

"Authorization: Bearer null"

This caused 5 Doorkeeper token lookups using
WHERE "oauth_access_tokens"."token" = 'null'
on the Explore page (the root of the app when not signed in).
2021-02-06 22:41:35 -06:00
mgabdev bb4fcdf32d Progress 2020-04-07 21:06:59 -04:00
mgabdev cb55ef9f04 Progress on refactor
Update files paths, components
2020-01-29 16:53:33 -05:00
robcolbert bd0b5afc92 Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00