Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix a case where the 'aborted' error message was getting through

+8 -4
+1 -1
src/lib/errors.ts
··· 1 1 export function isNetworkError(e: unknown) { 2 2 const str = String(e) 3 - return str.includes('Aborted') || str.includes('Network request failed') 3 + return str.includes('Abort') || str.includes('Network request failed') 4 4 }
+7 -3
src/view/com/composer/ComposePost.tsx
··· 32 32 import * as apilib from '../../../state/lib/api' 33 33 import {ComposerOpts} from '../../../state/models/shell-ui' 34 34 import {s, colors, gradients} from '../../lib/styles' 35 - import {detectLinkables, extractEntities} from '../../../lib/strings' 35 + import { 36 + detectLinkables, 37 + extractEntities, 38 + cleanError, 39 + } from '../../../lib/strings' 36 40 import {getLinkMeta} from '../../../lib/link-meta' 37 41 import {downloadAndResize} from '../../../lib/images' 38 42 import {UserLocalPhotosModel} from '../../../state/models/user-local-photos' ··· 212 216 } 213 217 const onPaste = async (err: string | undefined, files: PastedFile[]) => { 214 218 if (err) { 215 - return setError(err) 219 + return setError(cleanError(err)) 216 220 } 217 221 if (selectedPhotos.length >= 4) { 218 222 return ··· 249 253 setProcessingState, 250 254 ) 251 255 } catch (e: any) { 252 - setError(e.message) 256 + setError(cleanError(e.message)) 253 257 setIsProcessing(false) 254 258 return 255 259 }