diff options
author | Wasim Thabraze <wasim@thabraze.me> | 2018-10-17 18:53:10 +0530 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-10-17 14:23:10 +0100 |
commit | 7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16 (patch) | |
tree | 19ce5b4d1031887ea62865006f8b7ead892d543c /app/export_converters.go | |
parent | 1befeb61d0299028d050a732ea9c8f7e8774ed74 (diff) | |
download | chat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.tar.gz chat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.tar.bz2 chat-7562f940bb7b0de80bcfb8f5c3fc1b751a1a6b16.zip |
[MM-12465] Added capability to export reactions of posts during bulk export (#9600)
* Added capability to export reactions of posts
* Added capability to export reactions of replies of a post
* Added test case to test the reactions of a post
Diffstat (limited to 'app/export_converters.go')
-rw-r--r-- | app/export_converters.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/export_converters.go b/app/export_converters.go index cafe360cb..3b536c6e3 100644 --- a/app/export_converters.go +++ b/app/export_converters.go @@ -111,3 +111,11 @@ func ImportReplyFromPost(post *model.ReplyForExport) *ReplyImportData { CreateAt: &post.CreateAt, } } + +func ImportReactionFromPost(reaction *model.Reaction) *ReactionImportData { + return &ReactionImportData{ + User: &reaction.UserId, + EmojiName: &reaction.EmojiName, + CreateAt: &reaction.CreateAt, + } +} |