diff --git a/src/components/posts/PostFooter.svelte b/src/components/posts/PostFooter.svelte
index d6ad446..ea72712 100644
--- a/src/components/posts/PostFooter.svelte
+++ b/src/components/posts/PostFooter.svelte
@@ -88,10 +88,12 @@
{/if}
{#if post.isRestrictingReplies}
+ {@const label = (post.hasDisabledReplies) ? "Disabled replies" : "Limited replies"}
+
{#if placement == 'thread'}
- Limited replies
+ {label}
{:else if placement == 'quotes'}
-
+
{/if}
{/if}
diff --git a/src/models/posts.js b/src/models/posts.js
index d05c90c..fda6dc5 100644
--- a/src/models/posts.js
+++ b/src/models/posts.js
@@ -424,6 +424,11 @@ export class Post extends BasePost {
return !!(this.data.threadgate && this.data.threadgate.record.allow);
}
+ /** @returns {boolean} */
+ get hasDisabledReplies() {
+ return !!(this.data.threadgate && this.data.threadgate.record.allow !== undefined && this.data.threadgate.record.allow.length == 0);
+ }
+
/** @returns {number} */
get repostCount() {
return castToInt(this.data.repostCount);