Thread viewer for Bluesky

show info when replies are limited in a thread

+5
models.js
··· 386 return shouldHaveMoreReplies && (this.replies.length > 0 || (this.level !== undefined && this.level <= 4)); 387 } 388 389 /** @returns {number} */ 390 get repostCount() { 391 return castToInt(this.data.repostCount);
··· 386 return shouldHaveMoreReplies && (this.replies.length > 0 || (this.level !== undefined && this.level <= 4)); 387 } 388 389 + /** @returns {boolean} */ 390 + get isRestrictingReplies() { 391 + return !!(this.data.threadgate && this.data.threadgate.record.allow); 392 + } 393 + 394 /** @returns {number} */ 395 get repostCount() { 396 return castToInt(this.data.repostCount);
+5
post_component.js
··· 348 stats.append(quotesLink); 349 } 350 351 return stats; 352 } 353
··· 348 stats.append(quotesLink); 349 } 350 351 + if (this.context == 'thread' && this.post.isRestrictingReplies) { 352 + let span = $tag('span', { html: `<i class="fa-solid fa-ban"></i> Limited replies` }); 353 + stats.append(span); 354 + } 355 + 356 return stats; 357 } 358