If the artist has an account on the platform you use to repost, mention that artist. If it's Twitter, just RT. If they don't have an account on the platform, write their username as well as the platform they use. If you don't know the artist, DON'T REPOST. It's not that hard...