File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function convertMarkdownToTeamsHTML(markdown: string) {
17
17
let subject : string
18
18
let html =
19
19
"<div>" +
20
- markdown
20
+ ( markdown || "" )
21
21
. replace ( / ^ # ( .* $ ) / gim, ( m , t ) => {
22
22
subject = t
23
23
return ""
@@ -120,14 +120,7 @@ async function microsoftTeamsChannelUploadFile(
120
120
const j = ( await res . json ( ) ) as MicrosoftTeamsEntity
121
121
logVerbose ( `teams: uploaded ${ filename } to ${ j . webUrl } ` )
122
122
123
- if ( description ) {
124
- const resg = await fetch ( itemUrl , {
125
- method : "GET" ,
126
- headers : {
127
- Authorization,
128
- "Content-Type" : "application/json" ,
129
- } ,
130
- } )
123
+ if ( disclaimer || description ) {
131
124
const html = convertMarkdownToTeamsHTML ( description )
132
125
if ( disclaimer ) html . content += disclaimer
133
126
You can’t perform that action at this time.
0 commit comments