View Source Bonfire.Boundaries.Blocks (bonfire v0.3.5-classic-beta.6)

Link to this section Summary

Functions

Block something for everyone on the instance (only for admins)

Checks if a user_or_instance is blocked Pass a block_type (eg :silence or :ghost) Pass a current_user in opts or check :instance_wide

Link to this section Functions

Link to this function

block(user_or_instance_to_block, block_type, opts)

View Source
Link to this function

instance_wide_block(user_or_instance_to_block, block_type)

View Source

Block something for everyone on the instance (only for admins)

Link to this function

instance_wide_circles(block_types)

View Source
Link to this function

is_blocked?(user_or_instance, block_type \\ :any, opts \\ [])

View Source

Checks if a user_or_instance is blocked Pass a block_type (eg :silence or :ghost) Pass a current_user in opts or check :instance_wide

Link to this function

unblock(user_or_instance_to_block, block_type, opts)

View Source