If there is ever any reason to believe that another account took the photo, always credit the account who took the photo, not who posted it. If it was a collaboration, credit both. The importance of crediting in reposts is to provide recognition for the creator (often an artist), whose income may be based upon the content they have made.
Contributors: Meara McNitt from Online Optimism