mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Change back to limit 1
Sometimes, there's really just one new status update.
This commit is contained in:
parent
9278645069
commit
6da4834b71
2 changed files with 2 additions and 3 deletions
|
@ -120,8 +120,7 @@ function startVisibility() {
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const fetchHome = masto.v1.timelines.listHome({
|
const fetchHome = masto.v1.timelines.listHome({
|
||||||
limit: 2,
|
limit: 1,
|
||||||
// Need 2 because "new posts" only appear when there are 2 or more
|
|
||||||
});
|
});
|
||||||
const fetchNotifications = masto.v1.notifications.list({
|
const fetchNotifications = masto.v1.notifications.list({
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
|
|
@ -110,7 +110,7 @@ function Home({ hidden }) {
|
||||||
<Icon icon="notification" size="l" alt="Notifications" />
|
<Icon icon="notification" size="l" alt="Notifications" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{snapStates.homeNew.length > 1 && (
|
{snapStates.homeNew.length > 0 && (
|
||||||
<button
|
<button
|
||||||
class="updates-button"
|
class="updates-button"
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Reference in a new issue