server/func/posts: fix #221
This commit is contained in:
parent
03d768881e
commit
065a466af8
|
@ -439,9 +439,7 @@ def generate_alternate_formats(post: model.Post, content: bytes) \
|
||||||
assert content
|
assert content
|
||||||
new_posts = []
|
new_posts = []
|
||||||
if mime.is_animated_gif(content):
|
if mime.is_animated_gif(content):
|
||||||
tag_names = [
|
tag_names = [tag.first_name for tag in post.tags]
|
||||||
tag_name.name
|
|
||||||
for tag_name in [tag.names for tag in post.tags]]
|
|
||||||
|
|
||||||
if config.config['convert']['gif']['to_mp4']:
|
if config.config['convert']['gif']['to_mp4']:
|
||||||
mp4_post, new_tags = create_post(
|
mp4_post, new_tags = create_post(
|
||||||
|
|
Loading…
Reference in New Issue