mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 15:21:48 +03:00
Fixes for QTs
This commit is contained in:
parent
9257155e18
commit
89d62d6d0f
2 changed files with 7 additions and 4 deletions
|
@ -78,7 +78,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-card-link {
|
.status-card-link {
|
||||||
display: inline-block;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -951,7 +951,6 @@ function Status({
|
||||||
unfurlMastodonLink(currentInstance, a.href).then(
|
unfurlMastodonLink(currentInstance, a.href).then(
|
||||||
(result) => {
|
(result) => {
|
||||||
if (!result) return;
|
if (!result) return;
|
||||||
console.log('TAG', result);
|
|
||||||
a.removeAttribute('target');
|
a.removeAttribute('target');
|
||||||
if (!Array.isArray(states.statusQuotes[sKey])) {
|
if (!Array.isArray(states.statusQuotes[sKey])) {
|
||||||
states.statusQuotes[sKey] = [];
|
states.statusQuotes[sKey] = [];
|
||||||
|
@ -1069,7 +1068,8 @@ function Status({
|
||||||
!sensitive &&
|
!sensitive &&
|
||||||
!spoilerText &&
|
!spoilerText &&
|
||||||
!poll &&
|
!poll &&
|
||||||
!mediaAttachments.length && (
|
!mediaAttachments.length &&
|
||||||
|
!snapStates.statusQuotes[sKey] && (
|
||||||
<Card card={card} instance={currentInstance} />
|
<Card card={card} instance={currentInstance} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1765,7 +1765,11 @@ function _unfurlMastodonLink(instance, url) {
|
||||||
// Silently fail
|
// Silently fail
|
||||||
});
|
});
|
||||||
|
|
||||||
return Promise.any([remoteInstanceFetch, mastoSearchFetch]);
|
if (remoteInstanceFetch) {
|
||||||
|
return Promise.any([remoteInstanceFetch, mastoSearchFetch]);
|
||||||
|
} else {
|
||||||
|
return mastoSearchFetch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function nicePostURL(url) {
|
function nicePostURL(url) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue