Skip to content

Commit

Permalink
fix: closes #229
Browse files Browse the repository at this point in the history
  • Loading branch information
lucien144 committed May 12, 2021
1 parent 84cd33b commit 591aff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/controllers/ApiProvider.dart
Expand Up @@ -118,7 +118,7 @@ class ApiProvider implements IApiProvider {
}

Future<Response> postDiscussionMessage(int postId, String message) async {
return await dio.post('$URL/discussion/$postId/send/text', data: {'content': message, 'format': 'text'}, options: Options(contentType: Headers.formUrlEncodedContentType));
return await dio.post('$URL/discussion/$postId/send/text', data: {'content': message, 'format': 'html'}, options: Options(contentType: Headers.formUrlEncodedContentType));
}

Future<Response> setPostReminder(int discussionId, int postId, bool setReminder) async {
Expand All @@ -142,7 +142,7 @@ class ApiProvider implements IApiProvider {
}

Future<Response> sendMail(String recipient, String message) async {
return await dio.post('$URL/mail/send', data: {'recipient': recipient, 'message': message, 'format': 'text'}, options: Options(contentType: Headers.formUrlEncodedContentType));
return await dio.post('$URL/mail/send', data: {'recipient': recipient, 'message': message, 'format': 'html'}, options: Options(contentType: Headers.formUrlEncodedContentType));
}

Future<Response> deleteFile(int id) async {
Expand Down

0 comments on commit 591aff3

Please sign in to comment.