Skip to content

Commit 963ed93

Browse files
Fixed incorrect error message for non-existent profiles in ActivityPub (#24554)
ref PROD-2349 - Restored specific "Profile not found" message for non-existent profiles - Fixed regression caused by recent rate-limit and blocked error handling - Prevented generic error box from overriding the profile-specific message
1 parent 3ec8563 commit 963ed93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/admin-x-activitypub/src/views/Profile/Profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const Profile: React.FC<ProfileProps> = ({}) => {
141141

142142
const {data: account, isLoading: isLoadingAccount, error: accountError} = useAccountForUser('index', (params.handle || 'me'));
143143

144-
if (accountError && isApiError(accountError)) {
144+
if (accountError && isApiError(accountError) && accountError.statusCode !== 404) {
145145
return <Error statusCode={accountError.statusCode} />;
146146
}
147147

0 commit comments

Comments
 (0)