diff --git a/app/soapbox/__fixtures__/intlMessages.json b/app/soapbox/__fixtures__/intlMessages.json
index 4b37a5ec3..2423f657c 100644
--- a/app/soapbox/__fixtures__/intlMessages.json
+++ b/app/soapbox/__fixtures__/intlMessages.json
@@ -125,9 +125,9 @@
"edit_profile.fields.meta_fields.content_placeholder": "Content",
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
@@ -603,9 +603,9 @@
"edit_profile.fields.meta_fields.content_placeholder": "Content",
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/actions/accounts.js b/app/soapbox/actions/accounts.js
index 31b44ecb1..4530ec705 100644
--- a/app/soapbox/actions/accounts.js
+++ b/app/soapbox/actions/accounts.js
@@ -901,6 +901,7 @@ export function updateNotificationSettings(params) {
dispatch({ type: NOTIFICATION_SETTINGS_SUCCESS, params, data });
}).catch(error => {
dispatch({ type: NOTIFICATION_SETTINGS_FAIL, params, error });
+ throw error;
});
};
}
diff --git a/app/soapbox/actions/me.js b/app/soapbox/actions/me.js
index f487043db..91388b65c 100644
--- a/app/soapbox/actions/me.js
+++ b/app/soapbox/actions/me.js
@@ -53,6 +53,7 @@ export function patchMe(params) {
dispatch(patchMeSuccess(response.data));
}).catch(error => {
dispatch(patchMeFail(error));
+ throw error;
});
};
}
@@ -101,5 +102,6 @@ export function patchMeFail(error) {
return {
type: ME_PATCH_FAIL,
error,
+ skipAlert: true,
};
}
diff --git a/app/soapbox/features/edit_profile/index.js b/app/soapbox/features/edit_profile/index.js
index 0a607deda..762614f04 100644
--- a/app/soapbox/features/edit_profile/index.js
+++ b/app/soapbox/features/edit_profile/index.js
@@ -27,6 +27,7 @@ import { isVerified } from 'soapbox/utils/accounts';
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import { getFeatures } from 'soapbox/utils/features';
import { makeGetAccount } from 'soapbox/selectors';
+import resizeImage from 'soapbox/utils/resize_image';
const hidesNetwork = account => {
const pleroma = account.get('pleroma');
@@ -42,6 +43,7 @@ const messages = defineMessages({
metaFieldContent: { id: 'edit_profile.fields.meta_fields.content_placeholder', defaultMessage: 'Content' },
verified: { id: 'edit_profile.fields.verified_display_name', defaultMessage: 'Verified users may not update their display name' },
success: { id: 'edit_profile.success', defaultMessage: 'Profile saved!' },
+ error: { id: 'edit_profile.error', defaultMessage: 'Profile update failed' },
bioPlaceholder: { id: 'edit_profile.fields.bio_placeholder', defaultMessage: 'Tell us about yourself.' },
displayNamePlaceholder: { id: 'edit_profile.fields.display_name_placeholder', defaultMessage: 'Name' },
});
@@ -178,6 +180,7 @@ class EditProfile extends ImmutablePureComponent {
dispatch(snackbar.success(intl.formatMessage(messages.success)));
}).catch((error) => {
this.setState({ isLoading: false });
+ dispatch(snackbar.error(intl.formatMessage(messages.error)));
});
event.preventDefault();
@@ -199,15 +202,20 @@ class EditProfile extends ImmutablePureComponent {
};
}
- handleFileChange = e => {
- const { name } = e.target;
- const [file] = e.target.files || [];
- const url = file ? URL.createObjectURL(file) : this.state[name];
+ handleFileChange = maxPixels => {
+ return e => {
+ const { name } = e.target;
+ const [f] = e.target.files || [];
- this.setState({
- [name]: url,
- [`${name}_file`]: file,
- });
+ resizeImage(f, maxPixels).then(file => {
+ const url = file ? URL.createObjectURL(file) : this.state[name];
+
+ this.setState({
+ [name]: url,
+ [`${name}_file`]: file,
+ });
+ }).catch(console.error);
+ };
}
handleAddField = () => {
@@ -262,14 +270,14 @@ class EditProfile extends ImmutablePureComponent {
}
name='header'
- hint={}
- onChange={this.handleFileChange}
+ hint={}
+ onChange={this.handleFileChange(1920 * 1080)}
/>
}
name='avatar'
- hint={}
- onChange={this.handleFileChange}
+ hint={}
+ onChange={this.handleFileChange(400 * 400)}
/>
diff --git a/app/soapbox/locales/ar.json b/app/soapbox/locales/ar.json
index 698eb01df..4d494a653 100644
--- a/app/soapbox/locales/ar.json
+++ b/app/soapbox/locales/ar.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ast.json b/app/soapbox/locales/ast.json
index 6cab60b3d..d219d76a9 100644
--- a/app/soapbox/locales/ast.json
+++ b/app/soapbox/locales/ast.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/bg.json b/app/soapbox/locales/bg.json
index a4702336d..62f5c3b0c 100644
--- a/app/soapbox/locales/bg.json
+++ b/app/soapbox/locales/bg.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/bn.json b/app/soapbox/locales/bn.json
index 6d2ce2dad..72a282cdd 100644
--- a/app/soapbox/locales/bn.json
+++ b/app/soapbox/locales/bn.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/br.json b/app/soapbox/locales/br.json
index 477efb78f..d8da4c724 100644
--- a/app/soapbox/locales/br.json
+++ b/app/soapbox/locales/br.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/co.json b/app/soapbox/locales/co.json
index 8a19681dd..70b85e759 100644
--- a/app/soapbox/locales/co.json
+++ b/app/soapbox/locales/co.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/cy.json b/app/soapbox/locales/cy.json
index 970c15afe..4a182c838 100644
--- a/app/soapbox/locales/cy.json
+++ b/app/soapbox/locales/cy.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/da.json b/app/soapbox/locales/da.json
index 76e9bfb61..287958c91 100644
--- a/app/soapbox/locales/da.json
+++ b/app/soapbox/locales/da.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/defaultMessages.json b/app/soapbox/locales/defaultMessages.json
index 5ffcada37..d0fbc2322 100644
--- a/app/soapbox/locales/defaultMessages.json
+++ b/app/soapbox/locales/defaultMessages.json
@@ -1812,7 +1812,7 @@
"id": "edit_profile.fields.header_label"
},
{
- "defaultMessage": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "defaultMessage": "PNG, GIF or JPG. Will be downscaled to {size}",
"id": "edit_profile.hints.header"
},
{
@@ -1820,7 +1820,7 @@
"id": "edit_profile.fields.avatar_label"
},
{
- "defaultMessage": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "defaultMessage": "PNG, GIF or JPG. Will be downscaled to {size}",
"id": "edit_profile.hints.avatar"
},
{
diff --git a/app/soapbox/locales/el.json b/app/soapbox/locales/el.json
index 9f3049abf..e7fc0b43f 100644
--- a/app/soapbox/locales/el.json
+++ b/app/soapbox/locales/el.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/en.json b/app/soapbox/locales/en.json
index 1505f4e93..1d7e3fab3 100644
--- a/app/soapbox/locales/en.json
+++ b/app/soapbox/locales/en.json
@@ -234,9 +234,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/eo.json b/app/soapbox/locales/eo.json
index e835e2082..3828f5f99 100644
--- a/app/soapbox/locales/eo.json
+++ b/app/soapbox/locales/eo.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/es-AR.json b/app/soapbox/locales/es-AR.json
index c23a99874..26249b11f 100644
--- a/app/soapbox/locales/es-AR.json
+++ b/app/soapbox/locales/es-AR.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/es.json b/app/soapbox/locales/es.json
index 8fb854aaf..98d66f10a 100644
--- a/app/soapbox/locales/es.json
+++ b/app/soapbox/locales/es.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/et.json b/app/soapbox/locales/et.json
index cd52002b7..b91ea1957 100644
--- a/app/soapbox/locales/et.json
+++ b/app/soapbox/locales/et.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/eu.json b/app/soapbox/locales/eu.json
index 0d806c8ac..3f139c055 100644
--- a/app/soapbox/locales/eu.json
+++ b/app/soapbox/locales/eu.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/fa.json b/app/soapbox/locales/fa.json
index 091917897..79ef5c312 100644
--- a/app/soapbox/locales/fa.json
+++ b/app/soapbox/locales/fa.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/fi.json b/app/soapbox/locales/fi.json
index 226a84a0d..b75716901 100644
--- a/app/soapbox/locales/fi.json
+++ b/app/soapbox/locales/fi.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/fr.json b/app/soapbox/locales/fr.json
index ce4c99239..d61283a76 100644
--- a/app/soapbox/locales/fr.json
+++ b/app/soapbox/locales/fr.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ga.json b/app/soapbox/locales/ga.json
index f93f1a503..cb682cc15 100644
--- a/app/soapbox/locales/ga.json
+++ b/app/soapbox/locales/ga.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/gl.json b/app/soapbox/locales/gl.json
index 9910d1569..eacf19868 100644
--- a/app/soapbox/locales/gl.json
+++ b/app/soapbox/locales/gl.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/he.json b/app/soapbox/locales/he.json
index 7092dd16e..6a459a201 100644
--- a/app/soapbox/locales/he.json
+++ b/app/soapbox/locales/he.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/hi.json b/app/soapbox/locales/hi.json
index 0a901da45..1240c2ec6 100644
--- a/app/soapbox/locales/hi.json
+++ b/app/soapbox/locales/hi.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/hr.json b/app/soapbox/locales/hr.json
index a0dff6ed6..257533548 100644
--- a/app/soapbox/locales/hr.json
+++ b/app/soapbox/locales/hr.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/hu.json b/app/soapbox/locales/hu.json
index 59c1830f4..d1cc5de02 100644
--- a/app/soapbox/locales/hu.json
+++ b/app/soapbox/locales/hu.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/hy.json b/app/soapbox/locales/hy.json
index 52abd0703..f6de4c548 100644
--- a/app/soapbox/locales/hy.json
+++ b/app/soapbox/locales/hy.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/id.json b/app/soapbox/locales/id.json
index 9838f2947..6d609987f 100644
--- a/app/soapbox/locales/id.json
+++ b/app/soapbox/locales/id.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/io.json b/app/soapbox/locales/io.json
index 76b02a40e..82f65ac87 100644
--- a/app/soapbox/locales/io.json
+++ b/app/soapbox/locales/io.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/it.json b/app/soapbox/locales/it.json
index af8431a75..df961adc4 100644
--- a/app/soapbox/locales/it.json
+++ b/app/soapbox/locales/it.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ka.json b/app/soapbox/locales/ka.json
index fe3f36e98..10b057071 100644
--- a/app/soapbox/locales/ka.json
+++ b/app/soapbox/locales/ka.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/kk.json b/app/soapbox/locales/kk.json
index aa7ed0164..23236c2e0 100644
--- a/app/soapbox/locales/kk.json
+++ b/app/soapbox/locales/kk.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ko.json b/app/soapbox/locales/ko.json
index 3ecaf8bc1..faf672391 100644
--- a/app/soapbox/locales/ko.json
+++ b/app/soapbox/locales/ko.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/lt.json b/app/soapbox/locales/lt.json
index efe7187bc..6b11bd554 100644
--- a/app/soapbox/locales/lt.json
+++ b/app/soapbox/locales/lt.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/lv.json b/app/soapbox/locales/lv.json
index 14ad927cc..47728639b 100644
--- a/app/soapbox/locales/lv.json
+++ b/app/soapbox/locales/lv.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/mk.json b/app/soapbox/locales/mk.json
index 7bf98ed3e..39b6379e3 100644
--- a/app/soapbox/locales/mk.json
+++ b/app/soapbox/locales/mk.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ms.json b/app/soapbox/locales/ms.json
index 5a081a229..705c4c031 100644
--- a/app/soapbox/locales/ms.json
+++ b/app/soapbox/locales/ms.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/nl.json b/app/soapbox/locales/nl.json
index 8b81f6b0d..9dd980e08 100644
--- a/app/soapbox/locales/nl.json
+++ b/app/soapbox/locales/nl.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/nn.json b/app/soapbox/locales/nn.json
index 85aa14b1e..a3471be50 100644
--- a/app/soapbox/locales/nn.json
+++ b/app/soapbox/locales/nn.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/no.json b/app/soapbox/locales/no.json
index ecabfa964..63ca8ad22 100644
--- a/app/soapbox/locales/no.json
+++ b/app/soapbox/locales/no.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/oc.json b/app/soapbox/locales/oc.json
index b11a61f91..8fd3cf381 100644
--- a/app/soapbox/locales/oc.json
+++ b/app/soapbox/locales/oc.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/pt-BR.json b/app/soapbox/locales/pt-BR.json
index 84233db43..936a330c2 100644
--- a/app/soapbox/locales/pt-BR.json
+++ b/app/soapbox/locales/pt-BR.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ro.json b/app/soapbox/locales/ro.json
index ed18a3859..1a23889f1 100644
--- a/app/soapbox/locales/ro.json
+++ b/app/soapbox/locales/ro.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ru.json b/app/soapbox/locales/ru.json
index b9113b889..904696722 100644
--- a/app/soapbox/locales/ru.json
+++ b/app/soapbox/locales/ru.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sk.json b/app/soapbox/locales/sk.json
index b5bbad711..38a41a225 100644
--- a/app/soapbox/locales/sk.json
+++ b/app/soapbox/locales/sk.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sl.json b/app/soapbox/locales/sl.json
index 34bf6f6ca..8947dd875 100644
--- a/app/soapbox/locales/sl.json
+++ b/app/soapbox/locales/sl.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sq.json b/app/soapbox/locales/sq.json
index e31ba5940..a626cd157 100644
--- a/app/soapbox/locales/sq.json
+++ b/app/soapbox/locales/sq.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sr-Latn.json b/app/soapbox/locales/sr-Latn.json
index 96005a081..01d211f57 100644
--- a/app/soapbox/locales/sr-Latn.json
+++ b/app/soapbox/locales/sr-Latn.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sr.json b/app/soapbox/locales/sr.json
index ffce89c09..dbf791c36 100644
--- a/app/soapbox/locales/sr.json
+++ b/app/soapbox/locales/sr.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/sv.json b/app/soapbox/locales/sv.json
index f4b6be1af..f4652c31c 100644
--- a/app/soapbox/locales/sv.json
+++ b/app/soapbox/locales/sv.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/ta.json b/app/soapbox/locales/ta.json
index c99035ca6..1ebf3f914 100644
--- a/app/soapbox/locales/ta.json
+++ b/app/soapbox/locales/ta.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/te.json b/app/soapbox/locales/te.json
index ef221d22d..bb752f493 100644
--- a/app/soapbox/locales/te.json
+++ b/app/soapbox/locales/te.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/th.json b/app/soapbox/locales/th.json
index e8c8e65dd..cb70dc7e4 100644
--- a/app/soapbox/locales/th.json
+++ b/app/soapbox/locales/th.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/tr.json b/app/soapbox/locales/tr.json
index 652e9317b..ed2e99dbc 100644
--- a/app/soapbox/locales/tr.json
+++ b/app/soapbox/locales/tr.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/uk.json b/app/soapbox/locales/uk.json
index 0bd261b25..43b6e985d 100644
--- a/app/soapbox/locales/uk.json
+++ b/app/soapbox/locales/uk.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/zh-HK.json b/app/soapbox/locales/zh-HK.json
index a1e3796c4..dc4309fe4 100644
--- a/app/soapbox/locales/zh-HK.json
+++ b/app/soapbox/locales/zh-HK.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/locales/zh-TW.json b/app/soapbox/locales/zh-TW.json
index 6fa5bbd03..ae02d30a8 100644
--- a/app/soapbox/locales/zh-TW.json
+++ b/app/soapbox/locales/zh-TW.json
@@ -231,9 +231,9 @@
"edit_profile.fields.meta_fields.label_placeholder": "Label",
"edit_profile.fields.meta_fields_label": "Profile metadata",
"edit_profile.fields.verified_display_name": "Verified users may not update their display name",
- "edit_profile.hints.avatar": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 400x400px",
+ "edit_profile.hints.avatar": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
- "edit_profile.hints.header": "PNG, GIF or JPG. At most 2 MB. Will be downscaled to 1500x500px",
+ "edit_profile.hints.header": "PNG, GIF or JPG. Will be downscaled to {size}",
"edit_profile.hints.locked": "Requires you to manually approve followers",
"edit_profile.hints.meta_fields": "You can have up to {count, plural, one {# item} other {# items}} displayed as a table on your profile",
"edit_profile.save": "Save",
diff --git a/app/soapbox/utils/resize_image.js b/app/soapbox/utils/resize_image.js
index 26bb36c76..d801cc200 100644
--- a/app/soapbox/utils/resize_image.js
+++ b/app/soapbox/utils/resize_image.js
@@ -1,5 +1,5 @@
/* eslint-disable no-case-declarations */
-const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px
+const DEFAULT_MAX_PIXELS = 1920 * 1080;
const _browser_quirks = {};
@@ -155,12 +155,12 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam
}, type);
});
-const resizeImage = (img, inputFile) => new Promise((resolve, reject) => {
+const resizeImage = (img, inputFile, maxPixels) => new Promise((resolve, reject) => {
const { width, height } = img;
const type = inputFile.type || 'image/png';
- const newWidth = Math.round(Math.sqrt(MAX_IMAGE_PIXELS * (width / height)));
- const newHeight = Math.round(Math.sqrt(MAX_IMAGE_PIXELS * (height / width)));
+ const newWidth = Math.round(Math.sqrt(maxPixels * (width / height)));
+ const newHeight = Math.round(Math.sqrt(maxPixels * (height / width)));
checkCanvasReliability()
.then(getOrientation(img, type))
@@ -175,19 +175,19 @@ const resizeImage = (img, inputFile) => new Promise((resolve, reject) => {
.catch(reject);
});
-export default inputFile => new Promise((resolve) => {
+export default (inputFile, maxPixels = DEFAULT_MAX_PIXELS) => new Promise((resolve) => {
if (!inputFile.type.match(/image.*/) || inputFile.type === 'image/gif') {
resolve(inputFile);
return;
}
loadImage(inputFile).then(img => {
- if (img.width * img.height < MAX_IMAGE_PIXELS) {
+ if (img.width * img.height < maxPixels) {
resolve(inputFile);
return;
}
- resizeImage(img, inputFile)
+ resizeImage(img, inputFile, maxPixels)
.then(resolve)
.catch(() => resolve(inputFile));
}).catch(() => resolve(inputFile));