Handle public instances #126

Merged
AmineB merged 8 commits from davidoskky/ReaderForSelfoss-multiplatform:public into master 2023-01-28 10:25:36 +00:00

8 Commits

Author SHA1 Message Date
ec0fd2faee Cleaning 2023-01-27 00:25:27 +01:00
c80177377c Handle public access in the article fragment
Remove the button to read/unread articles
2023-01-26 18:03:41 +01:00
0dc511ebe6 Handle public access in the article reader screen
Remove the favourite button from the article reader if accessing a public instance and don't mark articles as read when scrolling.
2023-01-26 18:03:41 +01:00
eeea5b1e06 Hide the favourite button in card items when accessing a public instance 2023-01-26 18:03:41 +01:00
04f3937095 Handle public access in the home screen
In public access mode we can only read articles. Disable swiping articles in the listing to read them and remove the menu items to read all articles and to access sources settings.
2023-01-26 18:03:41 +01:00
e3e8cc8a79 Add tests for the public access determination logic 2023-01-26 18:03:41 +01:00
529ada8882 Fix broken tests 2023-01-26 18:03:41 +01:00
d0f649bb27 Fetch remote selfoss configuration
Fetch from /api/about the selfoss configuration to determine if we're using a public access instanceIf both authentication and public mode are enabled in the configuration and we're logging in without authentication, then we're using public access.
2023-01-26 15:47:01 +01:00