Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created April 22, 2010 19:30
Show Gist options
  • Select an option

  • Save ukstudio/375695 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/375695 to your computer and use it in GitHub Desktop.
Session.pre_send_message_timeline_status do |sender, e|
result = e.text.scan( /http:\/\/movapic\.com\/pic\/\w+/)
if result.size > 0
params = result.first.split('/')
e.text = e.text + " http://image.movapic.com/pic/m_#{params.last}.jpeg"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment