Show More
@@ -410,11 +410,6 b' class Post(models.Model, Viewable):' | |||||
410 | pass |
|
410 | pass | |
411 |
|
411 | |||
412 | def connect_threads(self, opening_posts): |
|
412 | def connect_threads(self, opening_posts): | |
413 | """ |
|
|||
414 | If the referenced post is an OP in another thread, |
|
|||
415 | make this post multi-thread. |
|
|||
416 | """ |
|
|||
417 |
|
||||
418 | for opening_post in opening_posts: |
|
413 | for opening_post in opening_posts: | |
419 | threads = opening_post.get_threads().all() |
|
414 | threads = opening_post.get_threads().all() | |
420 | for thread in threads: |
|
415 | for thread in threads: | |
@@ -423,5 +418,4 b' class Post(models.Model, Viewable):' | |||||
423 |
|
418 | |||
424 | thread.last_edit_time = self.last_edit_time |
|
419 | thread.last_edit_time = self.last_edit_time | |
425 | thread.save(update_fields=['last_edit_time', 'bumpable']) |
|
420 | thread.save(update_fields=['last_edit_time', 'bumpable']) | |
426 |
|
421 | self.threads.add(opening_post.get_thread()) | ||
427 | self.threads.add(thread) |
|
General Comments 0
You need to be logged in to leave comments.
Login now