Fixed text posts not passing streams correctly since previous change.

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:54 +02:00
parent 737031f2ed
commit 58eaec5f58
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module.exports = function(posts, user) {
return Promise.resolve().then(() => {
return fs.ensureDir(path.dirname(filepath));
}).then(() => {
return save(filepath, item.streams, item);
return save(filepath, item.streams || item.stream, item);
}).then(sourcePaths => {
if(item.mux) {
return mux(filepath, sourcePaths, item);