akkoma/lib/pleroma/web/activity_pub/object_validators
Haelwenn (lanodan) Monnier 11844084d0
MIME.valid?(type) → is_bitstring(type) && MIME.extensions(type) != []
Since mime 1.6.0:

  warning: MIME.valid?/1 is deprecated. Use MIME.extensions(type) != [] instead

As for the bitstring(type) part it's because MIME.extensions only expects a string.
https://github.com/elixir-plug/mime/issues/43
2021-06-03 19:11:17 +02:00
..
accept_reject_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
add_remove_validator.ex expanding validator 2021-03-25 13:26:54 +03:00
announce_validator.ex Merge remote-tracking branch 'pleroma/develop' into cycles-constants 2021-06-01 11:33:11 -05:00
answer_validator.ex transmogrifier: Fixing votes from Note to Answer 2021-04-05 19:19:12 +02:00
article_note_validator.ex Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
attachment_validator.ex MIME.valid?(type) → is_bitstring(type) && MIME.extensions(type) != [] 2021-06-03 19:11:17 +02:00
audio_video_validator.ex Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
block_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
chat_message_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
common_fixes.ex Fix addressing 2021-04-05 19:19:12 +02:00
common_validations.ex Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
create_chat_message_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
create_generic_validator.ex Fix addressing 2021-04-05 19:19:12 +02:00
delete_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
emoji_react_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
event_validator.ex ObjectValidator.CommonFixes: Introduce fix_objects_defaults and fix_activity_defaults 2021-04-05 19:19:11 +02:00
follow_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
like_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
question_options_validator.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
question_validator.ex ObjectValidator.CommonFixes: Introduce fix_objects_defaults and fix_activity_defaults 2021-04-05 19:19:11 +02:00
tag_validator.ex TagValidator: New 2021-04-01 14:18:40 +02:00
undo_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00
update_validator.ex object_validators: Mark validate_data as private 2021-04-01 14:18:41 +02:00