Merge branch 'fix-timeline-entry-api-bug' into 'main'

Fix broken URL path/QP for getTimelineEntry

See merge request mysocialportal/fediverse-archiving-tools!6
This commit is contained in:
HankG 2022-04-03 19:31:54 +00:00
commit c94c736614

View file

@ -24,7 +24,7 @@ class FriendicaClient {
FutureResult<List<FriendicaEntry>, ExecError> getTimeline( FutureResult<List<FriendicaEntry>, ExecError> getTimeline(
String userId, int page, int count) async { String userId, int page, int count) async {
final request = Uri.parse( final request = Uri.parse(
'https://$serverName/api/statuses/user_timelineuser_id=$userId&count=$count&page=$page'); 'https://$serverName/api/statuses/user_timeline?screen_name=$userId&count=$count&page=$page');
return (await _getApiRequest(request)).mapValue((postsJson) => postsJson return (await _getApiRequest(request)).mapValue((postsJson) => postsJson
.map((postJson) => FriendicaEntry.fromJson(postJson)) .map((postJson) => FriendicaEntry.fromJson(postJson))
.toList()); .toList());