deer social fork for personal usage. but you might see a use idk. github mirror

see this is why i shouldnt push stuff to main without testing because theres a guy who forked my thing and i dont wanna cause too many problems for him. cant be force pushing stuff around

aylac.top 1473df86 121a1a75

verified
Changed files
+8 -4
src
screens
Profile
state
+5 -2
src/screens/Profile/Header/EditProfileDialog.tsx
··· 194 194 }, [setWebsite]) 195 195 196 196 const onPressSave = useCallback(async () => { 197 + const pronounsTrimmed = pronouns.trimEnd().toLowerCase() 198 + const websiteTrimmed = website.trimEnd().toLowerCase() 199 + 197 200 setImageError('') 198 201 try { 199 202 await updateProfileMutation({ ··· 201 204 updates: { 202 205 displayName: displayName.trimEnd(), 203 206 description: description.trimEnd(), 204 - pronouns: pronouns.trimEnd().toLowerCase(), 205 - website: website !== '' ? website.trimEnd().toLowerCase() : undefined, 207 + pronouns: pronounsTrimmed !== '' ? pronounsTrimmed : undefined, 208 + website: websiteTrimmed !== '' ? websiteTrimmed : undefined, 206 209 }, 207 210 newUserAvatar, 208 211 newUserBanner,
+3 -2
src/state/gallery.web.ts
··· 160 160 const originalSize = img.source.path.startsWith('blob:') 161 161 ? POST_IMG_MAX.size 162 162 : getDataUriSize(img.source.path) 163 + const ogSizeLimit = originalSize * (webp ? 1 : 1.5) 163 164 164 165 const [w, h] = containImageRes(source.width, source.height, POST_IMG_MAX) 165 166 ··· 177 178 178 179 const format = webp 179 180 ? SaveFormat.WEBP 180 - : qualityPercentage 181 + : qualityPercentage === 100 181 182 ? SaveFormat.PNG 182 183 : SaveFormat.JPEG 183 184 ··· 195 196 const size = 196 197 'size' in res ? (res.size as number) : getDataUriSize(res.base64!) 197 198 198 - if (size <= POST_IMG_MAX.size && size <= originalSize) { 199 + if (size <= POST_IMG_MAX.size && size <= ogSizeLimit) { 199 200 newDataUri = { 200 201 path: res.uri, 201 202 width: w,