From 67a4e17055a097d0a8a83463e48ceb7cc4eb73a3 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 14 Oct 2025 01:42:29 +0200 Subject: [PATCH] feat: add ants link to empty writings state for other users - Update empty writings message for other users' profiles - Show 'No articles written. You can find other stuff from this user using ants.' - Link 'ants' to the ants.sh profile page for that user - Keep original message for own profile --- src/components/Me.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 7e12c774..d0683d88 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -23,6 +23,7 @@ import { getCachedMeData, setCachedMeData, updateCachedHighlights } from '../ser import { faBooks } from '../icons/customIcons' import { usePullToRefresh } from '../hooks/usePullToRefresh' import PullToRefreshIndicator from './PullToRefreshIndicator' +import { getProfileUrl } from '../config/nostrGateways' interface MeProps { relayPool: RelayPool @@ -311,7 +312,24 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr case 'writings': return writings.length === 0 ? (
-

No articles written yet. Publish your first article to see it here!

+

+ {isOwnProfile + ? 'No articles written yet. Publish your first article to see it here!' + : ( + <> + No articles written. You can find other stuff from this user using{' '} + + ants + + . + + )} +

) : (