diff --git a/apps/blog/features/layouts/user-profile/profile-layout.tsx b/apps/blog/features/layouts/user-profile/profile-layout.tsx index c06377285713db877f4e507135c97e971037e6a3..40f578fb984d07598cd12d44df19d7e5f6c593d0 100644 --- a/apps/blog/features/layouts/user-profile/profile-layout.tsx +++ b/apps/blog/features/layouts/user-profile/profile-layout.tsx @@ -8,7 +8,7 @@ import { useQuery } from '@tanstack/react-query'; import env from '@beam-australia/react-env'; import { useTranslation } from '@/blog/i18n/client'; -import { Avatar, AvatarFallback, AvatarImage, proxifyImageSrc, getUserAvatarUrl, escapeCssUrl, isSafeImageUrl } from '@ui/components'; +import { Avatar, AvatarFallback, AvatarImage, proxifyImageSrc, getUserAvatarUrl, escapeCssUrl, isSafeImageUrl, isSafeExternalUrl } from '@ui/components'; import { Separator } from '@hive/ui/components/separator'; import TimeAgo from '@ui/components/time-ago'; import { Icons } from '@hive/ui/components/icons'; @@ -172,7 +172,7 @@ const ProfileLayout = ({ children }: { children: ReactNode }) => { /> ) : null} - {twitterData ? ( + {twitterData && isSafeExternalUrl(twitterData.twitter_profile) ? (