gitroomhq / postiz-app

📨 The ultimate social media scheduling tool, with a bunch of AI 🤖
https://postiz.com
Apache License 2.0
13.65k stars 2.38k forks source link

X/Twitter Threads Creation #275

Open MikeKMiller opened 2 months ago

MikeKMiller commented 2 months ago

🔖 Feature description

It would be great to have a feature that enables the creation of X/Twitter threads by posting all the content in a single post using a specific delimiter (like "///") to indicate where tweets should be split.

🎤 Why is this feature needed ?

In my use case, I often post longer content that fits better as a Twitter thread rather than a single tweet. Having a way to easily write everything in one place and split it up automatically would make the experience smoother and more efficient. It would reduce errors and time spent manually splitting posts.

✌️ How do you aim to achieve this?

It would be great if Postiz could detect a delimiter in the content and automatically split it into individual tweets, making it seamless to publish full threads in one go. This would add to Postiz’s flexibility for managing longer content, especially for Twitter users who rely heavily on threads for engagement.

🔄️ Additional Information

I’ve explored other tools that offer thread creation, but adding this feature to Postiz would streamline the process and reduce the need for additional apps. It’s just a thought that could really enhance the user experience!

👀 Have you spent some time to check if this feature request has been raised before?

Are you willing to submit PR?

None

nevo-david commented 2 months ago

I think Hypefury has it, but I was never quite fond of it. Let's see if it gets some upvotes :)

MikeKMiller commented 1 month ago

Hypefury has the ability to create threads..... but only by character count. Meaning you have to have 280 characters for it to split it, not simply by a delimiter.

jontstaz commented 1 month ago

Is the X integration working for you guys currently?? When I try to link my X account, clicking the "X" icon in the Add Channel modal simply directs me to a 404 error page. Specifically, url.com/undefined. The other sites which I've setup such as Reddit work fine. It's just X.

MikeKMiller commented 1 month ago

Is the X integration working for you guys currently?? When I try to link my X account, clicking the "X" icon in the Add Channel modal simply directs me to a 404 error page. Specifically, url.com/undefined. The other sites which I've setup such as Reddit work fine. It's just X.

Yes, after I added the X API credentials in the docker compose environment section.

Which API type did you setup, X has two types, curious if that could be why?

sy3c4ll commented 1 month ago

@nevo-david I would like to give this a try!

Plan

I plan to implement this feature the following way:

Code

After having a look at the source, I've gathered this can be fixed on the frontend. AddEditModal seems to be relevant in managing editor data, adding comment tabs and defining callbacks, and I plan to specifically modify the changeValue callback function.

Room for improvement

If you approve of my plan, please assign me or otherwise show me your approval so I can get started on the PR! If not, please don't hesitate to tell me, this is my first contribution to open source and I may have made mistakes I'm not aware of. I would hate to accidentally sabotage a codebase as my first 'contribution'.