ChatMessages: Add attachments.
authorlain <lain@soykaf.club>
Wed, 6 May 2020 14:12:36 +0000 (16:12 +0200)
committerlain <lain@soykaf.club>
Wed, 6 May 2020 14:12:36 +0000 (16:12 +0200)
commit20baa2eaf04425cf0a2eebc84760be6c12ee7f51
tree5034177137693546741945fed7476c2fb77b8dbd
parent205313e54146c00374e3edfa951132a7229fa16d
ChatMessages: Add attachments.
14 files changed:
lib/pleroma/web/activity_pub/builder.ex
lib/pleroma/web/activity_pub/object_validator.ex
lib/pleroma/web/activity_pub/object_validators/attachment_validator.ex [new file with mode: 0644]
lib/pleroma/web/activity_pub/object_validators/chat_message_validator.ex
lib/pleroma/web/activity_pub/object_validators/url_object_validator.ex [new file with mode: 0644]
lib/pleroma/web/api_spec/operations/chat_operation.ex
lib/pleroma/web/api_spec/schemas/chat_message.ex
lib/pleroma/web/common_api/common_api.ex
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
lib/pleroma/web/pleroma_api/views/chat_message_view.ex
test/web/activity_pub/object_validator_test.exs
test/web/activity_pub/object_validators/types/object_id_test.exs
test/web/pleroma_api/controllers/chat_controller_test.exs
test/web/pleroma_api/views/chat_message_view_test.exs