Re-apply eleddy's 'Revert modification date since this is fixed in
p.a.caching now.' as her commit was lost later on due to some git magic.
This commit is contained in:
parent
dae55074cd
commit
d2ccec6efe
@ -4,6 +4,10 @@ Changelog
|
|||||||
2.2.1 (unreleased)
|
2.2.1 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- Re-apply eleddy's "Revert modification date since this is fixed in
|
||||||
|
p.a.caching now." as her commit was lost later on due to some git magic.
|
||||||
|
[thet]
|
||||||
|
|
||||||
- Remove submitting the controlpanel form again after removing disabled tags
|
- Remove submitting the controlpanel form again after removing disabled tags
|
||||||
fixes #13037 and #12357
|
fixes #13037 and #12357
|
||||||
[maartenkling]
|
[maartenkling]
|
||||||
|
@ -217,14 +217,9 @@ def notify_content_object(obj, event):
|
|||||||
"""Tell the content object when a comment is added
|
"""Tell the content object when a comment is added
|
||||||
"""
|
"""
|
||||||
content_obj = aq_parent(aq_parent(obj))
|
content_obj = aq_parent(aq_parent(obj))
|
||||||
# set the modified date and reindex the item accordingly
|
|
||||||
# so that 304s work correctly. This means that adding a comment
|
|
||||||
# effectively counts as modifying the content type.
|
|
||||||
content_obj.setModificationDate(datetime.now())
|
|
||||||
content_obj.reindexObject(idxs=('total_comments',
|
content_obj.reindexObject(idxs=('total_comments',
|
||||||
'last_comment_date',
|
'last_comment_date',
|
||||||
'commentators',
|
'commentators'))
|
||||||
))
|
|
||||||
|
|
||||||
|
|
||||||
def notify_content_object_deleted(obj, event):
|
def notify_content_object_deleted(obj, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user