Skip to contents

Convert a mastodon user link to handle

Usage

fmt_masto(x)

Arguments

x

Character. Link to user's profile

Value

Character user handle @user@instance

Examples

if (FALSE) { # local_eg()
fmt_masto("https://fosstodon.org/@steffilazerte")
fmt_masto("steffi lazerte")
fmt_masto("@steffilazerte@fosstodon.org")
fmt_masto(NA)
fmt_masto(c("https://fosstodon.org/@steffilazerte", "https://hackyderm.io/@ropensci"))
fmt_masto("none")
}