Hide media only after inserting link. Handle empty posts.