Tooot.im Federation Restrictions and Local Emoji

Author

aRubes@tooot.im

Published

2024-02-20

Federation Restrictions

Code
Restrictions <- rtoot::get_instance_blocks("tooot.im")
Restrictions <- Restrictions[, -2]
Restrictions <-
     reactable(
          Restrictions,
          groupBy = "severity",
          filterable = T,
          sortable = T,
          searchable = T,
          defaultPageSize = 30,
          highlight = T,
          striped = T,
          showSortable = T
     ) 

Restrictions

Local Emoji

Tip

Be sure to add ‘:’ before and after the shortcode

Code
emojis <-
     get_instance_emoji("tooot.im") |> relocate("category") |> arrange(category)
emojis <- emojis |> reactable(
     columns = list(
       url = colDef(cell = function(value) {
         htmltools::tags$img(src = value, width = "50px", height = "50px")
       }
       )),
     groupBy = "category",
     filterable = T,
     sortable = T,
     searchable = T,
     defaultPageSize = 30,
     highlight = T,
     striped = T,
     showSortable = T
    ) 

emojis