Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Domains (Blocked) → Block Domain

AI-generated

Overview

This node operation allows users to block a specific domain on a Mastodon instance. It is useful for administrators or users who want to prevent content from certain domains from appearing or interacting within their Mastodon environment. For example, blocking a domain can help reduce spam, prevent harmful content, or enforce community guidelines by restricting media or reports from that domain.

Use Case Examples

  1. Blocking a spammy domain to prevent its content from appearing on the Mastodon instance.
  2. Suspending a domain that repeatedly violates community rules by setting the severity to 'Suspend'.
  3. Rejecting media from a domain known to distribute inappropriate images.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for performing the block operation.
Authentication Type The method used to authenticate with the Mastodon instance, either OAuth2 or Access Token.
Domain The domain name that is to be blocked on the Mastodon instance.
Block Options Additional options to customize the block behavior, including severity level, media rejection, report rejection, and comments.

Output

JSON

  • json - The JSON response from the Mastodon API after attempting to block the specified domain, which may include details of the block or error information.

Dependencies

  • Requires authentication credentials for the Mastodon instance, either OAuth2 or an access token.

Troubleshooting

  • If the node throws an error about missing credentials, ensure that the correct Mastodon OAuth2 or token credentials are selected based on the chosen authentication type.
  • If the operation is 'authentication' but the credentials are not OAuth2, an error will be thrown because authentication operations require OAuth2 credentials.
  • Errors indicating that the operation is not implemented for the resource suggest a misconfiguration or unsupported operation; verify the resource and operation names are correct.

Discussion