0) { foreach (chat_read() ?: [] as $m) { if (($m['id'] ?? 0) === $id) { $msg['reply'] = ['id' => $id, 'name' => (string)($m['name'] ?? ''), 'text' => $replySnippet($m['text'] ?? '')]; } } } return $msg; }); chat_on('msg_top', function ($html, $msg) { $r = $msg['reply'] ?? null; if (!is_array($r)) return $html; return $html . '