Type Alias LocalUser

LocalUser: {
    accepted_application: boolean;
    admin: boolean;
    auto_mark_fetched_posts_as_read: boolean;
    blur_nsfw: boolean;
    collapse_bot_comments: boolean;
    default_comment_sort_type: CommentSortType;
    default_listing_type: ListingType;
    default_post_sort_type: PostSortType;
    default_post_time_range_seconds?: number;
    email?: SensitiveString;
    email_verified: boolean;
    enable_animated_images: boolean;
    enable_keyboard_navigation: boolean;
    enable_private_messages: boolean;
    hide_media: boolean;
    id: LocalUserId;
    infinite_scroll_enabled: boolean;
    interface_language: string;
    last_donation_notification: string;
    open_links_in_new_tab: boolean;
    person_id: PersonId;
    post_listing_mode: PostListingMode;
    send_notifications_to_email: boolean;
    show_avatars: boolean;
    show_bot_accounts: boolean;
    show_nsfw: boolean;
    show_read_posts: boolean;
    theme: string;
    totp_2fa_enabled: boolean;
}

A local user.

Type declaration

  • accepted_application: boolean

    Whether their registration application has been accepted.

  • admin: boolean

    Whether the person is an admin.

  • auto_mark_fetched_posts_as_read: boolean

    Whether to automatically mark fetched posts as read.

  • blur_nsfw: boolean
  • collapse_bot_comments: boolean

    Whether to auto-collapse bot comments.

  • default_comment_sort_type: CommentSortType
  • default_listing_type: ListingType
  • default_post_sort_type: PostSortType
  • Optionaldefault_post_time_range_seconds?: number

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

  • Optionalemail?: SensitiveString
  • email_verified: boolean

    Whether their email has been verified.

  • enable_animated_images: boolean

    Whether user avatars and inline images in the UI that are gifs should be allowed to play or should be paused

  • enable_keyboard_navigation: boolean

    Whether to allow keyboard navigation (for browsing and interacting with posts and comments).

  • enable_private_messages: boolean

    Whether a user can send / receive private messages

  • hide_media: boolean

    Whether to hide posts containing images/videos

  • id: LocalUserId
  • infinite_scroll_enabled: boolean

    Whether infinite scroll is enabled.

  • interface_language: string
  • last_donation_notification: string

    The last time a donation request was shown to this user. If this is more than a year ago, a new notification request should be shown.

  • open_links_in_new_tab: boolean

    Open links in a new tab.

  • person_id: PersonId

    The person_id for the local user.

  • post_listing_mode: PostListingMode

    A post-view mode that changes how multiple post listings look.

  • send_notifications_to_email: boolean
  • show_avatars: boolean

    Whether to show avatars.

  • show_bot_accounts: boolean

    Whether to show bot accounts.

  • show_nsfw: boolean

    Whether to show NSFW content.

  • show_read_posts: boolean

    Whether to show read posts.

  • theme: string
  • totp_2fa_enabled: boolean