summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authorpiuvas <mail@piuvas.net>2025-05-28 19:55:40 -0300
committerpiuvas <mail@piuvas.net>2025-05-28 19:55:40 -0300
commiteb88920f41ec98b073a53dce25a494ed03969d29 (patch)
tree995dcff3dab12aad383b40b0eb309600d0e882b2 /packages/frontend/src/components
parentfix ellipsis. (diff)
downloadsharkey-eb88920f41ec98b073a53dce25a494ed03969d29.tar.gz
sharkey-eb88920f41ec98b073a53dce25a494ed03969d29.tar.bz2
sharkey-eb88920f41ec98b073a53dce25a494ed03969d29.zip
requested changes.
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkUrlPreview.vue9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkUrlPreview.vue b/packages/frontend/src/components/MkUrlPreview.vue
index 7029e324f4..69a1540600 100644
--- a/packages/frontend/src/components/MkUrlPreview.vue
+++ b/packages/frontend/src/components/MkUrlPreview.vue
@@ -259,8 +259,13 @@ function refresh(withFetch = false) {
activityPub.value = info?.activityPub ?? null;
linkAttribution.value = info?.linkAttribution ?? null;
if (linkAttribution.value) {
- misskeyApi('users/show', { userId: linkAttribution.value.userId })
- .then(u => attributionUser.value = u);
+ try {
+ const response = await misskeyApi('users/show', { userId: linkAttribution.value.userId });
+ attributionUser.value = response;
+ } catch {
+ // makes the loading ellipsis vanish.
+ linkAttribution.value = null;
+ }
}
theNote.value = null;