complete preparations for files uploading via posts
This commit is contained in:
server/src/main
services/posts
client
src
commonMain
kotlin
dev
inmo
postssystem
services
posts
common
src
commonMain
kotlin
dev
inmo
postssystem
services
posts
server
src
jvmMain
kotlin
dev
inmo
postssystem
services
posts
targets/telegram/publication/server/src/jvmMain/kotlin/dev/inmo/postssystem/targets/telegram/publication/server
@ -22,8 +22,7 @@ class PublicationTargetTelegram(
|
||||
) : PublicationTarget {
|
||||
override suspend fun publish(post: PublicationPost) {
|
||||
post.content.mapNotNull {
|
||||
val content = it.content
|
||||
when (content) {
|
||||
when (val content = it.content) {
|
||||
is BinaryContent -> {
|
||||
val storageFile by lazy {
|
||||
StorageFile(content.filename.name, content.inputProvider().readBytes()).asMultipartFile()
|
||||
|
Reference in New Issue
Block a user