hatkidchan / mastoposter

Mastodon to [anything] reposter. Anything being {Telegram, Discord} for now.
GNU General Public License v3.0
28 stars 3 forks source link

Automatic list discovery #12

Open mo-rijndael opened 2 years ago

mo-rijndael commented 2 years ago

Since we already have read:lists permission, it would be possible to get all lists via /api/v1/lists, and then for each use /api/v1/lists/:id/accounts to find one, which contains only current user

Backward compatibility can be achieved same way as described in #11

hatkidchan commented 2 years ago

Was thinking about creating list automatically with some predetermined name like "Crossposter-feed" or something, that will also require write:lists permission. Tho by default Mastodon returns a token with almost all permissions, so not a big deal. Thanks for that too!

mo-rijndael commented 2 years ago

Well, having a write permission is not very good, because it looks less "safe" to give Also, when software silently modifies your settings it looks not good too

hatkidchan commented 2 years ago

when software silently modifies your settings it's not good

I think it'd be nice to have a configuration script that does all the steps necessary and spits out config file. I should create an issue for that...

mo-rijndael commented 2 years ago

I think it'd be nice to have a configuration script

Since we need browser for getting token, it can be simple static webpage with primitive scripts (to easily sure, page will not steal auth info)

hatkidchan commented 2 years ago

image