Closed onchov closed 6 months ago
That's a Lemmy requirement, your instance now requires email. And won't let you update your settings until you do. We are just showing you why it failed
That's a Lemmy requirement, your instance now requires email. And won't let you update your settings until you do. We are just showing you why it failed
That's not true, at least for my instance. I've just changed and saved the sort type through a browser without being asked to provide an email address.
The same instance as the one you receive that error message in Jerboa?
We don't do any validation
The error you receive is straight from the backend.
If there is a discrepancy in behaviour between Jerboa and Lemmy UI I am not sure how.
@onchov what's your instance?
The same instance as the one you receive that error message in Jerboa?
Yes.
@onchov what's your instance?
It's feddit.nl.
I now that the changes I made through the web UI are propagated to Jerboa so this issue is half-moot to me (half because I've got a workaround, but you might want to investigate why the email requirement inconsistency; feel free to close it on my behalf if you don't). Thanks for your great work on the app, btw!
feddit.nl does have a email requirement. See https://feddit.nl/signup
Now why Lemmy UI does allow you to update it. Is something that will need to be investigated further. Do we use different endpoints?
It's the same endpoint, so maybe it is different because one request includes the field and the other doesn't ? TBC
Ah that's it.
Jerboa
{
"show_nsfw":false,
"show_scores":true,
"theme":"browser",
"default_sort_type":"Hot",
"default_listing_type":"All",
"interface_language":"browser",
"avatar":"",
"banner":"https://lemmy.one/pictrs/image/5e51c666-18d1-4170-8f52-57d4639cca5b.jpeg",
"display_name":"MV [Jerboa dev]",
"email":"",
"bio":"",
"matrix_user_id":"@mdevatriz:matrix.org",
"show_avatars":true,
"send_notifications_to_email":false,
"bot_account":false,
"show_bot_accounts":true,
"show_read_posts":true
}
vs Lemmy UI
{
"show_nsfw":false,
"blur_nsfw":true,
"auto_expand":false,
"theme":"browser",
"default_sort_type":"Hot",
"default_listing_type":"All",
"interface_language":"browser",
"discussion_languages":[
],
"banner":"https://lemmy.one/pictrs/image/5e51c666-18d1-4170-8f52-57d4639cca5b.jpeg",
"display_name":"MV [Jerboa dev]",
"show_avatars":true,
"bot_account":false,
"show_bot_accounts":true,
"show_scores":true,
"show_read_posts":true,
"send_notifications_to_email":false,
"matrix_user_id":"@mdevatriz:matrix.org",
"open_links_in_new_tab":false
}
Thx, yeah an empty string in the lemmy backend for nullable fields is how we handle 'clear' / remove.
Jerboa Version
0.0.63
Android Version + Phone
Android 11 on Samsung S9 & Android 10 on Samsung A3
Describe The Bug
"email_required" error pops up when trying to change the Default Sort Type setting. Entering email address shouldn't be needed for that action.
To Reproduce
In the case of a crash or when relevant include the logs
No response