##// END OF EJS Templates
Fixed adding new post after removing add_tag method in thread
neko259 -
r1187:6ed7dcc3 default
parent child Browse files
Show More
@@ -86,6 +86,7 b' class PostManager(models.Manager):'
86 86 if not thread:
87 87 thread = boards.models.thread.Thread.objects.create(
88 88 bump_time=posting_time, last_edit_time=posting_time)
89 list(map(thread.tags.add, tags))
89 90 new_thread = True
90 91 else:
91 92 new_thread = False
@@ -107,8 +108,6 b' class PostManager(models.Manager):'
107 108 if image:
108 109 post.images.add(PostImage.objects.create_with_hash(image))
109 110
110 list(map(thread.add_tag, tags))
111
112 111 if new_thread:
113 112 boards.models.thread.Thread.objects.process_oldest_threads()
114 113 else:
General Comments 0
You need to be logged in to leave comments. Login now