Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: NodeBB#11482 thumbs Post Can not upload a thumbnail, only multip… #11483

Merged
merged 7 commits into from
Apr 15, 2023
Merged

Conversation

Veronikya
Copy link
Contributor

…le uploads

@CLAassistant
Copy link

CLAassistant commented Apr 14, 2023

CLA assistant check
All committers have signed the CLA.

@barisusakli
Copy link
Member

@Veronikya thanks for this, can you remove this line https://github.com/NodeBB/NodeBB/blob/master/test/helpers/index.js#L124,
lets see if all tests pass without it. Since your code should handle objects and turn it into an array 🤔

@barisusakli
Copy link
Member

barisusakli commented Apr 14, 2023

Can get rid of the /2 here as well https://github.com/NodeBB/NodeBB/blob/master/test/uploads.js#L90-L91 since we don't upload x2 files anymore

@barisusakli
Copy link
Member

You don't have to get rid of it just changing that line and removing /2 should make it pass I think.

@barisusakli
Copy link
Member

Should be const times = (meta.config.uploadRateLimitThreshold) + 1; instead of const times = (meta.config.uploadRateLimitThreshold / 2) + 1;

@Veronikya
Copy link
Contributor Author

assert.strictEqual(orphans.length, 1);
It looks like this, the quantity does not match
:)

@barisusakli
Copy link
Member

Lgtm will merge later today

@barisusakli barisusakli merged commit c931183 into NodeBB:master Apr 15, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants