kawamataryo / sky-follower-bridge

Instantly find and follow the same users from your X(Twitter) follower on Bluesky.
https://chrome.google.com/webstore/detail/sky-follower-bridge/behhbpbpmailcnfbjagknjngnfdojpko
MIT License
445 stars 13 forks source link

Alternate to #31 #32

Closed lowercase-donkey closed 11 months ago

lowercase-donkey commented 11 months ago

Will work on more browsers than #31, as it doesn't rely on regex.

image

Summary by CodeRabbit

coderabbitai[bot] commented 11 months ago

Walkthrough

The update to the isSimilarUser function introduces a new condition that checks for specific phrases in the bskyProfile description that are followed by the user's account name. If any of these phrases are present, the function now determines that the profiles are not similar by returning false. This enhancement refines the similarity assessment to be more precise in identifying user profiles.

Changes

File Path Change Summary
src/lib/bskyHelpers.ts Added a condition to isSimilarUser to check for specific phrases followed by the user's account name in the bskyProfile description, returning false if found.

🐇 In the code where logic weaves, 🍂

A tweak is made before fall leaves. 🌟

Ensuring profiles are unique and true, 🎩

A rabbit's touch, making all anew! 🌱


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`
kawamataryo commented 11 months ago

This PR change will be released in v0.7.4. Thank you for your contribution.