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";