Type Alias LocalSite

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;
    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_donation_dialog: boolean;
    federation_enabled: boolean;
    federation_signed_fetch: boolean;
    hide_modlog_mod_names: boolean;
    id: LocalSiteId;
    legal_information?: string;
    oauth_registration: boolean;
    post_downvotes: FederationMode;
    post_upvotes: FederationMode;
    private_instance: boolean;
    published: string;
    registration_mode: RegistrationMode;
    reports_email_admins: boolean;
    require_email_verification: boolean;
    site_id: SiteId;
    site_setup: boolean;
    slur_filter_regex?: string;
    updated?: string;
}

The local site.

Type declaration

  • actor_name_max_length: number

    The max actor name length.

  • application_email_admins: boolean

    Whether new applications email admins.

  • Optionalapplication_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.

  • 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: PostListingMode

    Default value for [LocalSite.post_listing_mode]

  • default_post_listing_type: ListingType
  • default_post_sort_type: PostSortType

    Default value for [LocalUser.post_sort_type]

  • Optionaldefault_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_donation_dialog: boolean

    If this is true, users will never see the dialog asking to support Lemmy development with donations.

  • 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.

  • hide_modlog_mod_names: boolean

    Whether to hide mod names on the modlog.

  • id: LocalSiteId
  • Optionallegal_information?: string

    An optional legal disclaimer page.

  • oauth_registration: boolean

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

  • post_downvotes: FederationMode

    What kind of post downvotes your site allows.

  • post_upvotes: FederationMode

    What kind of post upvotes your site allows.

  • private_instance: boolean

    Whether the instance is private or public.

  • published: 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.

  • Optionalslur_filter_regex?: string

    An optional regex to filter words.

  • Optionalupdated?: string