| 794 | return content.text; | 794 | return content.text; |
| 795 | } | 795 | } |
| 796 | // Could be extended with other non-text types | 796 | // Could be extended with other non-text types |
| 797 | if (['image_url', 'video_url'].includes(content.type)) { | 797 | if (['image_url', 'video_url', 'audio_url'].includes(content.type)) { |
| 798 | const token = crypto.randomBytes(32).toString('base64'); | 798 | const token = crypto.randomBytes(32).toString('base64'); |
| 799 | contentTokens.set(token, content); | 799 | contentTokens.set(token, content); |
| 800 | return token; | 800 | return token; |