feat: add secure remote channel media
This commit is contained in:
@@ -389,6 +389,7 @@ export class ChannelService {
|
||||
status: string
|
||||
output?: string
|
||||
error?: string
|
||||
attachments?: ChannelResultMessage['attachments']
|
||||
}
|
||||
): ChannelResultMessage {
|
||||
return channelResultMessageSchema.parse({
|
||||
@@ -409,7 +410,10 @@ export class ChannelService {
|
||||
redactChannelError(result.error),
|
||||
CHANNEL_LIMITS.maximumErrorLength
|
||||
)
|
||||
})
|
||||
}),
|
||||
...(result.attachments?.length
|
||||
? { attachments: result.attachments }
|
||||
: {})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user