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. Mar 27 '12 at 13:08
  • @fab - indeed!
    – Lix
    Mar 27 '12 at 13:09
  • @Fabian I guess that will have to do for now...
    – fredley
    Mar 27 '12 at 13:10
  • 3
    +1 for purple unicorn! Mar 27 '12 at 13:13
  • Unicorns don't MIME, they... Mar 27 '12 at 13:14
  • @Mr.Disappointment SHINE?
    – fredley
    Mar 27 '12 at 13:15
  • 2
    Well they certainly don't onebox....
    – Lix
    Mar 27 '12 at 13:16
  • 3
    One does not simply onebox into unicorns
    – Ben Brocka
    Mar 27 '12 at 13:37
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
    Mar 27 '12 at 13:25
  • 4
    What's all this "could"/"should" talk? We must do this! Mar 27 '12 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. Mar 27 '12 at 19:07
  • 2
    Or an alternative would be appending &ext=.jpg to the URL. Mar 27 '12 at 19:07
  • @GeorgeEdison H4X
    – fredley
    Apr 11 '12 at 13:08

You must log in to answer this question.

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