Page MenuHomePhabricator

[lib] use fc channel avatar url in useResolvedThreadAvatar
Needs ReviewPublic

Authored by varun on Thu, Oct 17, 5:50 AM.
Tags
None
Referenced Files
F3015682: D13744.id45252.diff
Sat, Oct 19, 7:29 AM
F3015628: D13744.diff
Sat, Oct 19, 7:28 AM
F3013267: D13744.diff
Sat, Oct 19, 5:24 AM
F3002880: D13744.id45252.diff
Fri, Oct 18, 9:01 AM
F3002810: D13744.id.diff
Fri, Oct 18, 9:00 AM
F3002790: D13744.diff
Fri, Oct 18, 8:59 AM
Subscribers

Details

Reviewers
ashoat
Summary

Depends on D13743

useResolvedThreadAvatar can take an object containing a username and FID or an object containing a farcaster channel ID.

the former is when we want to display a user avatar as the thread avatar

we want these types to be mutually exclusive to avoid confusion when the avatar type is 'farcaster' and the function caller provides a farcaster channel ID and a user FID

Test Plan

tested in next diffs by successfully rendering farcaster channel images as thread avatars

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun held this revision as a draft.
lib/shared/avatar-utils.js
347–354

this is an unrelated change but felt it was small enough to include here

varun published this revision for review.Thu, Oct 17, 8:57 PM
varun added inline comments.
lib/shared/avatar-utils.js
369

we want these types to be mutually exclusive to avoid confusion when the avatar type is 'farcaster' and the function caller provides a farcaster channel ID and a user FID