Actions115
- Account Actions
- Announcements Actions
- Apps Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Canonical Email Blocks Actions
- Cohorts Actions
- Conversations Actions
- Custom Emojis Actions
- Directory Actions
- Domains (Allowed) Actions
- Domains (Blocked) Actions
- Domains (Email Blocked) Actions
- Emails Actions
- Endorsements Actions
- Favourites Actions
- Featured Tags Actions
- Filters Actions
- Follow Requests Actions
- Followed Tags Actions
- Instance Actions
- IPs Actions
- Lists Actions
- Markers Actions
- Measures Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- oEmbed Actions
- Polls Actions
- Preferences Actions
- Profile Actions
- Proofs Actions
- Push Actions
- Reports Actions
- Retention Actions
- Scheduled Statuses Actions
- Search Actions
- Status Actions
- Streaming Actions
- Suggestions Actions
- Tags Actions
- Timeline Actions
Domains (Blocked) → Block Domain
AI-generatedOverview
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
- Blocking a spammy domain to prevent its content from appearing on the Mastodon instance.
- Suspending a domain that repeatedly violates community rules by setting the severity to 'Suspend'.
- 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.