#2546 closed defect (bug) (fixed)
Publishing a previous draft shows draft date
Reported by: | thekmen | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Blogs | Keywords: | dev-feedback |
Cc: |
Description
I just puublished a post that had been in draft mode for a few days.
When viewing the activity stream, the new post has the date of the original draft so gets pushed way back on the activity stream.
Change History (7)
#2
@
14 years ago
Probably more a problem with how we are hooking into the blog post process. Will take a look.
#3
@
14 years ago
- Component changed from Core to Blogs
- Keywords dev-feedback added
bp_blogs_record_post() creates an activity item using $post->post_date_gmt, which does not recognize when a draft is published.
We could change it to post_modified_gmt, but this opens the possibility of people abusing the activity stream by publishing/unpublishing posts in order to bump them up.
I don't think this is a serious concern - on balance, it seems better to me to use post_modified_gmt rather than post_date_gmt - but I would like a second opinion before making the change.
#4
@
14 years ago
Actually, maybe it's better if we just hook to 'publish_post' rather than 'save_post'. Thoughts?
Just spotted this changeset: http://trac.buddypress.org/changeset/3142 - maybe it fixes this issue?