Show More
@@ -360,11 +360,10 b' class PostForm(NeboardForm):' | |||||
360 |
|
360 | |||
361 | try: |
|
361 | try: | |
362 | image = get_image_by_alias(url, self.session) |
|
362 | image = get_image_by_alias(url, self.session) | |
|
363 | if image is not None: | |||
363 | if 'stickers' not in self.cleaned_data: |
|
364 | if 'stickers' not in self.cleaned_data: | |
364 | self.cleaned_data['stickers'] = [] |
|
365 | self.cleaned_data['stickers'] = [] | |
365 | self.cleaned_data['stickers'].append(image) |
|
366 | self.cleaned_data['stickers'].append(image) | |
366 |
|
||||
367 | if image is not None: |
|
|||
368 | return |
|
367 | return | |
369 |
|
368 | |||
370 | if file is None: |
|
369 | if file is None: |
@@ -123,7 +123,7 b' class ThreadView(BaseBoardView, PostMixi' | |||||
123 | post = Post.objects.create_post(title=title, text=text, files=files, |
|
123 | post = Post.objects.create_post(title=title, text=text, files=files, | |
124 | thread=post_thread, ip=ip, |
|
124 | thread=post_thread, ip=ip, | |
125 | tripcode=form.get_tripcode(), |
|
125 | tripcode=form.get_tripcode(), | |
126 | file_urls=file_urls) |
|
126 | images=images, file_urls=file_urls) | |
127 |
|
127 | |||
128 | if form.is_subscribe(): |
|
128 | if form.is_subscribe(): | |
129 | settings_manager = get_settings_manager(request) |
|
129 | settings_manager = get_settings_manager(request) |
General Comments 0
You need to be logged in to leave comments.
Login now