Skip to content

Instantly share code, notes, and snippets.

@tochiz
Created July 21, 2011 19:39
Show Gist options
  • Save tochiz/1098008 to your computer and use it in GitHub Desktop.
Save tochiz/1098008 to your computer and use it in GitHub Desktop.
promenade.c diff file.
diff --git a/promenade.c b/promenade.c
index 7d82a15..e37ed06 100644
--- a/promenade.c
+++ b/promenade.c
@@ -592,8 +594,11 @@ static void dosession(TCMPOOL *mpool){
if(dbputart(tdb, p_id, cols)){
if(*g_updatecmd != '\0' &&
!doupdatecmd(mpool, "comment", p_scripturl, p_user, now, p_id, cols, ocols))
+ {
tclistprintf(emsgs, "The update command was failed.");
+ } else {
+ twitter_post(owner, text);
+ }
} else {
setdberrmsg(emsgs, tdb, "Storing the article was failed.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment