Skip to content

Commit 6c95105

Browse files
committed
Merge branch 'main' into temp3_for-taruntarun
# Conflicts: # config/locales/simple_form.it.yml # config/locales/simple_form.nl.yml # config/locales/simple_form.nn.yml # config/locales/simple_form.sq.yml
2 parents 1bd4a5a + 341ea7f commit 6c95105

54 files changed

Lines changed: 374 additions & 107 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ GEM
603603
net-smtp
604604
premailer (~> 1.7, >= 1.7.9)
605605
prettyprint (0.2.0)
606-
prism (1.5.1)
606+
prism (1.5.2)
607607
prometheus_exporter (2.3.0)
608608
webrick
609609
propshaft (1.3.1)
@@ -614,7 +614,7 @@ GEM
614614
date
615615
stringio
616616
public_suffix (6.0.2)
617-
puma (7.0.4)
617+
puma (7.1.0)
618618
nio4r (~> 2.0)
619619
pundit (2.5.2)
620620
activesupport (>= 3.0.0)
@@ -766,10 +766,10 @@ GEM
766766
rubocop-i18n (3.2.3)
767767
lint_roller (~> 1.1)
768768
rubocop (>= 1.72.1)
769-
rubocop-performance (1.26.0)
769+
rubocop-performance (1.26.1)
770770
lint_roller (~> 1.1)
771771
rubocop (>= 1.75.0, < 2.0)
772-
rubocop-ast (>= 1.44.0, < 2.0)
772+
rubocop-ast (>= 1.47.1, < 2.0)
773773
rubocop-rails (2.33.4)
774774
activesupport (>= 4.2.0)
775775
lint_roller (~> 1.1)

app/javascript/mastodon/components/status_action_bar/index.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ class StatusActionBar extends ImmutablePureComponent {
278278
if (publicStatus && 'share' in navigator) {
279279
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShareClick });
280280
}
281-
281+
282+
if (publicStatus && !isRemote) {
283+
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
284+
}
285+
282286
if (quickBoosting && signedIn) {
283287
const quoteItem = quoteItemState(statusQuoteState);
284288
menu.push(null);
@@ -290,11 +294,6 @@ class StatusActionBar extends ImmutablePureComponent {
290294
disabled: quoteItem.disabled,
291295
action: this.handleQuoteClick,
292296
});
293-
menu.push(null);
294-
}
295-
296-
if (publicStatus && !isRemote) {
297-
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
298297
}
299298

300299
if (signedIn) {

app/javascript/mastodon/components/status_content.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class StatusContent extends PureComponent {
269269
lang={language}
270270
htmlString={content}
271271
extraEmojis={status.get('emojis')}
272-
onElement={this.handleElement.bind(this)}
272+
onElement={this.handleElement}
273273
/>
274274

275275
{poll}
@@ -287,7 +287,7 @@ class StatusContent extends PureComponent {
287287
lang={language}
288288
htmlString={content}
289289
extraEmojis={status.get('emojis')}
290-
onElement={this.handleElement.bind(this)}
290+
onElement={this.handleElement}
291291
/>
292292

293293
{poll}

app/javascript/mastodon/features/emoji/mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function testEmojiSupport(text: string) {
7676
return compareFeatures(feature1, feature2);
7777
}
7878

79-
const EMOJI_VERSION_TEST_EMOJI = '🫨'; // shaking head, from v15
79+
const EMOJI_VERSION_TEST_EMOJI = '🫩'; // face with bags under eyes, from Unicode 16.0.
8080
const EMOJI_FLAG_TEST_EMOJI = '🇨🇭';
8181

8282
export function determineEmojiMode(style: string): EmojiMode {

app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,15 @@ export const EmbeddedStatusContent: React.FC<{
4646
() => (status.get('mentions') as List<Mention>).toJS(),
4747
[status],
4848
);
49-
const htmlHandlers = useElementHandledLink({
50-
hashtagAccountId: status.get('account') as string | undefined,
51-
hrefToMention(href) {
49+
const hrefToMention = useCallback(
50+
(href: string) => {
5251
return mentions.find((item) => item.url === href);
5352
},
53+
[mentions],
54+
);
55+
const htmlHandlers = useElementHandledLink({
56+
hashtagAccountId: status.get('account') as string | undefined,
57+
hrefToMention,
5458
});
5559

5660
const handleContentRef = useCallback(

app/javascript/mastodon/features/status/components/action_bar.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ class ActionBar extends PureComponent {
230230
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShare });
231231
}
232232

233+
if (publicStatus && (signedIn || !isRemote)) {
234+
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
235+
}
236+
233237
if (quickBoosting && signedIn) {
234238
const quoteItem = quoteItemState(statusQuoteState);
235239
menu.push(null);
@@ -241,11 +245,6 @@ class ActionBar extends PureComponent {
241245
disabled: quoteItem.disabled,
242246
action: this.handleQuoteClick,
243247
});
244-
menu.push(null);
245-
}
246-
247-
if (publicStatus && (signedIn || !isRemote)) {
248-
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
249248
}
250249

251250
if (signedIn) {

app/javascript/mastodon/locales/es-MX.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
"privacy.unlisted.short": "Pública, pero discreta",
754754
"privacy_policy.last_updated": "Actualizado por última vez {date}",
755755
"privacy_policy.title": "Política de Privacidad",
756-
"quote_error.edit": "No se pueden añadir citas mientras se edita una publicación.",
756+
"quote_error.edit": "No se pueden añadir citas cuando se edita una publicación.",
757757
"quote_error.poll": "No se permite citar encuestas.",
758758
"quote_error.quote": "Solo se permite una cita a la vez.",
759759
"quote_error.unauthorized": "No estás autorizado a citar esta publicación.",

app/javascript/mastodon/locales/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
"privacy.unlisted.short": "Pública silenciosa",
754754
"privacy_policy.last_updated": "Actualizado por última vez {date}",
755755
"privacy_policy.title": "Política de Privacidad",
756-
"quote_error.edit": "No se pueden añadir citas mientras se edita una publicación.",
756+
"quote_error.edit": "No se pueden añadir citas cuando se edita una publicación.",
757757
"quote_error.poll": "No es posible citar encuestas.",
758758
"quote_error.quote": "Solo se permite una cita a la vez.",
759759
"quote_error.unauthorized": "No tienes permiso para citar esta publicación.",

app/javascript/mastodon/locales/et.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@
876876
"status.contains_quote": "Sisaldab tsitaati",
877877
"status.context.loading": "Laadin veel vastuseid",
878878
"status.context.loading_error": "Uute vastuste laadimine ei õnnestunud",
879+
"status.context.loading_success": "Uued vastused on laaditud",
879880
"status.context.more_replies_found": "Leidub veel vastuseid",
880881
"status.context.retry": "Proovi uuesti",
881882
"status.context.show": "Näita",

app/javascript/mastodon/locales/ia.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@
257257
"confirmations.revoke_quote.confirm": "Remover message",
258258
"confirmations.revoke_quote.message": "Iste action non pote esser disfacite.",
259259
"confirmations.revoke_quote.title": "Remover message?",
260+
"confirmations.unblock.confirm": "Disblocar",
261+
"confirmations.unblock.title": "Disblocar {name}?",
260262
"confirmations.unfollow.confirm": "Non plus sequer",
263+
"confirmations.unfollow.title": "Cessar de sequer {name}?",
264+
"confirmations.withdraw_request.confirm": "Retirar requesta",
265+
"confirmations.withdraw_request.title": "Retirar le requesta de sequer {name}?",
261266
"content_warning.hide": "Celar le message",
262267
"content_warning.show": "Monstrar in omne caso",
263268
"content_warning.show_more": "Monstrar plus",
@@ -748,6 +753,7 @@
748753
"privacy.unlisted.short": "Public, non listate",
749754
"privacy_policy.last_updated": "Ultime actualisation {date}",
750755
"privacy_policy.title": "Politica de confidentialitate",
756+
"quote_error.edit": "Non es possibile adder citationes quando se modifica un message.",
751757
"quote_error.poll": "Non es permittite citar sondages.",
752758
"quote_error.quote": "Solmente un citation al vice es permittite.",
753759
"quote_error.unauthorized": "Tu non es autorisate a citar iste message.",
@@ -870,6 +876,7 @@
870876
"status.contains_quote": "Contine un citation",
871877
"status.context.loading": "Cargante plus responsas",
872878
"status.context.loading_error": "Non poteva cargar nove responsas",
879+
"status.context.loading_success": "Nove responsas cargate",
873880
"status.context.more_replies_found": "Plus responsas trovate",
874881
"status.context.retry": "Tentar de novo",
875882
"status.context.show": "Monstrar",
@@ -916,6 +923,8 @@
916923
"status.quote_private": "Le messages private non pote esser citate",
917924
"status.quotes": "{count, plural, one {citation} other {citationes}}",
918925
"status.quotes.empty": "Necuno ha ancora citate iste message. Quando alcuno lo face, illo apparera hic.",
926+
"status.quotes.local_other_disclaimer": "Le citationes rejectate per le autor non essera monstrate.",
927+
"status.quotes.remote_other_disclaimer": "Solmente le citationes de {domain} se garanti de esser monstrate hic. Citationes rejectate per le autor non essera monstrate.",
919928
"status.read_more": "Leger plus",
920929
"status.reblog": "Impulsar",
921930
"status.reblog_or_quote": "Impulsar o citar",

0 commit comments

Comments
 (0)