add ref_src (#3532)
This commit is contained in:
parent
9fb20915e8
commit
4c95ec2ec4
3 changed files with 13 additions and 4 deletions
|
@ -58,10 +58,14 @@ function EmbedDialogInner({
|
|||
}, [copied])
|
||||
|
||||
const snippet = React.useMemo(() => {
|
||||
function toEmbedUrl(href: string) {
|
||||
return toShareUrl(href) + '?ref_src=embed'
|
||||
}
|
||||
|
||||
const lang = record.langs && record.langs.length > 0 ? record.langs[0] : ''
|
||||
const profileHref = toShareUrl(['/profile', postAuthor.did].join('/'))
|
||||
const profileHref = toEmbedUrl(['/profile', postAuthor.did].join('/'))
|
||||
const urip = new AtUri(postUri)
|
||||
const href = toShareUrl(
|
||||
const href = toEmbedUrl(
|
||||
['/profile', postAuthor.did, 'post', urip.rkey].join('/'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue