enabled ID tracking forums. Fixed thresholds for anti-spam forums. Changed computation of reputation scored

This commit is contained in:
csoler 2015-10-26 23:38:10 -04:00
parent b009c1135f
commit c7d0e4cb35
14 changed files with 130 additions and 55 deletions

View file

@ -103,6 +103,8 @@ public:
virtual void addRoutingClue(const GRouterKeyId& destination, const RsPeerId& source) =0;
virtual void addTrackingInfo(const RsGxsMessageId& mid,const RsPeerId& peer_id) =0;
virtual bool getTrackingInfo(const RsGxsMessageId& mid, RsPeerId& provider_id) =0;
};
// To access the GRouter from anywhere

View file

@ -104,6 +104,7 @@ namespace GXS_SERV {
#define IS_MSG_UNREAD(status) (status & GXS_SERV::GXS_MSG_STATUS_GUI_UNREAD)
#define IS_GROUP_PGP_AUTHED(signFlags) (signFlags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG)
#define IS_GROUP_MESSAGE_TRACKING(signFlags) (signFlags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_TRACK_MESSAGES)
#define IS_GROUP_ADMIN(subscribeFlags) (subscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_ADMIN)
#define IS_GROUP_PUBLISHER(subscribeFlags) (subscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_PUBLISH)

View file

@ -127,7 +127,6 @@ public:
/// the first 16 bits for service, last 16 for GXS
uint32_t mMsgStatus;
RsPeerId mProviderId ;
time_t mChildTs;
std::string mServiceString; // Service Specific Free-Form extra storage.

View file

@ -31,7 +31,7 @@
class RsReputations
{
public:
static const float REPUTATION_THRESHOLD_ANTI_SPAM = 1.2f ;
static const float REPUTATION_THRESHOLD_ANTI_SPAM = 1.4f ;
static const float REPUTATION_THRESHOLD_DEFAULT = 1.0f ;
// This is the interface file for the reputation system