Show More
@@ -86,6 +86,7 b' class PostManager(models.Manager):' | |||||
86 | if not thread: |
|
86 | if not thread: | |
87 | thread = boards.models.thread.Thread.objects.create( |
|
87 | thread = boards.models.thread.Thread.objects.create( | |
88 | bump_time=posting_time, last_edit_time=posting_time) |
|
88 | bump_time=posting_time, last_edit_time=posting_time) | |
|
89 | list(map(thread.tags.add, tags)) | |||
89 | new_thread = True |
|
90 | new_thread = True | |
90 | else: |
|
91 | else: | |
91 | new_thread = False |
|
92 | new_thread = False | |
@@ -107,8 +108,6 b' class PostManager(models.Manager):' | |||||
107 | if image: |
|
108 | if image: | |
108 | post.images.add(PostImage.objects.create_with_hash(image)) |
|
109 | post.images.add(PostImage.objects.create_with_hash(image)) | |
109 |
|
110 | |||
110 | list(map(thread.add_tag, tags)) |
|
|||
111 |
|
||||
112 | if new_thread: |
|
111 | if new_thread: | |
113 | boards.models.thread.Thread.objects.process_oldest_threads() |
|
112 | boards.models.thread.Thread.objects.process_oldest_threads() | |
114 | else: |
|
113 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now