mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Fix wrong index of QTs for links that are not QTs
This commit is contained in:
parent
ad774325df
commit
6f430ca0f5
1 changed files with 18 additions and 17 deletions
|
@ -942,12 +942,13 @@ function Status({
|
|||
});
|
||||
if (previewMode) return;
|
||||
// Unfurl Mastodon links
|
||||
dom
|
||||
.querySelectorAll(
|
||||
Array.from(
|
||||
dom.querySelectorAll(
|
||||
'a[href]:not(.u-url):not(.mention):not(.hashtag)',
|
||||
),
|
||||
)
|
||||
.filter((a) => isMastodonLinkMaybe(a.href))
|
||||
.forEach((a, i) => {
|
||||
if (isMastodonLinkMaybe(a.href)) {
|
||||
unfurlMastodonLink(currentInstance, a.href).then(
|
||||
(result) => {
|
||||
if (!result) return;
|
||||
|
@ -960,7 +961,6 @@ function Status({
|
|||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
}),
|
||||
|
@ -1946,6 +1946,7 @@ const QuoteStatuses = memo(({ id, instance, level = 0 }) => {
|
|||
return quotes.map((q) => {
|
||||
return (
|
||||
<Link
|
||||
key={q.instance + q.id}
|
||||
to={`${q.instance ? `/${q.instance}` : ''}/s/${q.id}`}
|
||||
class="status-card-link"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue