trypost/lang/en/notifications.php
Paulo Castellano a37eb6ae9e fix(social): unify status lock + i18n notification strings
Two follow-up fixes from the code review:

1. **Unified lock key for markAsDisconnected / markAsTokenExpired.**
   Both methods now use `social_account_status:{id}` instead of
   different keys. Prevents the race where `markAsDisconnected` and
   `markAsTokenExpired` could run concurrently on the same account
   (publish-time vs verify-batch-time), causing overlapping updates and
   duplicate notifications.

2. **i18n for notification title/body in markAsTokenExpired and
   markAsDisconnected.** Strings were previously hardcoded in English.
   Added `notifications.account_disconnected.{title,body}` and
   `notifications.account_token_expired.{title,body}` in en, pt-BR, es.
   Follows the project convention (e.g. `Mail/PostPublished`) of
   concatenating the `@` prefix in PHP before passing the username to
   the translation placeholder, instead of putting `@:account` in the
   lang file.
2026-05-12 19:11:23 -03:00

18 lines
518 B
PHP

<?php
declare(strict_types=1);
return [
'post_ready' => [
'title' => 'Your post is ready',
'body' => 'The AI just finished. Tap to review and publish.',
],
'account_disconnected' => [
'title' => ':platform account disconnected',
'body' => ':account needs to be reconnected',
],
'account_token_expired' => [
'title' => ':platform account needs to be reconnected',
'body' => ':account session expired — please reconnect to keep posting',
],
];