feat: use jumble.social share links for notes (#737)
Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
parent
e490407dd5
commit
686b1f9998
2 changed files with 5 additions and 3 deletions
|
|
@ -8,6 +8,9 @@ export const toNote = (eventOrId: Event | string) => {
|
|||
const nevent = getNoteBech32Id(eventOrId)
|
||||
return `/notes/${nevent}`
|
||||
}
|
||||
export const toJumbleNote = (eventOrId: Event | string) => {
|
||||
return `https://jumble.social${toNote(eventOrId)}`
|
||||
}
|
||||
export const toNoteList = ({
|
||||
hashtag,
|
||||
search,
|
||||
|
|
@ -86,7 +89,6 @@ export const toFollowPack = (eventOrId: Event | string) => {
|
|||
export const toChachiChat = (relay: string, d: string) => {
|
||||
return `https://chachi.chat/${relay.replace(/^wss?:\/\//, '').replace(/\/$/, '')}/${d}`
|
||||
}
|
||||
export const toNjump = (id: string) => `https://njump.me/${id}`
|
||||
export const toUserAggregationDetail = (feedId: string, pubkey: string) => {
|
||||
const npub = nip19.npubEncode(pubkey)
|
||||
return `/user-aggregation/${feedId}/${npub}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue