From 8254313ebe6e65535ff35631d4c8f3baefc24779 Mon Sep 17 00:00:00 2001
From: snow flurry <snow@datagirl.xyz>
Date: Sun, 2 Mar 2025 14:41:19 -0800
Subject: [PATCH] topic_mute: Fix options not appearing

---
 plugin/topic_mute/src/Subs-TopicMute.php             | 12 +++++++-----
 .../topic_mute/src/languages/TopicMute.english.php   |  2 +-
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/plugin/topic_mute/src/Subs-TopicMute.php b/plugin/topic_mute/src/Subs-TopicMute.php
index ffc43ec..d074a8a 100644
--- a/plugin/topic_mute/src/Subs-TopicMute.php
+++ b/plugin/topic_mute/src/Subs-TopicMute.php
@@ -114,15 +114,17 @@ function mute_theme_option()
     }
 
     $option = array(
-        'id' => 'topic_mute_roadblock',
-        'label' => $txt['topic_mute_roadblock'],
-        'default' => false,
+        array(
+            'id' => 'topic_mute_roadblock',
+            'label' => $txt['topic_mute_roadblock'],
+            'default' => false,
+        ),
     );
 
     $context['theme_options'] = array_merge(
-        array_slice($context['theme_options'], 0, $posting_idx - 1, true),
+        array_slice($context['theme_options'], 0, $posting_idx, true),
         $option,
-        array_slice($context['theme_options'], $posting_idx - 1, null, true),
+        array_slice($context['theme_options'], $posting_idx, null, true),
     );
 }
 
diff --git a/plugin/topic_mute/src/languages/TopicMute.english.php b/plugin/topic_mute/src/languages/TopicMute.english.php
index 36f1b31..bee4545 100644
--- a/plugin/topic_mute/src/languages/TopicMute.english.php
+++ b/plugin/topic_mute/src/languages/TopicMute.english.php
@@ -2,6 +2,6 @@
 
 $txt['mute_topic'] = 'Mute Topic';
 $txt['unmute_topic'] = 'Unmute Topic';
-$txt['topic_mute_roadblock'] = 'Present an option to show muted threads';
+$txt['topic_mute_roadblock'] = 'Hide the option to show muted threads';
 
 ?>