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