Skip to content

Commit

Permalink
hide casts with embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
horsefacts committed Feb 1, 2024
1 parent 54e82fc commit 32012ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/feed/Cast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ type CastProps = {
};

export function Cast({ cast }: CastProps) {
if (cast.embeds.casts.length > 0) {
return null;
}

return (
<div className="flex flex-row gap-2 border-b-gray-200 px-4 py-3 [&:not(:first-child)]:border-t">
<a href={`https://warpcast.com/${cast.user.username}`} target="_blank">
Expand Down

0 comments on commit 32012ae

Please sign in to comment.