Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add an option to ignore sync of quote tweets #18

Closed
wants to merge 2 commits into from

Conversation

bajtos
Copy link
Contributor

@bajtos bajtos commented May 2, 2020

This is a follow-up for our dicussion in #14. As a short-term solution, until we figure out a better solution in #17, I am proposing to add a new option to disable syncing of quote tweets entirely.

  • Option name: sync_quote_tweets
  • Default value: true (to preserve backwards compatibility)

bajtos added 2 commits May 2, 2020 12:08
- Replace the global constant `DEFAULT_SYNC_OPTIONS` with a factory
  function to obtain a new instance of the options object
- Rework tests using custom options to start with the default options
  and modify only the fields relevant in the test.

With this improvement in place, when we add a new sync option in the
future, existing tests should not need any changes.

Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos
Copy link
Contributor Author

bajtos commented May 3, 2020

I noticed that adding a new sync option is more involved than I'd like to - I had to update many existing tests to provide value for the new option, despite the fact that the new flag is not relevant for those tests. To address this issue and improve the situation for the future, I added a new commit f545072 to rework the way how we are building options in sync.rs tests.

@klausi
Copy link
Owner

klausi commented May 3, 2020

Hm, is disabling quote tweets completely an option many users would want?

I think you just want the old behavior back where we embed the tweet link instead of quoted text? Then I think it would make more sense to close this and work on that option. What would we call that option? embed_quote_tweets = true? Then you could set that option to false to have tweet links again.

@bajtos
Copy link
Contributor Author

bajtos commented May 4, 2020

Hm, is disabling quote tweets completely an option many users would want?

That's a good question. I though that if somebody does not want to sync retweets, then perhaps they may want an option to disable syncing quoted tweets too? Maybe not 🤷

I think you just want the old behavior back where we embed the tweet link instead of quoted text?

Yes, that's the behavior I am ultimately looking for. sync_quote_tweets is a short-term workaround that allows me to start syncing between Twitter and Mastodon before the "old behavior" is implemented.

Then I think it would make more sense to close this and work on that option.

Sure, makes sense. Let's discuss the details in #17 then.

@bajtos bajtos closed this May 4, 2020
@bajtos bajtos deleted the feat/ignore-quote-tweets branch May 4, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants