mirror of
https://github.com/muesli/telephant
synced 2025-02-17 03:58:25 +00:00
Retrieve 40 notifications & posts initially
This commit is contained in:
parent
673c72ec2e
commit
a8951b1a46
1 changed files with 3 additions and 3 deletions
|
@ -14,8 +14,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
initialFeedCount = 200
|
initialFeedCount = 40
|
||||||
initialNotificationsCount = 50
|
initialNotificationsCount = 40
|
||||||
)
|
)
|
||||||
|
|
||||||
// Account is a Mastodon account for Chirp.
|
// Account is a Mastodon account for Chirp.
|
||||||
|
@ -105,7 +105,7 @@ func (mod *Account) Run(eventChan chan interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tt, err := mod.client.GetTimelineHome(context.Background(), &mastodon.Pagination{
|
tt, err := mod.client.GetTimelineHome(context.Background(), &mastodon.Pagination{
|
||||||
Limit: initialNotificationsCount,
|
Limit: initialFeedCount,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue