kandanapp/kandan — pull request #65 by mguinada (2013-02-11 00:08:35+00:00)
Title: Fix message sender pastie link

When sending a message, activity was being pushed to the channel before saved.

As no id was setted yet, if message is to be truncated by the PastiePlugin, the pastie's link, from the message sender's perspective, was broken with an undefined id in it's URL.