That's why you do research and try to find the artist then credit them. But if you could not find the artist please of course consider double checking first before posting art made by an artist which you might not know who made said art.
Art credit is an important form of respect when reposting someone else’s works. That rule isn’t meant to inconvenience, it’s just here to make sure to keep this stream as safe and kind as possible.