Making WordPress.org

Changes between Initial Version and Version 14 of Ticket #986


Ignore:
Timestamp:
05/08/2015 05:35:06 PM (9 years ago)
Author:
Otto42
Comment:

Checking the response headers from profiles.wordpress.org

Ick. We can do better than that.

Rather than hitting the profiles directly, have you looked at how we display gravatars here on places like Trac, which don't have access to the w.org user tables directly?

Compare the results of these two requests:

https://wordpress.org/grav-redirect.php?user=BrashRebel

https://wordpress.org/grav-redirect.php?user=non-existent-username

We may create an API for better user information in the future, but if you're going to do this as a hack for now anyway, I'd rather you hit an endpoint that a) isn't likely to change and b) is very low cost for us. Hitting profiles directly, not very low cost.

Just make sure you label the hack in the source so that it can be understood later.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #986

    • Property Owner set to iandunn
    • Property Status changed from new to accepted
    • Property Cc kyle@… jerry@… added
  • Ticket #986 – Description

    initial v14  
    1010
    1111Since WPTV is hosted on WordPress.com, we'll need to submit some kind of request to WordPress.org to check the username. WordPress, BuddyPress, or api.wordpress.org might provide something. If not, we could add something to api.wordpress.org, or worst case just request their profile URL and analyize the HTTP response headers, because non-existant profiles get redirected to https://wordpress.org.
     12
     13Just make sure you label the hack in the source so that it can be understood later.