diff --git a/src/pages/status.jsx b/src/pages/status.jsx
index be6aa0b8..e6bb5a30 100644
--- a/src/pages/status.jsx
+++ b/src/pages/status.jsx
@@ -653,62 +653,63 @@ function StatusPage() {
enableTranslate
/>
- {uiState !== 'loading' && !authenticated ? (
-
-
- You're not logged in. Interactions (reply, boost,
- etc) are not possible.
-
-
- Log in
-
-
- ) : (
- !sameInstance && (
+ {uiState !== 'loading' &&
+ (!authenticated ? (
- This post is from another instance (
- {instance} ). Interactions (reply, boost,
+ You're not logged in. Interactions (reply, boost,
etc) are not possible.
-
{
- setUIState('loading');
- (async () => {
- try {
- const results =
- await currentMasto.v2.search({
- q: heroStatus.url,
- type: 'statuses',
- resolve: true,
- limit: 1,
- });
- if (results.statuses.length) {
- const status = results.statuses[0];
- navigate(
- currentInstance
- ? `/${currentInstance}/s/${status.id}`
- : `/s/${status.id}`,
- );
- } else {
- throw new Error('No results');
- }
- } catch (e) {
- setUIState('default');
- alert('Error: ' + e);
- console.error(e);
- }
- })();
- }}
- >
- Switch to my instance to
- enable interactions
-
+
+ Log in
+
- )
- )}
+ ) : (
+ !sameInstance && (
+
+
+ This post is from another instance (
+ {instance} ). Interactions (reply, boost,
+ etc) are not possible.
+
+
{
+ setUIState('loading');
+ (async () => {
+ try {
+ const results =
+ await currentMasto.v2.search({
+ q: heroStatus.url,
+ type: 'statuses',
+ resolve: true,
+ limit: 1,
+ });
+ if (results.statuses.length) {
+ const status = results.statuses[0];
+ navigate(
+ currentInstance
+ ? `/${currentInstance}/s/${status.id}`
+ : `/s/${status.id}`,
+ );
+ } else {
+ throw new Error('No results');
+ }
+ } catch (e) {
+ setUIState('default');
+ alert('Error: ' + e);
+ console.error(e);
+ }
+ })();
+ }}
+ >
+ Switch to my instance
+ to enable interactions
+
+
+ )
+ ))}
>
) : (