mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-12 19:50:17 +05:00
restore auto-deny & suppress spam in NewsFeed
This commit is contained in:
parent
c01c0a166f
commit
9488388dc9
@ -23,6 +23,8 @@
|
||||
#include "NewsFeed.h"
|
||||
#include "ui_NewsFeed.h"
|
||||
|
||||
#include "pqi/authssl.h"
|
||||
|
||||
#include <retroshare/rsbanlist.h>
|
||||
#include <retroshare/rsgxschannels.h>
|
||||
#include <retroshare/rsgxsforums.h>
|
||||
@ -478,6 +480,13 @@ void NewsFeed::handleSecurityEvent(std::shared_ptr<const RsEvent> event)
|
||||
return;
|
||||
|
||||
auto& e(*pe);
|
||||
|
||||
// Check if denied by AuthSSL (backend)
|
||||
if(AuthSSL::instance().isNotifyDenied(e.mPgpId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
RsFeedTypeFlags flags = (RsFeedTypeFlags)Settings->getNewsFeedFlags();
|
||||
|
||||
// 1 - treat the case of unknown PeerID
|
||||
|
||||
Loading…
Reference in New Issue
Block a user