From 1da3c588ca19d66df1871d6616bde32192eed4b5 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 28 Sep 2023 15:29:07 +0200 Subject: [PATCH] Fix link handling of mentions in user profiles when logged out (#27185) --- app/javascript/mastodon/actions/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js index 7aea346e6d..38a089b486 100644 --- a/app/javascript/mastodon/actions/search.js +++ b/app/javascript/mastodon/actions/search.js @@ -147,6 +147,10 @@ export const openURL = (value, history, onFailure) => (dispatch, getState) => { const signedIn = !!getState().getIn(['meta', 'me']); if (!signedIn) { + if (onFailure) { + onFailure(); + } + return; }