From 6da4834b715a87c3ae03bec06b8a23862a8bee53 Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Mon, 26 Dec 2022 01:09:53 +0800
Subject: [PATCH] Change back to limit 1

Sometimes, there's really just one new status update.
---
 src/app.jsx        | 3 +--
 src/pages/home.jsx | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/app.jsx b/src/app.jsx
index 932332b8..1e1eb9e5 100644
--- a/src/app.jsx
+++ b/src/app.jsx
@@ -120,8 +120,7 @@ function startVisibility() {
           (async () => {
             try {
               const fetchHome = masto.v1.timelines.listHome({
-                limit: 2,
-                // Need 2 because "new posts" only appear when there are 2 or more
+                limit: 1,
               });
               const fetchNotifications = masto.v1.notifications.list({
                 limit: 1,
diff --git a/src/pages/home.jsx b/src/pages/home.jsx
index fe232d69..57aaec13 100644
--- a/src/pages/home.jsx
+++ b/src/pages/home.jsx
@@ -110,7 +110,7 @@ function Home({ hidden }) {
               <Icon icon="notification" size="l" alt="Notifications" />
             </a>
           </div>
-          {snapStates.homeNew.length > 1 && (
+          {snapStates.homeNew.length > 0 && (
             <button
               class="updates-button"
               type="button"