From: Alviro Iskandar Setiawan <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: GNU/Weeb Mailing List <[email protected]>,
Alviro Iskandar Setiawan <[email protected]>,
Alviro Iskandar Setiawan <[email protected]>
Subject: [PATCH pit v1 1/1] bin/public-inbox-tg: Fix tgMsgIdLookup() argument
Date: Sun, 27 Feb 2022 19:08:49 +0000 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
The argument to tgMsgIdLookup() was wrong, it should be $inReplyTo,
not $msgId, because that's the message we're going to reply.
Fixes: 2d8a719c4c724018c6389bdda8796587ca01145b ("bin/public-inbox-tg: Reflect the replied message on Telegram")
Signed-off-by: Alviro Iskandar Setiawan <[email protected]>
---
bin/public-inbox-tg.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/public-inbox-tg.php b/bin/public-inbox-tg.php
index a453ad5..b6b8491 100644
--- a/bin/public-inbox-tg.php
+++ b/bin/public-inbox-tg.php
@@ -210,7 +210,7 @@ function fx(string $input): int
]
];
- $replyToTgMsgId = $inReplyTo ? tgMsgIdLookup($msgId) : 0;
+ $replyToTgMsgId = $inReplyTo ? tgMsgIdLookup($inReplyTo) : 0;
if (preg_match("/\[.*(?:patch|rfc).*?(?:(\d+)\/(\d+))?\](.+)/i", $subject, $m) &&
preg_match("/diff --git/", $body)) {
--
2.32.0
next prev parent reply other threads:[~2022-02-27 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-27 19:08 [PATCH pit v1 0/1] Fix tgMsgIdLookup() argument Alviro Iskandar Setiawan
2022-02-27 19:08 ` Alviro Iskandar Setiawan [this message]
2022-02-27 20:04 ` Ammar Faizi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220227190849.3908933-2-alviro.iskandar@gnuweeb.org \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox