Add support for the default (d) parameter #2

Closed
opened 2018-11-25 10:52:59 +01:00 by tastytea · 2 comments
Owner

This parameter controls what happens if an image is missing.

We should at least support:

  • d=404: Return a 404 error
  • d=mm, d=mp: "Mystery man" or "Mystery person", static file

The documentation also mentions the possibility to supply a fallback URL. I don't think we should download remote images, but maybe return a redirect?

This parameter controls what happens if an image is missing. We should at least support: * `d=404`: Return a 404 error * `d=mm`, `d=mp`: "Mystery man" or "Mystery person", static file The [documentation](https://wiki.libravatar.org/api/) also mentions the possibility to supply a fallback URL. I don't think we should download remote images, but maybe return a redirect?
tastytea added the
enhancement
label 2018-11-25 10:53:05 +01:00
Author
Owner

404 is implemented. Fallback URL is implemented by sending a redirect (HTTP 307).

`404` is implemented. Fallback URL is implemented by sending a redirect (HTTP 307).
Author
Owner

mp/mm is implemented. We should implement identicon too, because it is used quite often.

`mp`/`mm` is implemented. We should implement identicon too, because it is used quite often.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tastytea/libravatarserv#2
No description provided.