lemmy-js-client
    Preparing search index...

    Type Alias GetPosts

    Get a list of posts.

    type GetPosts = {
        community_id?: CommunityId;
        community_name?: string;
        hide_media?: boolean;
        limit?: number;
        mark_as_read?: boolean;
        multi_community_id?: MultiCommunityId;
        no_comments_only?: boolean;
        page_back?: boolean;
        page_cursor?: PaginationCursor;
        show_hidden?: boolean;
        show_nsfw?: boolean;
        show_read?: boolean;
        sort?: PostSortType;
        time_range_seconds?: number;
        type_?: ListingType;
    }
    Index

    Properties

    community_id?: CommunityId
    community_name?: string
    hide_media?: boolean

    If false, then show posts with media attached (even if your user setting is to hide them)

    limit?: number
    mark_as_read?: boolean

    Whether to automatically mark fetched posts as read.

    multi_community_id?: MultiCommunityId
    no_comments_only?: boolean

    If true, then only show posts with no comments

    page_back?: boolean
    page_cursor?: PaginationCursor
    show_hidden?: boolean
    show_nsfw?: boolean

    If true, then show the nsfw posts (even if your user setting is to hide them)

    show_read?: boolean

    If true, then show the read posts (even if your user setting is to hide them)

    time_range_seconds?: number

    Filter to within a given time range, in seconds. IE 60 would give results for the past minute. Use Zero to override the local_site and local_user time_range.

    type_?: ListingType