fix: wrong variable name

This commit is contained in:
Julian Lam
2024-04-12 14:10:33 -04:00
parent fdbd30dc23
commit 50f31b236a

View File

@@ -285,7 +285,7 @@ Mocks.note = async (post) => {
const uploads = await posts.uploads.listWithSizes(post.pid);
uploads.forEach(({ name, width, height }) => {
const mediaType = mime.getType(name);
const url = `${nconf.get('upload_url')}/${name}`;
const url = `${nconf.get('url') + nconf.get('upload_url')}/${name}`;
attachment.push({ mediaType, url, width, height });
});