hunk.code_window: 		return
   	}
   	patchedPost, err := c.App.PatchPost(c.Params.PostId, c.App.PostPatchWithProxyRemovedFromImageURLs(post))
   	if err != nil {
   		c.Err = err
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: 	if c.Session.UserId != originalPost.UserId {
   		if !c.App.SessionHasPermissionToChannelByPost(c.Session, c.Params.PostId, model.PERMISSION_EDIT_OTHERS_POSTS) {
   			c.SetPermissionError(model.PERMISSION_EDIT_OTHERS_POSTS)
   			return
   		}
   	}
  
hunk.file_path: api4/post.go
hunk.type: add
file: Copyright 2009 The Go Authors. All rights reserved. Use of this source code
  is governed by a BSD-style license that can be found in the LICENSE file.
  Extensions of the original work are copyright (c) 2011 Miek Gieben
  
  Copyright 2011 Miek Gieben. All rights reserved. Use of this source code is
  governed by a BSD-style license that can be found in the LICENSE file.
  
  Copyright 2014 CloudFlare. All rights reserved. Use of this source code is
  governed by a BSD-style license that can be found in the LICENSE file.
  