-
-
Notifications
You must be signed in to change notification settings - Fork 24
Cleaned up usage of 'index' #546
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
Conversation
ref https://linear.app/ghost/issue/AP-902 Since we now allow usernames to not be 'index' - but we want to maintain 'index' as the identitifier in the path - we need to hardcode these URL's to use 'index' in them. When we eventually have multiple users per site, we will switch to the UUID for the identitifier in the path. For now we want a single codepath, so we don't need to switch on index vs uuid or index vs someother username. This keeps things simple and easier to reason about when we do finally migrate to multiple users.
ref https://linear.app/ghost/issue/AP-902 This code path is no longer necessary as it's the old kv store inbox being updated, and it refers to the old 'index' user which we want to clean up. I haven't been able to remove all references to the old kv store inbox as the tests often rely on it, but in this case they didn't
ref https://linear.app/ghost/issue/AP-902 This relied on the hardcoded 'index' via the DEFAULT_ACTOR_HANDLE. This also stops the actor from being updated on each fetch for the site data.
WalkthroughThis set of changes refactors several components related to ActivityPub account and site actor handling. The URL construction logic in the Within the ActivityPub dispatching logic, conditional checks and user data retrieval related to reply targets in the The 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
💤 Files with no reviewable changes (2)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This doesn't clean up all places - we still have a lot of usage that should be cleaned up as we go