coyote-team / coyote-wp

Wordpress Plug-in for Coyote
2 stars 2 forks source link

Missing Host URIs #73

Closed NolanHill closed 3 years ago

NolanHill commented 3 years ago
  1. Uploaded image to media library
  2. Resource showed up immediately in coyote
  3. Added image to blog post and published post
  4. Added image to page and published page
  5. BUG: Resource lists no Host URIs
  6. Wrote and approved a description for the resource in Coyote
  7. Alt text from Coyote is added to the images on wordpress
jkva commented 3 years ago

I suspect this happens because the image is already "known" as an attachment by coyote; the hash for the source uri already exists in the coyote table, so any coyote API call is not made to attempt to insert a resource.

To fix this, I'll include "known" resources in the batch creation API call as well. Thanks for reporting this.

jkva commented 3 years ago

Fixed via https://github.com/coyote-team/coyote-wp/commit/51bf4e07011c1857a09834d4ac118cdc0f39e0fc; now always defaulting to https for attachment URLs.