Skip to content

Conversation

@fifty
Copy link

@fifty fifty commented Aug 12, 2023

No description provided.

@Phineas
Copy link
Owner

Phineas commented Sep 9, 2023

Hey Matthew, hope you're doing well!

Thanks for writing this impl, tested it locally and works great. Could you fix these tests if possible? Will merge after.

prefix_definition = self.prefixes.get(prefix)
secure_prefix = f"s_{uuid.uuid4().hex}_" if prefix_definition and prefix_definition.secure else ''

tail = base64.urlsafe_b64encode(f"{secure_prefix}{snowflake}".encode()).decode()
Copy link
Owner

Choose a reason for hiding this comment

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

Could you strip the padding from the b64encode? (ig just rstrip('=')) Pikas are meant to be alphanumeric

Copy link
Author

Choose a reason for hiding this comment

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

Ofc, will take a look sometime this week :)

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