What happens to a public link when the file gets a status that does not allow public use?
The link stops at once and answers 404 like a link that never existed. A
file that was public itself has its general access set back to restricted.
A file that was public through a public folder stops being public too.