如果删除了user1内容,则会自动从用户的Feed中消失

So I have a social network I'm building and I have a question I'd like answering if somebody could help.

So lets say user1 deletes their post with ajax and it disappears in their feed instantly, but user2 in their friends hasn't refreshed their feed, and it still shows this exact post user1 has just deleted. How would I then go about removing that post that's been deleted without the 2nd user having to refresh the page. Would I do it the same way as loading new posts but search specifically for deleted posts in the feed then fade them out if it doesn't find a certain post by its id?

If your application is so heavy on ajax client side interactions, I'd try angular or one of its relatives, as I believe it will save you much hassle.

Basically, if going the pure JS \ JQuery way, I'd probably go about having some kind of a timed function (something along the guidelines of a client-side thread) that would grab all posts in page (maybe even save it in a list, so you won't have to go through the DOM each time?) and update \ delete \ add the required posts.