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

Feature request: provide a configurable two-ways mapping table of accounts #73

Open
nfrankel opened this issue Feb 20, 2023 · 4 comments

Comments

@nfrankel
Copy link

When I tag users on Twitter, the Mastodon sync prefixes the tag with / to avoid any clash.

As a user, I'd like to be able to override this behavior with a file with known accounts.

For example, if I tweet the following "Hello @nicolas_frankel", I'd like the sync code to toot the following "Hello @[email protected]".

The configuration should bind @nicolas_frankel to @[email protected] and vice versa.

@nemobis
Copy link

nemobis commented Mar 6, 2023

This would also be useful for cross-posting accounts like https://social.network.europa.eu/@ombudsman/109975531716133486 which often mention other accounts which exist on their local Mastodon instance but with a different username.

@nfrankel
Copy link
Author

nfrankel commented Jun 4, 2023

Ping @klausi. I wouldn't mind working on this feature, if you provide the guidelines.

@klausi
Copy link
Owner

klausi commented Jun 4, 2023

I think this would make sense! There could be some complications to detect that a tweet and toot is equal in subsequent runs, so we will need good test coverage where we check replacements.

An interesting addition to this would be to check the Twitter/Mastodon bio description of an account and automatically add to this mapping configuration. But maybe let's not overcomplicate things here and first do manual mapping from a mapping config file.

As for guidelines: I would prefer that we separate the config storage logic from the sync logic (similar as we do with the main config file), so that we have an easy time setting up the testing.

@nfrankel
Copy link
Author

nfrankel commented Jun 4, 2023

An interesting addition to this would be to check the Twitter/Mastodon bio description of an account and automatically add to this mapping configuration. But maybe let's not overcomplicate things here and first do manual mapping from a mapping config file.

100%

There could be some complications to detect that a tweet and toot is equal in subsequent runs, so we will need good test coverage where we check replacements.

Perhaps instead of the content, we should write the tweet/toot ID? I think that would be the first step. WDYT.

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

No branches or pull requests

3 participants