Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: handle long tweet #1339

Merged
merged 8 commits into from
Dec 27, 2024
Merged

feat: handle long tweet #1339

merged 8 commits into from
Dec 27, 2024

Conversation

tcm390
Copy link
Collaborator

@tcm390 tcm390 commented Dec 21, 2024

related:
#1178

This PR handles long tweets as follows:

  1. Check if the post is a long post. If it’s not, proceed with a normal tweet. Otherwise, use the sendNoteTweet method for long tweets.
  2. If sendNoteTweet fails, truncate the post and fall back to using a normal tweet.

test result:

  1. non-verfied user post: https://x.com/IBGDRGNAI/status/1870505476284469692
  2. verified user post: https://x.com/JayChou11879/status/1870505908834615527

Copy link
Collaborator

@odilitime odilitime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, important fix in there too

@odilitime odilitime changed the title handle long tweet feat: handle long tweet Dec 21, 2024
@odilitime
Copy link
Collaborator

odilitime commented Dec 21, 2024

duplicate of #1335 draft

@odilitime
Copy link
Collaborator

Duplicate of #1329 too?

@tcm390
Copy link
Collaborator Author

tcm390 commented Dec 21, 2024

Duplicate of #1329 too?

Yes @ChristopherTrimboli already had a pr to fix double tweet issue. We should open his pr and merge his pr first: #1329

@ChristopherTrimboli
Copy link
Collaborator

Duplicate of #1329 too?

Yes @ChristopherTrimboli already had a pr to fix double tweet issue. We should open his pr and merge his pr first

im fine, I discussed with TCM, honest mistake, in open-source some saltiness if devs get PRs yoinked, but was legit coincidence, idc that much, just a 1 liner. I feel welcome after TCM chat + role upgrade, not worried.

Base automatically changed from develop to main December 22, 2024 07:01
@shakkernerd shakkernerd changed the base branch from main to develop December 22, 2024 08:23
@tcm390
Copy link
Collaborator Author

tcm390 commented Dec 27, 2024

resolved conflict and tested

verified account: https://x.com/JayChou11879/status/1872688847106044244
non-verified-account: https://x.com/IBGDRGNAI/status/1872689915114475839

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants