HenryHu / pybbs

Python implementation of the BBS server, providing BBS data interface
Other
28 stars 3 forks source link

Bug report -- unreported attachments #9

Closed mrroach9 closed 12 years ago

mrroach9 commented 12 years ago

When a post with attachment is reprinted to another board, like Travel 4799, reprinted from fasion, the attachment remains but returned post info shows attachments : 0. That will cause Rowell not displaying the attachment logo (i.e. the paper clip logo) while it shows the thumbnail and retrieves the original image successfully.

mrroach9 commented 12 years ago

p.s. This is even happening in Term bbs.

HenryHu commented 12 years ago

Simple answer: this is not a problem of pybbs. Detailed answer: the attachments field is not generated from posts online. It's stored in the post entry. So it's decided when the entry is written. In the old code, when you are reposting a post, this field is not copied to the new entry. So here is the problem. Maybe I'll fix the old code, maybe not.