diff --git a/package.json b/package.json index 6f7283225..80de248b8 100644 --- a/package.json +++ b/package.json @@ -176,7 +176,7 @@ "twemoji": "https://github.com/twitter/twemoji#v14.0.2", "type-fest": "^4.0.0", "typescript": "^5.4.5", - "util": "^0.12.4", + "util": "^0.12.5", "uuid": "^9.0.0", "vite": "^5.0.10", "vite-plugin-compile-time": "^0.2.1", diff --git a/src/actions/compose.ts b/src/actions/compose.ts index 98ae75d3d..c09eb40df 100644 --- a/src/actions/compose.ts +++ b/src/actions/compose.ts @@ -361,7 +361,7 @@ const submitCompose = (composeId: string, opts: SubmitComposeOpts = {}) => const mentions: string[] | null = status.match(/(?:^|\s)@([a-z\d_-]+(?:@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]+)?)/gi); if (mentions) { - to = to.union(mentions.map(mention => mention.trim().slice(1))); + to = to.union(mentions.map(mention => mention.replace(/ /g, '').trim().slice(1))); } dispatch(submitComposeRequest(composeId)); diff --git a/src/actions/import-data.ts b/src/actions/import-data.ts index 8568366fb..0fbd5dd01 100644 --- a/src/actions/import-data.ts +++ b/src/actions/import-data.ts @@ -8,15 +8,15 @@ import type { RootState } from 'soapbox/store'; const IMPORT_FOLLOWS_REQUEST = 'IMPORT_FOLLOWS_REQUEST'; const IMPORT_FOLLOWS_SUCCESS = 'IMPORT_FOLLOWS_SUCCESS'; -const IMPORT_FOLLOWS_FAIL = 'IMPORT_FOLLOWS_FAIL'; +const IMPORT_FOLLOWS_FAIL = 'IMPORT_FOLLOWS_FAIL'; const IMPORT_BLOCKS_REQUEST = 'IMPORT_BLOCKS_REQUEST'; const IMPORT_BLOCKS_SUCCESS = 'IMPORT_BLOCKS_SUCCESS'; -const IMPORT_BLOCKS_FAIL = 'IMPORT_BLOCKS_FAIL'; +const IMPORT_BLOCKS_FAIL = 'IMPORT_BLOCKS_FAIL'; const IMPORT_MUTES_REQUEST = 'IMPORT_MUTES_REQUEST'; const IMPORT_MUTES_SUCCESS = 'IMPORT_MUTES_SUCCESS'; -const IMPORT_MUTES_FAIL = 'IMPORT_MUTES_FAIL'; +const IMPORT_MUTES_FAIL = 'IMPORT_MUTES_FAIL'; type ImportDataActions = { type: typeof IMPORT_FOLLOWS_REQUEST diff --git a/src/components/account.tsx b/src/components/account.tsx index 82c0872fc..d171f3c5b 100644 --- a/src/components/account.tsx +++ b/src/components/account.tsx @@ -86,6 +86,7 @@ interface IAccount { timestampUrl?: string; futureTimestamp?: boolean; withAccountNote?: boolean; + withAvatar?: boolean; withDate?: boolean; withLinkToProfile?: boolean; withRelationship?: boolean; @@ -114,6 +115,7 @@ const Account = ({ timestampUrl, futureTimestamp = false, withAccountNote = false, + withAvatar = true, withDate = false, withLinkToProfile = true, withRelationship = true, @@ -243,21 +245,23 @@ const Account = ({