lemmy-js-client
    Preparing search index...

    Type Alias LocalSite

    The local site.

    type LocalSite = {
        actor_name_max_length: number;
        application_email_admins: boolean;
        application_question?: string;
        captcha_difficulty: string;
        captcha_enabled: boolean;
        comment_downvotes: FederationMode;
        comment_upvotes: FederationMode;
        comments: number;
        communities: number;
        community_creation_admin_only: boolean;
        default_comment_sort_type: CommentSortType;
        default_post_listing_mode: PostListingMode;
        default_post_listing_type: ListingType;
        default_post_sort_type: PostSortType;
        default_post_time_range_seconds?: number;
        default_theme: string;
        disable_email_notifications: boolean;
        disallow_nsfw_content: boolean;
        federation_enabled: boolean;
        federation_signed_fetch: boolean;
        id: LocalSiteId;
        legal_information?: string;
        multi_comm_follower: PersonId;
        oauth_registration: boolean;
        post_downvotes: FederationMode;
        post_upvotes: FederationMode;
        posts: number;
        private_instance: boolean;
        published_at: string;
        registration_mode: RegistrationMode;
        reports_email_admins: boolean;
        require_email_verification: boolean;
        site_id: SiteId;
        site_setup: boolean;
        slur_filter_regex?: string;
        suggested_communities?: MultiCommunityId;
        updated_at?: string;
        users: number;
        users_active_day: number;
        users_active_half_year: number;
        users_active_month: number;
        users_active_week: number;
    }
    Index

    Properties

    actor_name_max_length: number

    The max actor name length.

    application_email_admins: boolean

    Whether new applications email admins.

    application_question?: string

    An optional registration application questionnaire in markdown.

    captcha_difficulty: string

    The captcha difficulty.

    captcha_enabled: boolean

    Whether captcha is enabled.

    comment_downvotes: FederationMode

    What kind of comment downvotes your site allows.

    comment_upvotes: FederationMode

    What kind of comment upvotes your site allows.

    comments: number
    communities: number
    community_creation_admin_only: boolean

    Whether only admins can create communities.

    default_comment_sort_type: CommentSortType

    Default value for [LocalUser.comment_sort_type]

    default_post_listing_mode

    default_post_listing_mode: PostListingMode

    Default value for [LocalSite.post_listing_mode]

    default_post_listing_type

    default_post_listing_type: ListingType

    default_post_sort_type

    default_post_sort_type: PostSortType

    Default value for [LocalUser.post_sort_type]

    Optionaldefault_post_time_range_seconds

    default_post_time_range_seconds?: number

    A default time range limit to apply to post sorts, in seconds.

    default_theme: string

    The default front-end theme.

    disable_email_notifications: boolean

    Dont send email notifications to users for new replies, mentions etc

    disallow_nsfw_content: boolean

    Block NSFW content being created

    federation_enabled: boolean

    Whether federation is enabled.

    federation_signed_fetch: boolean

    Whether to sign outgoing Activitypub fetches with private key of local instance. Some Fediverse instances and platforms require this.

    legal_information?: string

    An optional legal disclaimer page.

    multi_comm_follower: PersonId
    oauth_registration: boolean

    Whether or not external auth methods can auto-register users.

    post_downvotes

    post_downvotes: FederationMode

    What kind of post downvotes your site allows.

    post_upvotes

    post_upvotes: FederationMode

    What kind of post upvotes your site allows.

    posts: number
    private_instance: boolean

    Whether the instance is private or public.

    published_at: string
    registration_mode: RegistrationMode
    reports_email_admins: boolean

    Whether to email admins on new reports.

    require_email_verification: boolean

    Whether emails are required.

    site_id: SiteId
    site_setup: boolean

    True if the site is set up.

    slur_filter_regex?: string

    An optional regex to filter words.

    suggested_communities?: MultiCommunityId
    updated_at?: string
    users: number
    users_active_day: number

    The number of users with any activity in the last day.

    users_active_half_year: number

    The number of users with any activity in the last half year.

    users_active_month: number

    The number of users with any activity in the last month.

    users_active_week: number

    The number of users with any activity in the last week.