Mastodon.py icon indicating copy to clipboard operation
Mastodon.py copied to clipboard

Mastodon.trending_statuses and Mastodon.trending_links Each Return One Item

Open pdeitel opened this issue 2 years ago • 3 comments

Hi, I was trying Mastodon.trending_statuses and Mastodon.trending_links methods.

The docs for each say these methods can receive the limit parameter to specify the number of items to return. Both fail with

  `TypeError: got an unexpected keyword argument 'limit'`

when called with a limit argument and both return a dict, not an "Array of" objects, as specified in the Mastodon API.

pdeitel avatar Apr 22 '23 16:04 pdeitel

yep, the parameters are just... missing. Oops. As for return values: huh. Will have to check that.

halcy avatar Apr 23 '23 16:04 halcy

Missing parameters fixed in master, rest to be investigated.

halcy avatar Apr 23 '23 16:04 halcy

Thanks!

pdeitel avatar Apr 23 '23 17:04 pdeitel