mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 09:21:25 +00:00
remove name from card
This commit is contained in:
parent
7302e5305d
commit
2ebf854dd5
@ -65,17 +65,15 @@ const PostCard = ({
|
||||
<div className="flex items-center gap-2.5">
|
||||
{metadataParsed ?
|
||||
<img
|
||||
className={`h-8 w-8 rounded-full`}
|
||||
key = {key}
|
||||
className={`h-5 w-5 rounded-full`}
|
||||
src={metadataParsed?.picture ?? icon}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
decoding="async"/>
|
||||
:
|
||||
<div className={`h-7 w-7 ${icon} rounded-full`} />
|
||||
<div className={`h-4 w-4 ${icon} rounded-full`} />
|
||||
}
|
||||
<div className="text-md font-semibold">
|
||||
{metadataParsed?.name ?? 'Anonymous'}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center ml-auto gap-2.5">
|
||||
<div className="inline-flex text-xs text-neutral-600 gap-0.5">
|
||||
@ -96,7 +94,7 @@ const PostCard = ({
|
||||
<span className="text-xs text-gray-500">Reply to: </span>
|
||||
{uniqBy(repliedTo, 'pubkey').map((event, index) => (
|
||||
<div key={index}>
|
||||
{event.kind == 0 ? (
|
||||
{event.kind === 0 ? (
|
||||
<img className={`h-5 w-5 rounded-full`} src={getMetadata(event)?.picture} />
|
||||
) : (
|
||||
<div className={`h-5 w-5 ${getIconFromHash(event.pubkey)} rounded-full`} />
|
||||
|
@ -24,7 +24,7 @@ export const subGlobalFeed = (onEvent: SubCallback) => {
|
||||
...(prefix && {ids: ['0'.repeat(prefix)]}),
|
||||
kinds: [1],
|
||||
since: Math.floor((Date.now() * 0.001) - (24 * 60 * 60)),
|
||||
limit: 350,
|
||||
limit: 500,
|
||||
},
|
||||
unsub: true
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user