Remove nb_unread/nb_messages in CapMessages

Most backends don't set it nb_messages and no application used it.
No backends set nb_unread and only one application tried to use it.

This should help avoid useless fillobj() calls in some cases.

fixes #827
This commit is contained in:
Laurent Bachelier 2012-03-22 19:25:26 +01:00 committed by Romain Bignon
commit ba5949cd22
5 changed files with 4 additions and 15 deletions

View file

@ -72,7 +72,6 @@ class PhpBBBackend(BaseBackend, ICapMessages, ICapMessagesPost):
thread = Thread(url2id(link.url))
thread.title = ('%s ' % root_link.title if root_link else '') + link.title
thread.date = link.date
thread.nb_messages = link.nb_messages
thread.flags = thread.IS_DISCUSSION
yield thread