HomePhabricator
Diffusion Comm 392dacb6c3e0

[lib] use fc channel avatar url in useResolvedThreadAvatar

Description

[lib] use fc channel avatar url in useResolvedThreadAvatar

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

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13744

Details

Provenance
varunAuthored on Tue, Oct 15, 3:44 PM
Reviewer
ashoat
Differential Revision
D13744: [lib] use fc channel avatar url in useResolvedThreadAvatar
Parents
rCOMM9f0b31c29f48: [lib] add hook to fetch channel avatar url
Branches
Unknown
Tags
Unknown