def METHOD_NAME(
    request: HttpRequest, follow_id: int, check: str, conf_slug: Optional[str] = None
):
    configuration = get_configuration(conf_slug)
    try:
        follower = configuration.model.objects.get(id=int(follow_id))
    except configuration.model.DoesNotExist:
        messages.add_message(
            request,
            messages.INFO,
            _("This follow subscription does not exist anymore."),
        )
        return redirect("/")
    if follower.check_and_unfollow(check):
        messages.add_message(
            request, messages.INFO, _("You are not following this request anymore.")
        )
    else:
        messages.add_message(
            request,
            messages.ERROR,
            _("There was something wrong with your link. Perhaps try again."),
        )
    return redirect(follower.content_object)