mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Can update post content
This commit is contained in:
		@@ -56,6 +56,19 @@ class PostsHelper {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Update a post content
 | 
			
		||||
  Future<bool> updateContent(int id, String newContent) async {
 | 
			
		||||
    return (await APIRequest(
 | 
			
		||||
      uri: "posts/update_content",
 | 
			
		||||
      needLogin: true,
 | 
			
		||||
      args: {
 | 
			
		||||
        "postID": id.toString(),
 | 
			
		||||
        "new_content": newContent,
 | 
			
		||||
      },
 | 
			
		||||
    ).exec())
 | 
			
		||||
        .isOK;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Delete a post
 | 
			
		||||
  Future<bool> delete(int id) async {
 | 
			
		||||
    return (await APIRequest(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user