Skip to content

Re-introduce list search for blocked and blocked by #211

@thieflord06

Description

@thieflord06

We previously had to remove this feature but now that we are back stable we can bring it back. before, the search was client side because it was fetching the whole list, now it is dynamically fetching based on scroll so we will have to use the API endpoint to get the data. I would recommend we use the same autocomplete that is being used on the home page to get the handle, searching for partials is expensive.

Endpoint: /api/v1/anon/blocklist-search-blocked/{handle1}/{handle2}
Description: Get if handle 1 blocked by handle 2
Parameters: handle 1 & handle 2
Response:
{
"data":
{
"blocked_date":"2023-10-23T22:17:42.214000+00:00",
"handle":"desir.ee",
"status":true
}
}

/api/v1/anon/blocklist-search-blocking/{handle1}/{handle2}
Description: Get if handle 1 is blocked by handle 2
Parameters: handle 1 & handle 2

Response:
{
"data":
{
"blocked_date":"2024-03-05T22:40:37.498000+00:00",
"handle":"mary.my.id",
"status":true
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmodificationA change in the way a current operation works

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions