From 160d2785927d4729441dfa6ecd0d5536ec640687 Mon Sep 17 00:00:00 2001 From: Alexander Akhmetov Date: Mon, 15 Oct 2018 16:23:41 +0200 Subject: GH-9633 Added plugin API method to return user's profile image (#9653) --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index d64946f93..2531bf96a 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -185,6 +185,9 @@ type API interface { // UpdatePost updates a post. UpdatePost(post *model.Post) (*model.Post, *model.AppError) + // GetProfileImage gets user's profile image + GetProfileImage(userId string) ([]byte, *model.AppError) + // CopyFileInfos duplicates the FileInfo objects referenced by the given file ids, // recording the given user id as the new creator and returning the new set of file ids. // -- cgit v1.2.3-1-g7c22