Skip to content

Filter friend suggestions to avoid blacklisted users#24

Open
konard wants to merge 3 commits into
mainfrom
issue-8-118079a6
Open

Filter friend suggestions to avoid blacklisted users#24
konard wants to merge 3 commits into
mainfrom
issue-8-118079a6

Conversation

@konard

@konard konard commented Oct 17, 2025

Copy link
Copy Markdown
Owner

Fixes #8

Problem

The script was failing with error 15 when calling friends.getMutual:

{
  "execute_errors": [
    {
      "method": "friends.getMutual",
      "error_code": 15,
      "error_msg": "Access denied: you are in users blacklist"
    }
  ]
}

This error occurs when trying to get mutual friends with users who have blacklisted the current user.

Solution

  • Added blacklisted field to the friends.getSuggestions request
  • Filter out suggestions where blacklisted == 1 before calling friends.getMutual
  • This prevents API calls to users who have blacklisted the current user

Changes

  • Updated Application/acceptBestSuggestion.js:
    • Added blacklisted to the fields parameter in line 3
    • Added !suggestion.blacklisted check in the condition on line 9

The script now skips users who have blacklisted the current user, avoiding the error 15 completely.

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: undefined
@konard konard self-assigned this Oct 17, 2025
konard and others added 2 commits October 17, 2025 19:03
Prevent error 15 "Access denied: you are in users blacklist" by checking the blacklisted field before calling friends.getMutual API method.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Filter best friend suggestions to avoid addition of people who have blacklisted the current user Filter friend suggestions to avoid blacklisted users Oct 17, 2025
@konard
konard marked this pull request as ready for review October 17, 2025 16:04
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.

Filter best friend suggestions to avoid addition of people who have blacklisted the current user

1 participant