Fix broken URL path/QP for getTimelineEntry

This commit is contained in:
Hank Grabowski 2022-03-23 10:19:20 -04:00
parent 7e2a925713
commit 61d6eca0af

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());