Merge pull request #1057 from meysam81/meysam/fix/address-x-thread-finisher-html-marker

fix: Twitter/X thread finisher posting with HTML tags
This commit is contained in:
Nevo David 2025-11-19 14:29:15 +07:00 committed by GitHub
commit 725ce402cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -405,7 +405,11 @@ export class XProvider extends SocialAbstract implements SocialProvider {
await this.runInConcurrent(async () =>
client.v2.tweet({
text:
postDetails?.[0]?.settings?.thread_finisher! +
stripHtmlValidation(
'normal',
postDetails?.[0]?.settings?.thread_finisher!,
true
) +
'\n' +
ids[0].releaseURL,
reply: { in_reply_to_tweet_id: ids[ids.length - 1].postId },