Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

User ID detection #4

Open
MaddyUnderStars opened this issue Jul 3, 2022 · 0 comments
Open

User ID detection #4

MaddyUnderStars opened this issue Jul 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@MaddyUnderStars
Copy link
Owner

How can we better detect which IDs Fosscord controls? Currently, we add every ID given to us through gateway or api to a huge list of controlled IDs for each client, however this has a few problems:

  • IDs are not unique across instances, which may lead to false redirections
  • We may not have an ID in our list before we have to redirect it

The current solution has it's problems, but it's 'fast enough', probably.
A new solution that may or may not be slower is to create some sort of new ID that encodes the old ID and the instance it came from.
It would be best to keep it all numerical, because some instances, applications, whatever may assume they are.

@MaddyUnderStars MaddyUnderStars added the enhancement New feature or request label Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant