##// END OF EJS Templates
Merged with default
neko259 -
r1231:db37f36a merge decentral
parent child Browse files
Show More
@@ -93,9 +93,11 b' class PostManager(models.Manager):'
93 thread = boards.models.thread.Thread.objects.create(
93 thread = boards.models.thread.Thread.objects.create(
94 bump_time=posting_time, last_edit_time=posting_time)
94 bump_time=posting_time, last_edit_time=posting_time)
95 list(map(thread.tags.add, tags))
95 list(map(thread.tags.add, tags))
96 new_thread = True
96 boards.models.thread.Thread.objects.process_oldest_threads()
97 else:
97 else:
98 new_thread = False
98 thread.last_edit_time = posting_time
99 thread.bump()
100 thread.save()
99
101
100 pre_text = Parser().preparse(text)
102 pre_text = Parser().preparse(text)
101
103
@@ -116,13 +118,6 b' class PostManager(models.Manager):'
116 if image:
118 if image:
117 post.images.add(PostImage.objects.create_with_hash(image))
119 post.images.add(PostImage.objects.create_with_hash(image))
118
120
119 if new_thread:
120 boards.models.thread.Thread.objects.process_oldest_threads()
121 else:
122 thread.last_edit_time = posting_time
123 thread.bump()
124 thread.save()
125
126 post.build_url()
121 post.build_url()
127 post.connect_replies()
122 post.connect_replies()
128 post.connect_threads(opening_posts)
123 post.connect_threads(opening_posts)
General Comments 0
You need to be logged in to leave comments. Login now