Thumb uploads/post uploads normalization (#13300)

* testing thumn/post upload refactor

* fix: isOrphan check

* lint: fix md5

* test: fix upload test

* user

* fix: upgrade script

* refactor: long line

* lint: lint

* test: fix tests

* Squashed commit of the following:

commit cd70e6c610
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Fri Apr 4 09:24:54 2025 -0400

    fix: req.body can be undefined

* refactor: show data on test fail

* test: logs

* test: change test

* make sure timestamps are different
This commit is contained in:
Barış Soner Uşaklı
2025-04-04 10:45:05 -04:00
committed by GitHub
parent cd70e6c610
commit 3ad6ee075b
14 changed files with 209 additions and 73 deletions

View File

@@ -86,7 +86,7 @@ describe('FEPs', () => {
adminUid, utils.generateUUID(), [reply1Pid, reply2Pid], tid, cid
);
assert.strictEqual(activitypub._sent.size, 2);
assert.strictEqual(activitypub._sent.size, 2, activitypub._sent.keys());
const key = Array.from(activitypub._sent.keys())[0];
const activity = activitypub._sent.get(key);