mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix(style): requiring parens in block bodies
This commit is contained in:
@@ -238,7 +238,7 @@ async function addTags(topicData, req, res) {
|
||||
|
||||
async function addOGImageTags(res, topicData, postAtIndex) {
|
||||
const uploads = postAtIndex ? await posts.uploads.listWithSizes(postAtIndex.pid) : [];
|
||||
const images = uploads.map(upload => {
|
||||
const images = uploads.map((upload) => {
|
||||
upload.name = nconf.get('url') + nconf.get('upload_url') + '/files/' + upload.name;
|
||||
return upload;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user