diff --git a/src/components/related-actions.jsx b/src/components/related-actions.jsx
index f1e0863f..1f78202a 100644
--- a/src/components/related-actions.jsx
+++ b/src/components/related-actions.jsx
@@ -6,6 +6,7 @@ import punycode from 'punycode/';
import { api } from '../utils/api';
import i18nDuration from '../utils/i18n-duration';
+import isSearchEnabled from '../utils/is-search-enabled';
import niceDateTime from '../utils/nice-date-time';
import showCompose from '../utils/show-compose';
import showToast from '../utils/show-toast';
@@ -173,6 +174,15 @@ function RelatedActions({
const [showAddRemoveLists, setShowAddRemoveLists] = useState(false);
const [showPrivateNoteModal, setShowPrivateNoteModal] = useState(false);
const [lists, setLists] = useState([]);
+ const [searchEnabled, setSearchEnabled] = useState(false);
+
+ useEffect(() => {
+ if (!currentAuthenticated) return;
+ (async () => {
+ const enabled = await isSearchEnabled(currentInstance);
+ setSearchEnabled(enabled);
+ })();
+ }, [currentInstance, currentAuthenticated]);
let { headerStatic, avatarStatic } = info;
if (!headerStatic || /missing\.png$/.test(headerStatic)) {
@@ -298,6 +308,21 @@ function RelatedActions({
+ {searchEnabled && (
+
+ )}