Implement edit post and reply functionality