createCommentSession

fun LiveLikeKotlin.createCommentSession(commentBoardId: String, profaneComment: ProfaneComment = ProfaneComment.FILTERED, filteredTextForComment: (Comment) -> String? = null, delegate: CommentLocalCacheDelegate? = null, excludeInactiveProfile: Boolean = false, repliesLimit: Int? = null, withoutReportedThread: Boolean? = null, inlineRepliesOrdering: InlineRepliesSorting? = null, excludeCommentReportThreshold: Int? = null): LiveLikeCommentSession

Creates a comment session for a board.

Captures LiveLikeKotlin.preferAnonymousRequests for this session and its internal client. Close and recreate the session to apply changes. Anonymous sessions do not restore or save the shared local comment cache; ownership fields still use the local profile.

Parameters

repliesLimit

optional number of replies to include inline for each top-level comment. Values greater than MAX_REPLIES_LIMIT are rejected by the comments API client. Omit this value to preserve the existing behaviour and not request inline reply previews.

withoutReportedThread

Deprecated. Use excludeCommentReportThreshold instead: 1 for enabled filtering, null to omit filtering. When true, omits reported comments without replies from lists and counts, preserving reported parents with replies. Applies to session reply requests too. Null leaves the existing API behaviour unchanged. Filtered sessions bypass the unkeyed local cache.

inlineRepliesOrdering

ordering for inline previews requested with repliesLimit. Null follows the main comment ordering. Does not change separately loaded reply ordering. Sessions with an explicit inline ordering bypass the unkeyed local cache.

excludeCommentReportThreshold

positive pending-report threshold for excluding leaf comments from lists and counts, including replies. Null omits this filter. Sessions using a threshold bypass the unkeyed local cache. Does not change withoutReportedThread.