tkellogg / fossil

A mastodon client optimized for reading, with an AI-enabled algorithm for displaying posts
https://www.fossil-social.com
65 stars 8 forks source link

Boost button #10

Closed alenachao closed 6 months ago

alenachao commented 6 months ago

Very new to open source so please let me know if you have any feedback! One clarification I was wondering is what we want to return for the function.

tkellogg commented 6 months ago

ha, i love what you went with. do you mind if i merge it now? i just want to pull it down locally first.

alenachao commented 6 months ago

of course go ahead!

tkellogg commented 6 months ago

It doesn't quite work. See my branch for a couple small fixes, mainly around error handling. You might notice that your boosts probably didn't work (or maybe they did, just showed ups as your own toot, idk).

You have the URL wrong. You need this one: https://docs.joinmastodon.org/methods/statuses/#boost

alenachao commented 6 months ago

ok hopefully it works as intended now sorry about that!

tkellogg commented 6 months ago

Merged. Thanks so much for the contribution. See if you can do the like button too!

FYI, I added a cleanup commit, 5b6569319c04c72272c1cafda5cb6e3b9ce89f1b, mostly because i had an unrelated problem i was trying to troubleshoot. One note though — the Toot.id field is internal and doesn't correspond to toots on the mastodon server, so you have to use Toot.toot_id instead. Sorry for the confusion 😊