Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Filters → Create Filter

AI-generated

Overview

This node operation creates a filter on a Mastodon instance. It allows users to specify a phrase to filter and the contexts where the filter should be applied, such as Home, Notifications, Public, or Thread timelines. Additional options include making the filter irreversible or matching whole words only. This is useful for users who want to automatically filter out certain content or phrases from their Mastodon feed or notifications.

Use Case Examples

  1. Create a filter to block a specific phrase from appearing in the Home timeline.
  2. Set up a filter that applies to Notifications and is irreversible to prevent certain notifications from showing up.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to.
Authentication Type The method used to authenticate with the Mastodon instance, either OAuth2 or Access Token.
Phrase The phrase to filter in the Mastodon content.
Context The contexts where the filter should be applied, such as Home, Notifications, Public, or Thread.
Additional Fields Optional additional settings for the filter, including whether the filter is irreversible and whether to match whole words only.

Output

JSON

  • json - The created filter object returned from the Mastodon API.

Dependencies

  • Requires authentication credentials for Mastodon API, either OAuth2 or Access Token.

Troubleshooting

  • Ensure that the correct authentication type is selected and corresponding credentials are provided; OAuth2 is required for authentication operations.
  • If the node throws an error about missing credentials, verify that the Mastodon credentials are properly configured in n8n.
  • Errors about unsupported operations or resources indicate a mismatch between selected resource/operation and implemented methods.

Discussion