Yup that is WordPress specific. Some mediaItems would have the Url in the mediaItemSourceUrl rather that the sourceUrl. But depending on your API, I would just log source and see what you got. Then you can figure out what field you need to source from.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was looking for such sample code to work with the custom resolvers! Not for WP but it helped a lot. Thank you!
Out of interest: What is the reason for the custom check between
source.sourceUrlandsource.mediaItemUrl?If that WP specific?
Yup that is WordPress specific. Some mediaItems would have the Url in the mediaItemSourceUrl rather that the sourceUrl. But depending on your API, I would just log
sourceand see what you got. Then you can figure out what field you need to source from.