From 32f2e3f1ed48d2e36043d2ab1fa1cb6c08e46c5d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 13 Mar 2025 13:11:37 +0800 Subject: [PATCH] :recycle: Use trends statues api instead of public timeline in mastodon fetching --- pkg/internal/services/mastodon/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/mastodon/fetch.go b/pkg/internal/services/mastodon/fetch.go index 7eac2d7..f59955b 100644 --- a/pkg/internal/services/mastodon/fetch.go +++ b/pkg/internal/services/mastodon/fetch.go @@ -59,7 +59,7 @@ func (v MastodonPost) ToFediversePost() models.FediversePost { } func FetchTimeline(server string, limit int) ([]MastodonPost, error) { - url := fmt.Sprintf("%s/api/v1/timelines/public?limit=%d", server, limit) + url := fmt.Sprintf("%s/api/v1/trends/statuses?limit=%d", server, limit) log.Debug().Str("url", url).Msg("Fetching mastodon timeline...") resp, err := http.Get(url)