Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

890 B
Raw Blame
import { Platform } from '@/types/platform';

/** Whether the channel insights offer the post type filter. */
export const showsPostTypeFilter = (platform: string): boolean => {
    switch (platform) {
        case Platform.Instagram:
        case Platform.InstagramFacebook:
        case Platform.Facebook:
        case Platform.TikTok:
        case Platform.Pinterest:
            return true;
        case Platform.Threads:
        case Platform.X:
        case Platform.YouTube:
        case Platform.Bluesky:
        case Platform.Mastodon:
        default:
            return false;
    }
};

/** Whether the per post table tags each post with its type. */
export const showsPostTypeTag = (platform: string): boolean => {
    switch (platform) {
        case Platform.YouTube:
        case Platform.TikTok:
            return false;
        default:
            return true;
    }
};