diff options
author | 2019-01-07 22:36:26 +0100 | |
---|---|---|
committer | 2019-01-07 22:36:26 +0100 | |
commit | 2389d409b38157d7747330db89ea45e0e3aa4e00 (patch) | |
tree | e0f104e973286364eba7758b62f94cccfc4592d9 /api | |
parent | Add the `note` infraction type. (diff) |
Use proper field name in `tag_embed_validator`.
Diffstat (limited to 'api')
-rw-r--r-- | api/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/validators.py b/api/validators.py index 2c4ffe4b..7673c3fe 100644 --- a/api/validators.py +++ b/api/validators.py @@ -115,7 +115,7 @@ def validate_tag_embed(embed): 'color', 'footer', 'image', 'thumbnail', 'video', 'provider', 'author', 'fields' } - one_required_of = {'content', 'fields', 'image', 'title', 'video'} + one_required_of = {'description', 'fields', 'image', 'title', 'video'} field_validators = { 'title': ( MinLengthValidator( |