merged with fixes

This commit is contained in:
onysd 2026-09-09 02:49:30 +03:00
parent a9e758b712
commit 2f1818d656
176 changed files with 9000 additions and 907 deletions

View file

@ -58,6 +58,7 @@ WITH base AS (
COALESCE(m.quote_text, '')::text AS message_quote_text,
COALESCE(m.quote_entities::text, '[]')::text AS message_quote_entities_json,
COALESCE(m.quote_offset, 0)::int AS message_quote_offset,
COALESCE(m.reply_external, '{}'::jsonb)::text AS message_reply_external_json,
COALESCE(m.fwd_from_peer_type, '')::text AS message_fwd_from_peer_type,
COALESCE(m.fwd_from_peer_id, 0)::bigint AS message_fwd_from_peer_id,
COALESCE(m.fwd_from_name, '')::text AS message_fwd_from_name,
@ -224,6 +225,7 @@ SELECT
message_quote_text,
message_quote_entities_json,
message_quote_offset,
message_reply_external_json,
message_fwd_from_peer_type,
message_fwd_from_peer_id,
message_fwd_from_name,
@ -401,6 +403,7 @@ base AS (
COALESCE(m.quote_text, '')::text AS message_quote_text,
COALESCE(m.quote_entities::text, '[]')::text AS message_quote_entities_json,
COALESCE(m.quote_offset, 0)::int AS message_quote_offset,
COALESCE(m.reply_external, '{}'::jsonb)::text AS message_reply_external_json,
COALESCE(m.fwd_from_peer_type, '')::text AS message_fwd_from_peer_type,
COALESCE(m.fwd_from_peer_id, 0)::bigint AS message_fwd_from_peer_id,
COALESCE(m.fwd_from_name, '')::text AS message_fwd_from_name,
@ -486,6 +489,7 @@ SELECT
message_quote_text,
message_quote_entities_json,
message_quote_offset,
message_reply_external_json,
message_fwd_from_peer_type,
message_fwd_from_peer_id,
message_fwd_from_name,