Page MenuHomePhabricator

[lib] modify FC cache to store username and pfp url
ClosedPublic

Authored by varun on Aug 15 2024, 10:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 15, 6:26 AM
Unknown Object (File)
Fri, Sep 6, 10:42 AM
Unknown Object (File)
Fri, Sep 6, 9:54 AM
Unknown Object (File)
Wed, Sep 4, 12:47 PM
Unknown Object (File)
Tue, Sep 3, 11:40 PM
Unknown Object (File)
Mon, Sep 2, 5:57 PM
Unknown Object (File)
Fri, Aug 30, 11:00 PM
Unknown Object (File)
Fri, Aug 30, 8:47 AM
Subscribers

Details

Summary

Depends on D13097

Test Plan

tested later in stack by successfully setting avatar from farcaster

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun held this revision as a draft.
varun published this revision for review.Aug 19 2024, 7:18 AM
varun added inline comments.
lib/utils/fc-cache.js
144 ↗(On Diff #43419)

wasn't sure about this line

varun added reviewers: ashoat, tomek.
ashoat added inline comments.
lib/utils/fc-cache.js
144 ↗(On Diff #43419)

JavaScript is weird... this condition will let null through because typeof null === 'object'

To be fully consistent with the prior implementation, you should add || farcasterUser === null here (although not clear how important that is)

This revision is now accepted and ready to land.Tue, Aug 20, 12:33 PM
lib/utils/fc-cache.js
144 ↗(On Diff #43419)

Actually I'd just add || !farcasterUser rather than || farcasterUser === null

lib/utils/fc-cache.js
144 ↗(On Diff #43419)

my change addressing this feedback wasn't picked up for some reason so i created D13139