add attachments in tasks comments + change edit post logic