halcy / Mastodon.py

Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
MIT License
876 stars 150 forks source link

Mastodon.trending_statuses and Mastodon.trending_links Each Return One Item #338

Open pdeitel opened 1 year ago

pdeitel commented 1 year ago

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.

halcy commented 1 year ago

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

halcy commented 1 year ago

Missing parameters fixed in master, rest to be investigated.

pdeitel commented 1 year ago

Thanks!