Allow new comment timestamp to be passed
Morbus Iff - May 1, 2008 - 16:12
| Project: | Drupal |
| Version: | 6.x-dev |
| Component: | comment.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
We allow nodes to receive their 'created' date passed into node_save(). The nearest analog to a comment's "created" date, however, is 'timestamp'. Timestamp isn't settable from outside comment_save(); some modules (such as mailhandler) just /assume/ that it is. This patch is necessary for imports from other applications, but also matches the patterns already established in node_save().
| Attachment | Size |
|---|---|
| comment_timestamp.patch | 399 bytes |

#1
A couple of things
patch is missing -u option (I am deeply shocked)
I think we should have 'created' and 'updated' timestamps for comments, this may be out of scope though.
#2
If the way a patch was generated is a code quality issue, please set this back. Otherwise, pithy.
(And yeah, I agree: created/updated timestamps are out of scope here.)
#3
Reapplied. This was the first time I had used cvs since I reinstalled the OS, so didn't have a .cvsrc file with the proper diff settings.
#4
Works as advertised ... fapi protects us from any unauthorized user sending a timestamp.
#5
I'd love to commit this patch but it no longer applies. Needs a quick re-roll.
#6
Attached. Sorry for the delay. Set to RTBC after re-roll.
#7
#8
Committed to CVS. Thanks Morbus.
#9
Automatically closed -- issue fixed for two weeks with no activity.
#10
#11
This patch only works with Drupal 6.3.
#12
6.x patch contained tabs, so fixed those before committing. Will be in next Drupal 6 release, thanks!
#13
Automatically closed -- issue fixed for two weeks with no activity.