max-telegram-bridge-bot/migrations/postgres
Andrey Lugovskoy f57105d2b6
Some checks failed
Build / build (push) Has been cancelled
crosspost: fix long album caption + strip custom emoji and whitespace padding
- MAX→TG album: caption over Telegram's 1024 media-group limit is no longer lost —
  the album is sent without an inline caption and the full text follows as a
  separate message (sendMaxAlbumToTg, covers both direct and queued delivery).
- Forwarded text: strip Telegram custom_emoji (MAX can't render them; the fallback
  glyph only littered the copy) in tgEntitiesToHTML, and collapse whitespace padding
  (runs of spaces/nbsp, trailing spaces, 3+ blank lines) in crosspost captions —
  cuts bloated length (MAX ~4000 char limit) and fixes ugly gaps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ajcn7YhgeexPwbfrUNMj8u
2026-07-03 13:00:46 +04:00
..
000001_init.down.sql Initial commit: TG↔MAX bridge 2026-02-15 03:58:24 +03:00
000001_init.up.sql Initial commit: TG↔MAX bridge 2026-02-15 03:58:24 +03:00
000002_add_prefix_and_created_at.down.sql Initial commit: TG↔MAX bridge 2026-02-15 03:58:24 +03:00
000002_add_prefix_and_created_at.up.sql Initial commit: TG↔MAX bridge 2026-02-15 03:58:24 +03:00
000003_pending_created_at.down.sql Security hardening and admin check tests 2026-02-15 15:05:41 +03:00
000003_pending_created_at.up.sql Security hardening and admin check tests 2026-02-15 15:05:41 +03:00
000004_add_crossposts.down.sql Add /crosspost command for channel-to-channel crossposting 2026-02-15 16:26:18 +03:00
000004_add_crossposts.up.sql Remove prefix support from crossposting 2026-02-15 16:30:11 +03:00
000005_add_send_queue.down.sql Add retry queue for failed message delivery 2026-03-18 11:30:09 +03:00
000005_add_send_queue.up.sql Add retry queue for failed message delivery 2026-03-18 11:30:09 +03:00
000006_crosspost_owner.down.sql Add owner_id to crossposts, restrict management to owner 2026-03-19 21:14:57 +03:00
000006_crosspost_owner.up.sql Add owner_id to crossposts, restrict management to owner 2026-03-19 21:14:57 +03:00
000007_crosspost_soft_delete.down.sql Soft delete for crossposts — track deleted_at and deleted_by 2026-03-19 21:58:23 +03:00
000007_crosspost_soft_delete.up.sql Soft delete for crossposts — track deleted_at and deleted_by 2026-03-19 21:58:23 +03:00
000008_add_users.down.sql Track users, dual owner IDs for crosspost (TG + MAX) 2026-03-19 22:52:13 +03:00
000008_add_users.up.sql Track users, dual owner IDs for crosspost (TG + MAX) 2026-03-19 22:52:13 +03:00
000009_crosspost_tg_owner.down.sql Track users, dual owner IDs for crosspost (TG + MAX) 2026-03-19 22:52:13 +03:00
000009_crosspost_tg_owner.up.sql Track users, dual owner IDs for crosspost (TG + MAX) 2026-03-19 22:52:13 +03:00
000010_queue_att_url.down.sql Add retry queue for MAX→TG direction 2026-03-20 10:49:00 +03:00
000010_queue_att_url.up.sql Add retry queue for MAX→TG direction 2026-03-20 10:49:00 +03:00
000011_crosspost_replacements.down.sql Add text replacements for crosspost channels 2026-03-26 12:18:53 +03:00
000011_crosspost_replacements.up.sql Add text replacements for crosspost channels 2026-03-26 12:18:53 +03:00
000012_pairs_thread_id.down.sql Restore migration files after revert (schema already applied on prod) 2026-04-02 12:39:01 +03:00
000012_pairs_thread_id.up.sql Restore migration files after revert (schema already applied on prod) 2026-04-02 12:39:01 +03:00
000013_crosspost_sync_edits.down.sql Add sync_edits toggle for crosspost edit/delete sync 2026-04-02 22:52:55 +03:00
000013_crosspost_sync_edits.up.sql Add sync_edits toggle for crosspost edit/delete sync 2026-04-02 22:52:55 +03:00
000014_messages_tg_thread_id.down.sql Route MAX replies to source TG thread + crosspost/UX fixes 2026-04-23 15:26:44 +04:00
000014_messages_tg_thread_id.up.sql Route MAX replies to source TG thread + crosspost/UX fixes 2026-04-23 15:26:44 +04:00
000015_thread_pairs.down.sql Add /thread_bridge: link a single TG forum thread to a separate MAX chat 2026-04-23 17:39:00 +04:00
000015_thread_pairs.up.sql Add /thread_bridge: link a single TG forum thread to a separate MAX chat 2026-04-23 17:39:00 +04:00
000016_pairs_created_at.down.sql Add created_at to pairs for pair growth stats 2026-04-24 15:40:28 +04:00
000016_pairs_created_at.up.sql Add created_at to pairs for pair growth stats 2026-04-24 15:40:28 +04:00
000017_discussion_map.down.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000017_discussion_map.up.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000018_bot_chats.down.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000018_bot_chats.up.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000019_pair_owner.down.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000019_pair_owner.up.sql Fix MAX media upload; generic addon hooks + bridge improvements 2026-06-23 20:33:17 +04:00
000020_pause_links.down.sql crosspost: fix long album caption + strip custom emoji and whitespace padding 2026-07-03 13:00:46 +04:00
000020_pause_links.up.sql crosspost: fix long album caption + strip custom emoji and whitespace padding 2026-07-03 13:00:46 +04:00
000021_crosspost_seen.down.sql crosspost: fix long album caption + strip custom emoji and whitespace padding 2026-07-03 13:00:46 +04:00
000021_crosspost_seen.up.sql crosspost: fix long album caption + strip custom emoji and whitespace padding 2026-07-03 13:00:46 +04:00