Closed paviro closed 3 months ago
You will need to set reply-interval-in-hours
to 0
, if one ore more users you are fetching for isn't an admin account.
The reason for this is that all options you set apply to all access-tokens you have supplied. As such, in order for this to work, you'd need both users to be admins, and both users to have the admin:read:accounts
scope enabled for the token.
Alright thanks! Would it make sense to store the info if a token is admin or not and only do these things for the admin token? Or would that be out of scope for the project?
Yeah, it's a tough one. Because there is also the question of what happens, if (for example) one user has enabled the correct scopes to fetch lists, and the other has not?
I guess ideally we'd want to define settings on a per-access-token basis. Something like:
{
"server": "your.mastodon.server",
"tokens": [
{
"access_token": "Your access token",
"home-timeline-length": 200,
"reply-interval-in-hours": 24,
"from-notifications": 1,
"from-lists": 1
},
{
"access_token": "Your friend's access token",
"home-timeline-length": 200,
"from-notifications": 1
}
]
}
I wouldn't say it's out of scope. But it's not a priority at the moment, as there simply doesn't appear to be the demand for it, and my own time is limited.
If you (or someone else) wanted to provide a backwards compatible PR I'd happy accept that though.
That makes sense! Thank you for your input! I'll see if I find the time to look into it at some point.
Hi! First of all thank you for your awesome work!
I just added a user second user token from a friend using my instance and FediFetcher crashed with:
The first token (mine) has the
admin:read:accounts
enabled. My friends is just a normal read token via getauth.thms.uk. Is there anything I am doing wrong or need to take into account when using two tokens?