mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
changed anti-spam policy to require a minimum of NEUTRAL to forward posts of trusted people
This commit is contained in:
parent
057e3ebea2
commit
924e3bf54b
1 changed files with 7 additions and 7 deletions
|
@ -179,30 +179,30 @@ public:
|
||||||
static RsReputations::ReputationLevel minReputationForForwardingMessages(uint32_t group_sign_flags, uint32_t identity_flags)
|
static RsReputations::ReputationLevel minReputationForForwardingMessages(uint32_t group_sign_flags, uint32_t identity_flags)
|
||||||
{
|
{
|
||||||
// If anti-spam is enabled, do not send messages from authors with bad reputation. The policy is to only forward messages if the reputation of the author is at least
|
// If anti-spam is enabled, do not send messages from authors with bad reputation. The policy is to only forward messages if the reputation of the author is at least
|
||||||
// equal to the minimal reputation in the table below (R=remotely, L=locally, P=positive, N=negative) :
|
// equal to the minimal reputation in the table below (R=remotely, L=locally, P=positive, N=negative, O=neutral) :
|
||||||
//
|
//
|
||||||
// | Anonymous Signed Signed+Known
|
// | Anonymous Signed Signed+Known
|
||||||
// -----------+-----------------------------------------------------
|
// -----------+-----------------------------------------------------
|
||||||
// NONE | RN RN RN
|
// NONE | O O O
|
||||||
// GPG_AUTHED | RP RN RN
|
// GPG_AUTHED | RP O O
|
||||||
// GPG_KNOWN | RP RP RN
|
// GPG_KNOWN | RP RP O
|
||||||
//
|
//
|
||||||
|
|
||||||
if(identity_flags & RS_IDENTITY_FLAGS_PGP_KNOWN)
|
if(identity_flags & RS_IDENTITY_FLAGS_PGP_KNOWN)
|
||||||
return RsReputations::REPUTATION_REMOTELY_NEGATIVE;
|
return RsReputations::REPUTATION_NEUTRAL;
|
||||||
else if(identity_flags & RS_IDENTITY_FLAGS_PGP_LINKED)
|
else if(identity_flags & RS_IDENTITY_FLAGS_PGP_LINKED)
|
||||||
{
|
{
|
||||||
if(group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG_KNOWN)
|
if(group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG_KNOWN)
|
||||||
return RsReputations::REPUTATION_REMOTELY_POSITIVE;
|
return RsReputations::REPUTATION_REMOTELY_POSITIVE;
|
||||||
else
|
else
|
||||||
return RsReputations::REPUTATION_REMOTELY_NEGATIVE;
|
return RsReputations::REPUTATION_NEUTRAL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( (group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG_KNOWN) || (group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG))
|
if( (group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG_KNOWN) || (group_sign_flags & GXS_SERV::FLAG_AUTHOR_AUTHENTICATION_GPG))
|
||||||
return RsReputations::REPUTATION_REMOTELY_POSITIVE;
|
return RsReputations::REPUTATION_REMOTELY_POSITIVE;
|
||||||
else
|
else
|
||||||
return RsReputations::REPUTATION_REMOTELY_NEGATIVE;
|
return RsReputations::REPUTATION_NEUTRAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue