What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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

share|improve this question
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. –  Mad Scientist 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! –  Shadow Wizard Mar 27 '12 at 13:13
    
Unicorns don't MIME, they... –  Grant Thomas 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
add comment

1 Answer

up vote 17 down vote accepted

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.

share|improve this answer
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! –  The Unhandled Exception 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. –  BoltClock's a Unicorn Mar 27 '12 at 19:07
1  
Or an alternative would be appending &ext=.jpg to the URL. –  uɐɯsO uɐɥʇɐN Mar 27 '12 at 19:07
    
@GeorgeEdison H4X –  fredley Apr 11 '12 at 13:08
add comment

You must log in to answer this question.

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