SHARE
TWEET

post.patch

a guest Mar 4th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top