22

I discovered a serious bug in chat today: Unicornify Image links are not boxed.

I pasted in the following:

http://unicornify.appspot.com/avatar/d8d1d62f89cf41fb5ff7a06e1b5c22fb?s=128

Expecting this:

enter image description here

Instead I got this:

enter image description here

In case you're having trouble seeing it, I've highlighted the problem here:

enter image description here

8
  • 6
    This might be more an issue with unicornify, I think chat needs the correct MIME type to insert images automatically. As a workaround try putting ! in front of the link. Commented Mar 27, 2012 at 13:08
  • @fab - indeed!
    – Lix
    Commented Mar 27, 2012 at 13:09
  • @Fabian I guess that will have to do for now...
    – fredley
    Commented Mar 27, 2012 at 13:10
  • 3
    +1 for purple unicorn! Commented Mar 27, 2012 at 13:13
  • Unicorns don't MIME, they... Commented Mar 27, 2012 at 13:14
  • @Mr.Disappointment SHINE?
    – fredley
    Commented Mar 27, 2012 at 13:15
  • 2
    Well they certainly don't onebox....
    – Lix
    Commented Mar 27, 2012 at 13:16
  • 3
    One does not simply onebox into unicorns
    – Zelda
    Commented Mar 27, 2012 at 13:37

1 Answer 1

18

We don't special case it, indeed (although maybe we could). Adding a leading ! will (as Fabian notes) make sure it knows it is an image:

!http://unicornify.appspot.com/avatar/d8d1d62f89cf41fb5ff7a06e1b5c22fb?s=128

Other than that, we just try to recognise urls that are likely an image.

5
  • 1
    ... although maybe we, ahem should ;)
    – Matt
    Commented Mar 27, 2012 at 13:25
  • 4
    What's all this "could"/"should" talk? We must do this! Commented Mar 27, 2012 at 14:15
  • 2
    I will make do with using this logical NOT ! sign while I'm NOT a unicorn, but when I become one again, this has to change. Commented Mar 27, 2012 at 19:07
  • 2
    Or an alternative would be appending &ext=.jpg to the URL. Commented Mar 27, 2012 at 19:07
  • @GeorgeEdison H4X
    – fredley
    Commented Apr 11, 2012 at 13:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .