From fa4d22808059d5207e43e71b5a0abf415bc3acd2 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 26 Oct 2015 10:22:18 -0200 Subject: [PATCH] fix #351 --- src/twister.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/twister.cpp b/src/twister.cpp index b1cf20e3..0df8f709 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -1624,7 +1624,7 @@ bool usernameExists(std::string const &username) bool createSignedUserpost(entry &v, std::string const &username, int k, int flag, std::string const &msg, - entry const *ent, entry const *sig, + entry const *ent, entry const *sig_rtfav, std::string const &reply_n = "", int reply_k = 0) { entry &userpost = v["userpost"]; @@ -1657,12 +1657,12 @@ bool createSignedUserpost(entry &v, std::string const &username, int k, } //userpost["t"] = "rt"; userpost["rt"] = *ent; - userpost["sig_rt"] = *sig; + userpost["sig_rt"] = *sig_rtfav; break; } case USERPOST_FLAG_FAV: userpost["fav"] = *ent; - userpost["sig_fav"] = *sig; + userpost["sig_fav"] = *sig_rtfav; break; case USERPOST_FLAG_DM: //userpost["t"] = "dm";