From 83aa87915ced77b829eca22606de97fc85001170 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 16 Oct 2024 03:18:52 +0200 Subject: [PATCH 1/4] Improve emoji reaction display --- src/components/custom-emoji.jsx | 2 - src/components/status.css | 15 +++++- src/components/status.jsx | 15 ++++-- src/locales/en.po | 96 ++++++++++++++++----------------- 4 files changed, 71 insertions(+), 57 deletions(-) diff --git a/src/components/custom-emoji.jsx b/src/components/custom-emoji.jsx index 58a7eb950f..2de0ed3473 100644 --- a/src/components/custom-emoji.jsx +++ b/src/components/custom-emoji.jsx @@ -9,8 +9,6 @@ export default function CustomEmoji({ staticUrl, alt, url }) { src={url} alt={alt} class="shortcode-emoji emoji" - width="16" - height="16" loading="lazy" decoding="async" fetchPriority="low" diff --git a/src/components/status.css b/src/components/status.css index 16ce1273d2..a23c5f2c5c 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -2525,13 +2525,24 @@ a.card:is(:hover, :focus):visited { .shortcode-emoji { width: auto; min-width: 1.2em; - max-width: 100%; + max-width: 96cqw; height: 1.2em; - vertical-align: text-bottom; + vertical-align: sub; object-fit: contain; /* object-position: left; */ } +.emoji-reaction { + display: inline-flex; + align-items: end; + gap: 0.5ex; + + font-size: 1.5rem; +} +.emoji-reaction-count { + font-size: 1.0rem; +} + /* EDIT HISTORY */ #edit-history { diff --git a/src/components/status.jsx b/src/components/status.jsx index aaa2f529f5..2526c64672 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -2291,8 +2291,10 @@ function Status({ alt={name} url={url} staticUrl={staticUrl} - />{' '} - {count} + /> + + {count} + ); } @@ -2314,8 +2316,10 @@ function Status({ alt={name} url={emoji.url} staticUrl={emoji.staticUrl} - />{' '} - {count} + /> + + {count} + ); } @@ -2326,7 +2330,8 @@ function Status({ me ? '' : 'insignificant' }`} > - {name} {count} + {name} + {count} ); })} diff --git a/src/locales/en.po b/src/locales/en.po index 38a3e8953b..73bbb7e418 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -111,8 +111,8 @@ msgstr "" #: src/components/status.jsx:1703 #: src/components/status.jsx:1720 #: src/components/status.jsx:1844 -#: src/components/status.jsx:2442 -#: src/components/status.jsx:2445 +#: src/components/status.jsx:2447 +#: src/components/status.jsx:2450 #: src/pages/account-statuses.jsx:528 #: src/pages/accounts.jsx:109 #: src/pages/hashtag.jsx:199 @@ -289,7 +289,7 @@ msgstr "" #: src/components/account-info.jsx:1311 #: src/components/shortcuts-settings.jsx:1059 #: src/components/status.jsx:1152 -#: src/components/status.jsx:3219 +#: src/components/status.jsx:3224 msgid "Copy" msgstr "" @@ -417,9 +417,9 @@ msgstr "" #: src/components/shortcuts-settings.jsx:230 #: src/components/shortcuts-settings.jsx:583 #: src/components/shortcuts-settings.jsx:783 -#: src/components/status.jsx:2944 -#: src/components/status.jsx:3183 -#: src/components/status.jsx:3681 +#: src/components/status.jsx:2949 +#: src/components/status.jsx:3188 +#: src/components/status.jsx:3686 #: src/pages/accounts.jsx:36 #: src/pages/catchup.jsx:1581 #: src/pages/filters.jsx:224 @@ -678,7 +678,7 @@ msgstr "" #: src/components/status.jsx:895 #: src/components/status.jsx:1683 #: src/components/status.jsx:1684 -#: src/components/status.jsx:2338 +#: src/components/status.jsx:2343 msgid "Reply" msgstr "" @@ -1094,9 +1094,9 @@ msgstr "" #: src/components/keyboard-shortcuts-help.jsx:164 #: src/components/status.jsx:903 -#: src/components/status.jsx:2364 -#: src/components/status.jsx:2396 -#: src/components/status.jsx:2397 +#: src/components/status.jsx:2369 +#: src/components/status.jsx:2401 +#: src/components/status.jsx:2402 msgid "Boost" msgstr "" @@ -1106,8 +1106,8 @@ msgstr "" #: src/components/keyboard-shortcuts-help.jsx:172 #: src/components/status.jsx:988 -#: src/components/status.jsx:2421 -#: src/components/status.jsx:2422 +#: src/components/status.jsx:2426 +#: src/components/status.jsx:2427 msgid "Bookmark" msgstr "" @@ -1211,9 +1211,9 @@ msgid "Filtered: {filterTitleStr}" msgstr "" #: src/components/media-post.jsx:133 -#: src/components/status.jsx:3511 -#: src/components/status.jsx:3607 -#: src/components/status.jsx:3685 +#: src/components/status.jsx:3516 +#: src/components/status.jsx:3612 +#: src/components/status.jsx:3690 #: src/components/timeline.jsx:973 #: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:1876 @@ -2041,18 +2041,18 @@ msgstr "" #: src/components/status.jsx:903 #: src/components/status.jsx:965 -#: src/components/status.jsx:2364 -#: src/components/status.jsx:2396 +#: src/components/status.jsx:2369 +#: src/components/status.jsx:2401 msgid "Unboost" msgstr "" #: src/components/status.jsx:919 -#: src/components/status.jsx:2379 +#: src/components/status.jsx:2384 msgid "Quote" msgstr "" #: src/components/status.jsx:927 -#: src/components/status.jsx:2388 +#: src/components/status.jsx:2393 msgid "Some media have no descriptions." msgstr "" @@ -2076,20 +2076,20 @@ msgstr "" #: src/components/status.jsx:978 #: src/components/status.jsx:1693 -#: src/components/status.jsx:2409 +#: src/components/status.jsx:2414 msgid "Unlike" msgstr "" #: src/components/status.jsx:979 #: src/components/status.jsx:1693 #: src/components/status.jsx:1694 -#: src/components/status.jsx:2409 -#: src/components/status.jsx:2410 +#: src/components/status.jsx:2414 +#: src/components/status.jsx:2415 msgid "Like" msgstr "" #: src/components/status.jsx:988 -#: src/components/status.jsx:2421 +#: src/components/status.jsx:2426 msgid "Unbookmark" msgstr "" @@ -2106,7 +2106,7 @@ msgid "Edited: {editedDateText}" msgstr "" #: src/components/status.jsx:1187 -#: src/components/status.jsx:3188 +#: src/components/status.jsx:3193 msgid "Embed post" msgstr "" @@ -2176,17 +2176,17 @@ msgstr "" #: src/components/status.jsx:1694 #: src/components/status.jsx:1730 -#: src/components/status.jsx:2410 +#: src/components/status.jsx:2415 msgid "Liked" msgstr "" #: src/components/status.jsx:1727 -#: src/components/status.jsx:2397 +#: src/components/status.jsx:2402 msgid "Boosted" msgstr "" #: src/components/status.jsx:1737 -#: src/components/status.jsx:2422 +#: src/components/status.jsx:2427 msgid "Bookmarked" msgstr "" @@ -2226,86 +2226,86 @@ msgstr "" msgid "Edited" msgstr "" -#: src/components/status.jsx:2339 +#: src/components/status.jsx:2344 msgid "Comments" msgstr "" #. More from [Author] -#: src/components/status.jsx:2648 +#: src/components/status.jsx:2653 msgid "More from <0/>" msgstr "More from <0/>" -#: src/components/status.jsx:2949 +#: src/components/status.jsx:2954 msgid "Edit History" msgstr "" -#: src/components/status.jsx:2953 +#: src/components/status.jsx:2958 msgid "Failed to load history" msgstr "" -#: src/components/status.jsx:2958 +#: src/components/status.jsx:2963 msgid "Loading…" msgstr "" -#: src/components/status.jsx:3193 +#: src/components/status.jsx:3198 msgid "HTML Code" msgstr "" -#: src/components/status.jsx:3210 +#: src/components/status.jsx:3215 msgid "HTML code copied" msgstr "" -#: src/components/status.jsx:3213 +#: src/components/status.jsx:3218 msgid "Unable to copy HTML code" msgstr "" -#: src/components/status.jsx:3225 +#: src/components/status.jsx:3230 msgid "Media attachments:" msgstr "" -#: src/components/status.jsx:3247 +#: src/components/status.jsx:3252 msgid "Account Emojis:" msgstr "" -#: src/components/status.jsx:3278 -#: src/components/status.jsx:3323 +#: src/components/status.jsx:3283 +#: src/components/status.jsx:3328 msgid "static URL" msgstr "" -#: src/components/status.jsx:3292 +#: src/components/status.jsx:3297 msgid "Emojis:" msgstr "" -#: src/components/status.jsx:3337 +#: src/components/status.jsx:3342 msgid "Notes:" msgstr "" -#: src/components/status.jsx:3341 +#: src/components/status.jsx:3346 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgstr "" -#: src/components/status.jsx:3347 +#: src/components/status.jsx:3352 msgid "Polls are not interactive, becomes a list with vote counts." msgstr "" -#: src/components/status.jsx:3352 +#: src/components/status.jsx:3357 msgid "Media attachments can be images, videos, audios or any file types." msgstr "" -#: src/components/status.jsx:3358 +#: src/components/status.jsx:3363 msgid "Post could be edited or deleted later." msgstr "" -#: src/components/status.jsx:3364 +#: src/components/status.jsx:3369 msgid "Preview" msgstr "" -#: src/components/status.jsx:3373 +#: src/components/status.jsx:3378 msgid "Note: This preview is lightly styled." msgstr "" #. [Name] [Visibility icon] boosted -#: src/components/status.jsx:3615 +#: src/components/status.jsx:3620 msgid "<0/> <1/> boosted" msgstr "" From d89611bb2a8d1bf4657b9d8bdf5e4ab06f63f96d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Dec 2024 05:38:41 +0100 Subject: [PATCH 2/4] Localization --- src/locales/en.po | 96 +++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/src/locales/en.po b/src/locales/en.po index 34b2b02bc5..1961b3c58f 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -110,8 +110,8 @@ msgstr "" #: src/components/status.jsx:1737 #: src/components/status.jsx:1754 #: src/components/status.jsx:1878 -#: src/components/status.jsx:2490 -#: src/components/status.jsx:2493 +#: src/components/status.jsx:2495 +#: src/components/status.jsx:2498 #: src/pages/account-statuses.jsx:528 #: src/pages/accounts.jsx:109 #: src/pages/hashtag.jsx:199 @@ -288,7 +288,7 @@ msgstr "" #: src/components/account-info.jsx:1313 #: src/components/shortcuts-settings.jsx:1059 #: src/components/status.jsx:1186 -#: src/components/status.jsx:3267 +#: src/components/status.jsx:3272 msgid "Copy" msgstr "" @@ -416,9 +416,9 @@ msgstr "" #: src/components/shortcuts-settings.jsx:230 #: src/components/shortcuts-settings.jsx:583 #: src/components/shortcuts-settings.jsx:783 -#: src/components/status.jsx:2992 -#: src/components/status.jsx:3231 -#: src/components/status.jsx:3731 +#: src/components/status.jsx:2997 +#: src/components/status.jsx:3236 +#: src/components/status.jsx:3736 #: src/pages/accounts.jsx:36 #: src/pages/catchup.jsx:1581 #: src/pages/filters.jsx:224 @@ -692,7 +692,7 @@ msgstr "" #: src/components/status.jsx:929 #: src/components/status.jsx:1717 #: src/components/status.jsx:1718 -#: src/components/status.jsx:2386 +#: src/components/status.jsx:2391 msgid "Reply" msgstr "" @@ -1110,9 +1110,9 @@ msgstr "" #: src/components/keyboard-shortcuts-help.jsx:172 #: src/components/status.jsx:937 -#: src/components/status.jsx:2413 -#: src/components/status.jsx:2444 -#: src/components/status.jsx:2445 +#: src/components/status.jsx:2418 +#: src/components/status.jsx:2449 +#: src/components/status.jsx:2450 msgid "Boost" msgstr "" @@ -1122,8 +1122,8 @@ msgstr "" #: src/components/keyboard-shortcuts-help.jsx:180 #: src/components/status.jsx:1022 -#: src/components/status.jsx:2469 -#: src/components/status.jsx:2470 +#: src/components/status.jsx:2474 +#: src/components/status.jsx:2475 msgid "Bookmark" msgstr "" @@ -1227,9 +1227,9 @@ msgid "Filtered: {filterTitleStr}" msgstr "" #: src/components/media-post.jsx:133 -#: src/components/status.jsx:3561 -#: src/components/status.jsx:3657 -#: src/components/status.jsx:3735 +#: src/components/status.jsx:3566 +#: src/components/status.jsx:3662 +#: src/components/status.jsx:3740 #: src/components/timeline.jsx:973 #: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:1876 @@ -2065,18 +2065,18 @@ msgstr "" #: src/components/status.jsx:937 #: src/components/status.jsx:999 -#: src/components/status.jsx:2413 -#: src/components/status.jsx:2444 +#: src/components/status.jsx:2418 +#: src/components/status.jsx:2449 msgid "Unboost" msgstr "" #: src/components/status.jsx:953 -#: src/components/status.jsx:2428 +#: src/components/status.jsx:2433 msgid "Quote" msgstr "" #: src/components/status.jsx:961 -#: src/components/status.jsx:2437 +#: src/components/status.jsx:2442 msgid "Some media have no descriptions." msgstr "" @@ -2100,20 +2100,20 @@ msgstr "" #: src/components/status.jsx:1012 #: src/components/status.jsx:1727 -#: src/components/status.jsx:2457 +#: src/components/status.jsx:2462 msgid "Unlike" msgstr "" #: src/components/status.jsx:1013 #: src/components/status.jsx:1727 #: src/components/status.jsx:1728 -#: src/components/status.jsx:2457 -#: src/components/status.jsx:2458 +#: src/components/status.jsx:2462 +#: src/components/status.jsx:2463 msgid "Like" msgstr "" #: src/components/status.jsx:1022 -#: src/components/status.jsx:2469 +#: src/components/status.jsx:2474 msgid "Unbookmark" msgstr "" @@ -2130,7 +2130,7 @@ msgid "Edited: {editedDateText}" msgstr "" #: src/components/status.jsx:1221 -#: src/components/status.jsx:3236 +#: src/components/status.jsx:3241 msgid "Embed post" msgstr "" @@ -2200,17 +2200,17 @@ msgstr "" #: src/components/status.jsx:1728 #: src/components/status.jsx:1764 -#: src/components/status.jsx:2458 +#: src/components/status.jsx:2463 msgid "Liked" msgstr "" #: src/components/status.jsx:1761 -#: src/components/status.jsx:2445 +#: src/components/status.jsx:2450 msgid "Boosted" msgstr "" #: src/components/status.jsx:1771 -#: src/components/status.jsx:2470 +#: src/components/status.jsx:2475 msgid "Bookmarked" msgstr "" @@ -2250,87 +2250,87 @@ msgstr "" msgid "Edited" msgstr "" -#: src/components/status.jsx:2387 +#: src/components/status.jsx:2392 msgid "Comments" msgstr "" #. More from [Author] -#: src/components/status.jsx:2696 +#: src/components/status.jsx:2701 msgid "More from <0/>" msgstr "More from <0/>" -#: src/components/status.jsx:2997 +#: src/components/status.jsx:3002 msgid "Edit History" msgstr "" -#: src/components/status.jsx:3001 +#: src/components/status.jsx:3006 msgid "Failed to load history" msgstr "" -#: src/components/status.jsx:3006 +#: src/components/status.jsx:3011 #: src/pages/annual-report.jsx:46 msgid "Loading…" msgstr "" -#: src/components/status.jsx:3241 +#: src/components/status.jsx:3246 msgid "HTML Code" msgstr "" -#: src/components/status.jsx:3258 +#: src/components/status.jsx:3263 msgid "HTML code copied" msgstr "" -#: src/components/status.jsx:3261 +#: src/components/status.jsx:3266 msgid "Unable to copy HTML code" msgstr "" -#: src/components/status.jsx:3273 +#: src/components/status.jsx:3278 msgid "Media attachments:" msgstr "" -#: src/components/status.jsx:3295 +#: src/components/status.jsx:3300 msgid "Account Emojis:" msgstr "" -#: src/components/status.jsx:3326 -#: src/components/status.jsx:3371 +#: src/components/status.jsx:3331 +#: src/components/status.jsx:3376 msgid "static URL" msgstr "" -#: src/components/status.jsx:3340 +#: src/components/status.jsx:3345 msgid "Emojis:" msgstr "" -#: src/components/status.jsx:3385 +#: src/components/status.jsx:3390 msgid "Notes:" msgstr "" -#: src/components/status.jsx:3389 +#: src/components/status.jsx:3394 msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgstr "" -#: src/components/status.jsx:3395 +#: src/components/status.jsx:3400 msgid "Polls are not interactive, becomes a list with vote counts." msgstr "" -#: src/components/status.jsx:3400 +#: src/components/status.jsx:3405 msgid "Media attachments can be images, videos, audios or any file types." msgstr "" -#: src/components/status.jsx:3406 +#: src/components/status.jsx:3411 msgid "Post could be edited or deleted later." msgstr "" -#: src/components/status.jsx:3412 +#: src/components/status.jsx:3417 msgid "Preview" msgstr "" -#: src/components/status.jsx:3421 +#: src/components/status.jsx:3426 msgid "Note: This preview is lightly styled." msgstr "" #. [Name] [Visibility icon] boosted -#: src/components/status.jsx:3665 +#: src/components/status.jsx:3670 msgid "<0/> <1/> boosted" msgstr "" From eca2a63bb174ef8c073db119e2be4e3b0b24567d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Dec 2024 05:46:54 +0100 Subject: [PATCH 3/4] Barely handle Chuckya's `reaction` notification type --- src/components/notification.jsx | 4 +- src/locales/en.po | 76 +++++++++++++++++---------------- 2 files changed, 43 insertions(+), 37 deletions(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index 1becf77cf4..73db09643d 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -31,6 +31,7 @@ const NOTIFICATION_ICONS = { 'admin.report': 'account-warning', severed_relationships: 'heart-break', moderation_warning: 'alert', + reaction: 'emoji2', emoji_reaction: 'emoji2', 'pleroma:emoji_reaction': 'emoji2', annual_report: 'celebrate', @@ -260,6 +261,7 @@ const contentText = { Moderation warning ), + reaction: ({ account }) => {account} reacted to your post., emoji_reaction: emojiText, 'pleroma:emoji_reaction': emojiText, annual_report: ({ year }) => Your {year} #Wrapstodon is here!, @@ -397,7 +399,7 @@ function Notification({ text = text({ name: targetName }); } } else if ( - (type === 'emoji_reaction' || type === 'pleroma:emoji_reaction') && + (type === 'reaction' || type === 'emoji_reaction' || type === 'pleroma:emoji_reaction') && notification.emoji ) { const emojiURL = diff --git a/src/locales/en.po b/src/locales/en.po index 1961b3c58f..7c6043aee0 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -963,7 +963,7 @@ msgid "Nothing to show" msgstr "" #: src/components/generic-accounts.jsx:145 -#: src/components/notification.jsx:445 +#: src/components/notification.jsx:447 #: src/pages/accounts.jsx:41 #: src/pages/search.jsx:317 #: src/pages/search.jsx:350 @@ -1412,142 +1412,146 @@ msgstr "" msgid "View all notifications" msgstr "" -#: src/components/notification.jsx:71 +#: src/components/notification.jsx:72 msgid "{account} reacted to your post with {emojiObject}" msgstr "" -#: src/components/notification.jsx:78 +#: src/components/notification.jsx:79 msgid "{account} published a post." msgstr "" -#: src/components/notification.jsx:86 +#: src/components/notification.jsx:87 msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted your reply.} other {{account} boosted your post.}}} other {{account} boosted {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0} people boosted your reply.} other {<2><3>{1} people boosted your post.}}}}" msgstr "" -#: src/components/notification.jsx:129 +#: src/components/notification.jsx:130 msgid "{count, plural, =1 {{account} followed you.} other {<0><1>{0} people followed you.}}" msgstr "" -#: src/components/notification.jsx:143 +#: src/components/notification.jsx:144 msgid "{account} requested to follow you." msgstr "" -#: src/components/notification.jsx:152 +#: src/components/notification.jsx:153 msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} liked your reply.} other {{account} liked your post.}}} other {{account} liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0} people liked your reply.} other {<2><3>{1} people liked your post.}}}}" msgstr "" -#: src/components/notification.jsx:194 +#: src/components/notification.jsx:195 msgid "A poll you have voted in or created has ended." msgstr "" -#: src/components/notification.jsx:195 +#: src/components/notification.jsx:196 msgid "A poll you have created has ended." msgstr "" -#: src/components/notification.jsx:196 +#: src/components/notification.jsx:197 msgid "A poll you have voted in has ended." msgstr "" -#: src/components/notification.jsx:197 +#: src/components/notification.jsx:198 msgid "A post you interacted with has been edited." msgstr "" -#: src/components/notification.jsx:205 +#: src/components/notification.jsx:206 msgid "{count, plural, =1 {{postsCount, plural, =1 {{postType, select, reply {{account} boosted & liked your reply.} other {{account} boosted & liked your post.}}} other {{account} boosted & liked {postsCount} of your posts.}}} other {{postType, select, reply {<0><1>{0} people boosted & liked your reply.} other {<2><3>{1} people boosted & liked your post.}}}}" msgstr "" -#: src/components/notification.jsx:247 +#: src/components/notification.jsx:248 msgid "{account} signed up." msgstr "" -#: src/components/notification.jsx:249 +#: src/components/notification.jsx:250 msgid "{account} reported {targetAccount}" msgstr "" -#: src/components/notification.jsx:254 +#: src/components/notification.jsx:255 msgid "Lost connections with <0>{name}." msgstr "" -#: src/components/notification.jsx:260 +#: src/components/notification.jsx:261 msgid "Moderation warning" msgstr "" -#: src/components/notification.jsx:265 +#: src/components/notification.jsx:264 +msgid "{account} reacted to your post." +msgstr "{account} reacted to your post." + +#: src/components/notification.jsx:267 msgid "Your {year} #Wrapstodon is here!" msgstr "Your {year} #Wrapstodon is here!" -#: src/components/notification.jsx:271 +#: src/components/notification.jsx:273 msgid "An admin from <0>{from} has suspended <1>{targetName}, which means you can no longer receive updates from them or interact with them." msgstr "" -#: src/components/notification.jsx:277 +#: src/components/notification.jsx:279 msgid "An admin from <0>{from} has blocked <1>{targetName}. Affected followers: {followersCount}, followings: {followingCount}." msgstr "" -#: src/components/notification.jsx:283 +#: src/components/notification.jsx:285 msgid "You have blocked <0>{targetName}. Removed followers: {followersCount}, followings: {followingCount}." msgstr "" -#: src/components/notification.jsx:291 +#: src/components/notification.jsx:293 msgid "Your account has received a moderation warning." msgstr "" -#: src/components/notification.jsx:292 +#: src/components/notification.jsx:294 msgid "Your account has been disabled." msgstr "" -#: src/components/notification.jsx:293 +#: src/components/notification.jsx:295 msgid "Some of your posts have been marked as sensitive." msgstr "" -#: src/components/notification.jsx:294 +#: src/components/notification.jsx:296 msgid "Some of your posts have been deleted." msgstr "" -#: src/components/notification.jsx:295 +#: src/components/notification.jsx:297 msgid "Your posts will be marked as sensitive from now on." msgstr "" -#: src/components/notification.jsx:296 +#: src/components/notification.jsx:298 msgid "Your account has been limited." msgstr "" -#: src/components/notification.jsx:297 +#: src/components/notification.jsx:299 msgid "Your account has been suspended." msgstr "" -#: src/components/notification.jsx:372 +#: src/components/notification.jsx:374 msgid "[Unknown notification type: {type}]" msgstr "" -#: src/components/notification.jsx:441 +#: src/components/notification.jsx:443 #: src/components/status.jsx:1036 #: src/components/status.jsx:1046 msgid "Boosted/Liked by…" msgstr "" -#: src/components/notification.jsx:442 +#: src/components/notification.jsx:444 msgid "Liked by…" msgstr "" -#: src/components/notification.jsx:443 +#: src/components/notification.jsx:445 msgid "Boosted by…" msgstr "" -#: src/components/notification.jsx:444 +#: src/components/notification.jsx:446 msgid "Followed by…" msgstr "" -#: src/components/notification.jsx:515 -#: src/components/notification.jsx:531 +#: src/components/notification.jsx:517 +#: src/components/notification.jsx:533 msgid "Learn more <0/>" msgstr "" -#: src/components/notification.jsx:540 +#: src/components/notification.jsx:542 msgid "View #Wrapstodon" msgstr "View #Wrapstodon" -#: src/components/notification.jsx:770 +#: src/components/notification.jsx:772 #: src/components/status.jsx:267 msgid "Read more →" msgstr "" From db22548dca09be82bc3d0500c971f332fd559d9c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Dec 2024 06:08:12 +0100 Subject: [PATCH 4/4] Run prettier --- src/components/notification.jsx | 4 +++- src/locales/en.po | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index 73db09643d..3b7c894bb2 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -399,7 +399,9 @@ function Notification({ text = text({ name: targetName }); } } else if ( - (type === 'reaction' || type === 'emoji_reaction' || type === 'pleroma:emoji_reaction') && + (type === 'reaction' || + type === 'emoji_reaction' || + type === 'pleroma:emoji_reaction') && notification.emoji ) { const emojiURL = diff --git a/src/locales/en.po b/src/locales/en.po index 7c6043aee0..561d9c441b 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -963,7 +963,7 @@ msgid "Nothing to show" msgstr "" #: src/components/generic-accounts.jsx:145 -#: src/components/notification.jsx:447 +#: src/components/notification.jsx:449 #: src/pages/accounts.jsx:41 #: src/pages/search.jsx:317 #: src/pages/search.jsx:350 @@ -1524,34 +1524,34 @@ msgstr "" msgid "[Unknown notification type: {type}]" msgstr "" -#: src/components/notification.jsx:443 +#: src/components/notification.jsx:445 #: src/components/status.jsx:1036 #: src/components/status.jsx:1046 msgid "Boosted/Liked by…" msgstr "" -#: src/components/notification.jsx:444 +#: src/components/notification.jsx:446 msgid "Liked by…" msgstr "" -#: src/components/notification.jsx:445 +#: src/components/notification.jsx:447 msgid "Boosted by…" msgstr "" -#: src/components/notification.jsx:446 +#: src/components/notification.jsx:448 msgid "Followed by…" msgstr "" -#: src/components/notification.jsx:517 -#: src/components/notification.jsx:533 +#: src/components/notification.jsx:519 +#: src/components/notification.jsx:535 msgid "Learn more <0/>" msgstr "" -#: src/components/notification.jsx:542 +#: src/components/notification.jsx:544 msgid "View #Wrapstodon" msgstr "View #Wrapstodon" -#: src/components/notification.jsx:772 +#: src/components/notification.jsx:774 #: src/components/status.jsx:267 msgid "Read more →" msgstr ""