Advertisement
Guest User

post.patch

a guest
Mar 4th, 2018
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.49 KB | None | 0 0
  1. --- "app/post.go"   2018-02-20 18:15:10.219247729 -0600
  2. +++ app/post.go 2018-02-20 18:15:03.855248412 -0600
  3. @@ -397,6 +397,12 @@
  4.             })
  5.         }
  6.  
  7. +       for _, fileId := range post.FileIds {
  8. +           if result := <-a.Srv.Store.FileInfo().AttachToPost(fileId, post.Id); result.Err != nil {
  9. +               l4g.Error(utils.T("api.post.create_post.attach_files.error"), post.Id, post.FileIds, post.UserId, result.Err)
  10. +           }
  11. +       }
  12. +
  13.         a.sendUpdatedPostEvent(rpost)
  14.  
  15.         a.InvalidateCacheForChannelPosts(rpost.ChannelId)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement