report fakes
This commit is contained in:
parent
22d17a5106
commit
a2108a56ed
2 changed files with 6 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
continue
|
continue
|
||||||
if self.antispam and not self.antispam.check(contact):
|
if self.antispam and not self.antispam.check(contact):
|
||||||
debug('Skipped a spam-thread from %s' % contact.get_name())
|
debug('Skipped a spam-thread from %s' % contact.get_name())
|
||||||
|
self.browser.report_fake(contact.get_id())
|
||||||
continue
|
continue
|
||||||
thread = Thread(contact.get_id())
|
thread = Thread(contact.get_id())
|
||||||
thread.title = 'Discussion with %s' % contact.get_name()
|
thread.title = 'Discussion with %s' % contact.get_name()
|
||||||
|
|
@ -196,6 +197,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
continue
|
continue
|
||||||
if self.antispam and not self.antispam.check(contact):
|
if self.antispam and not self.antispam.check(contact):
|
||||||
debug('Skipped a spam-unread-thread from %s' % contact.get_name())
|
debug('Skipped a spam-unread-thread from %s' % contact.get_name())
|
||||||
|
self.browser.report_fake(contact.get_id())
|
||||||
continue
|
continue
|
||||||
slut = self._get_slut(contact.get_id())
|
slut = self._get_slut(contact.get_id())
|
||||||
if contact.get_lastmsg_date() > slut['lastmsg']:
|
if contact.get_lastmsg_date() > slut['lastmsg']:
|
||||||
|
|
@ -216,6 +218,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
profile = self.browser.get_profile(ids[new_baskets])
|
profile = self.browser.get_profile(ids[new_baskets])
|
||||||
if self.antispam and not self.antispam.check(profile):
|
if self.antispam and not self.antispam.check(profile):
|
||||||
debug('Skipped a spam-basket from %s' % profile.get_name())
|
debug('Skipped a spam-basket from %s' % profile.get_name())
|
||||||
|
self.browser.report_fake(profile.get_id())
|
||||||
continue
|
continue
|
||||||
|
|
||||||
thread = Thread(profile.get_id())
|
thread = Thread(profile.get_id())
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,9 @@ class AuMBrowser(BaseBrowser):
|
||||||
warning('Deblock: %s' % result)
|
warning('Deblock: %s' % result)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def report_fake(self, id):
|
||||||
|
return self.readurl('http://www.adopteunmec.com/fake.php', 'id=%s' % id)
|
||||||
|
|
||||||
@pageaccess
|
@pageaccess
|
||||||
def rate(self, id, what, rating):
|
def rate(self, id, what, rating):
|
||||||
print 'rate "%s"' % id, what, rating
|
print 'rate "%s"' % id, what, rating
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue