-
-
Notifications
You must be signed in to change notification settings - Fork 22
Update AccountService.recordAccountFollow to use Account entity
#461
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
WalkthroughThe pull request updates several parts of the account-related code. The import statements for the Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (12)
🧰 Additional context used🧬 Code Definitions (4)src/activitypub/followers.service.integration.test.ts (1)
src/feed/feed.service.integration.test.ts (2)
src/account/account.service.integration.test.ts (1)
src/dispatchers.ts (1)
🔇 Additional comments (20)
✨ 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 (
|
| account.bio, | ||
| account.avatar_url ? new URL(account.avatar_url) : null, | ||
| account.banner_image_url ? new URL(account.banner_image_url) : null, | ||
| null, // site |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AccountType doesn't have the site data, so we should in theory be safe to leave this as null as anywhere that is using AccountType currently won't be accessing the site. We could pass the site as another argument to the fn if needed?
|
Closing this in favour of modelling the follow / unfollow functionality within the account entity |
refs https://github.com/TryGhost/ActivityPub/pull/441/files#diff-fb5a965e319e4cc068e247181f63852dc961379121ca4cad8a64a70d025866a5
Accounttype to haveuuidas this was missingasAccountEntityhelper that mapsAccounttype toAccountentityAccountService.recordAccountFollowto acceptAccountentity instead ofAccounttype