updated newsfeed note ui
This commit is contained in:
6
src/utils/shortenKey.tsx
Normal file
6
src/utils/shortenKey.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { nip19 } from 'nostr-tools';
|
||||
|
||||
export const shortenKey = (pubkey: string) => {
|
||||
const npub = nip19.npubEncode(pubkey);
|
||||
return npub.substring(0, 16).concat('...');
|
||||
};
|
||||
Reference in New Issue
Block a user