diff --git a/plone/app/discussion/subscribers.py b/plone/app/discussion/subscribers.py index c3717e5..0234c97 100644 --- a/plone/app/discussion/subscribers.py +++ b/plone/app/discussion/subscribers.py @@ -5,12 +5,10 @@ from Products.CMFCore.utils import getToolByName def index_object(obj, event): """Index the object when it is added/modified to the conversation. """ - catalog = getToolByName(obj, 'portal_catalog') - return catalog.reindexObject(obj) + obj.indexObject() def unindex_object(obj, event): """Unindex the object when it is removed from the conversation. """ - catalog = getToolByName(obj, 'portal_catalog') - return catalog.unindexObject(obj) + obj.unindexObject()