|
|
@ -246,6 +246,7 @@ static const CRPCCommand vRPCCommands[] = |
|
|
|
{ "follow", &follow, false, true }, |
|
|
|
{ "follow", &follow, false, true }, |
|
|
|
{ "unfollow", &unfollow, false, true }, |
|
|
|
{ "unfollow", &unfollow, false, true }, |
|
|
|
{ "getfollowing", &getfollowing, false, true }, |
|
|
|
{ "getfollowing", &getfollowing, false, true }, |
|
|
|
|
|
|
|
{ "listusernamespartial", &listusernamespartial, false, true }, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
CRPCTable::CRPCTable() |
|
|
|
CRPCTable::CRPCTable() |
|
|
@ -1194,6 +1195,7 @@ Array RPCConvertValues(const std::string &strMethod, const std::vector<std::stri |
|
|
|
if (strMethod == "getposts" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "getposts" && n > 1) ConvertTo<Array>(params[1]); |
|
|
|
if (strMethod == "follow" && n > 0) ConvertTo<Array>(params[0]); |
|
|
|
if (strMethod == "follow" && n > 0) ConvertTo<Array>(params[0]); |
|
|
|
if (strMethod == "unfollow" && n > 0) ConvertTo<Array>(params[0]); |
|
|
|
if (strMethod == "unfollow" && n > 0) ConvertTo<Array>(params[0]); |
|
|
|
|
|
|
|
if (strMethod == "listusernamespartial" && n > 1) ConvertTo<boost::int64_t>(params[1]); |
|
|
|
|
|
|
|
|
|
|
|
return params; |
|
|
|
return params; |
|
|
|
} |
|
|
|
} |
|
|
|