Nothing
#' Block an account
#'
#' @param subject `r template_var_subject()`
#' @param user `r template_var_user()`
#' @param pass `r template_var_pass()`
#' @param auth `r template_var_auth()`
#' @param clean `r template_var_clean()`
#'
#' @concept record
#'
#' @return a [tibble::tibble] of follow information
#' @export
#'
#' @section Lexicon references:
#' [graph/block.json (2024-12-03)](https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/graph/block.json)
#' [repo/createRecord.json (2024-12-02)](https://github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/repo/createRecord.json)
#'
#' @section Function introduced:
#' `v0.2.0` (2024-12-03)
#'
#' @examplesIf has_bluesky_pass() && has_bluesky_user()
#' bs_block(subject = 'nytimes.com')
bs_block <- function(subject,
user = get_bluesky_user(), pass = get_bluesky_pass(),
auth = bs_auth(user, pass), clean = TRUE) {
if (missing(subject)) {
cli::cli_abort('{.arg subject} must not be missing.')
}
if (!is_user_did(subject)) {
subject <- bs_resolve_handle(subject, auth = auth)$did
}
rec <- list(
`$type` = 'app.bsky.graph.block',
'subject' = subject,
createdAt = bs_created_at()
)
bs_create_record(
collection = 'app.bsky.graph.block',
record = rec,
auth = auth,
clean = clean
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.