Change back to limit 1

Sometimes, there's really just one new status update.
pull/31/head
Lim Chee Aun 2022-12-26 01:09:53 +08:00
rodzic 9278645069
commit 6da4834b71
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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,

Wyświetl plik

@ -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"