Commit Graph

162 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
ca3a89f38e Merge branch 'master' into develop 2026-03-11 20:26:56 -04:00
Barış Soner Uşaklı
e01cb1048a test: add one more topic to tag test
test partial tag removal
2026-03-11 20:21:33 -04:00
Barış Soner Uşaklı
dcdb73c303 Merge branch 'master' into develop 2026-03-11 17:21:38 -04:00
Barış Soner Uşaklı
0a94cecb0d fix: #14084, fix tags not getting properly removed from topics
this was happening because the same topic was passed to setObject bulk multiple times with different tag data.
the fix is to find the uniq tids first and then only call setObjectBulk once per topic
2026-03-11 17:21:06 -04:00
Barış Soner Uşaklı
e3119c76f3 test: add debug test to see if failing test is due to race condition 2026-03-02 10:16:07 -05:00
Barış Uşaklı
e4c945f636 refactor: allow passing an array to topics.purge and topics.purgePost… (#14018)
* refactor: allow passing an array to topics.purge and topics.purgePostsAndTopic

deprecate action:topic.purge, add action:topics.purge with array of deleted topics
update usage of topics.purge to pass in an array
fix an issue in posts/delete where cids were passed to parseInt, caused AP cids to get saved into category:NaN

* lint

* refactor: change style

* use array of tids
2026-02-26 13:09:42 -05:00
Barış Soner Uşaklı
872d7c74e5 test: remove assert 2026-02-24 17:42:43 -05:00
Barış Soner Uşaklı
de1f04d9d8 refactor: dont store ap pids in posts:pid
new zset postsRemote:pid
in topic purge only make 1 db call to reduce counters
2026-02-24 17:36:17 -05:00
Julian Lam
b1c097f84b test: update tests to allow title-less topics 2026-02-17 11:26:13 -05:00
Barış Uşaklı
62d88555ae feat: eslint10 (#13967)
* feat: eslint10

* lint: no-useless-assignment
2026-02-10 12:39:11 -05:00
Julian Lam
98a1101d40 test: update test for toPid logic to reflect that toPid stays even if parent is purged 2025-10-31 09:44:06 -04:00
Julian Lam
30b1212a0a fix: relax toPid assertion checks so that it only checks that it is a number or uri 2025-10-29 15:18:19 -04:00
Barış Soner Uşaklı
d6e7e168ba test: fix message 2025-09-25 21:35:01 -04:00
Barış Soner Uşaklı
8614d8258d test: show tids on test fail 2025-09-25 19:20:17 -04:00
Barış Soner Uşaklı
10350ea6f6 revert: post queue changes to fix tests 2025-09-09 11:20:03 -04:00
Julian Lam
9bfce68b5e test: disable post queue when testing posting logic 2025-09-05 14:39:23 -04:00
Barış Soner Uşaklı
9d4a9b83cc fix: closes #13624, update post fields before schedule code
tldr when reschedule was called it was still using the timestamp in the future when adding to cid:<cid>:pids causing that post to get stuck at the top of that zset, which led to the bug in this issue
2025-08-29 21:02:14 -04:00
Barış Soner Uşaklı
8eedb38a99 test: test fixes for default teaser change 2025-07-22 10:51:54 -04:00
Barış Soner Uşaklı
3526c937cc fix: tag urls getting double escaped (#13306)
* fix: tag urls getting double escaped

get rid of weird decodeURIComponent($.param()) usage
$.param returns a string suitable for use in query param string

* add a new test
2025-04-07 13:23:22 -04:00
Barış Soner Uşaklı
b80440aacd test: fix x-redirect tests 2025-01-22 14:09:00 -05:00
Barış Soner Uşaklı
c15bdd4cf0 👋Request, 🐶 Fetch, closes #10341 (#12236)
* axios migration

* controller tests

* add missing deps

* feeds

* remove unused async

* flags

* locale-detect

* messaging/middleware

* remove log

* meta

* plugins

* posts

* search

* topics/thumbs

* user/emails

* uploads.js

* socket.io

* cleaunup

* test native fetch

* cleanup

* increase engine to 18

fix remaining tests

* remove testing file

* fix comments,typo

* revert debug
2023-12-18 12:08:34 -05:00
Julian Lam
ce7403014a test: added tests for new logic paths (toPid validation on post creation)
re: #12025
2023-09-25 10:34:35 -04:00
Barış Soner Uşaklı
d615273d90 test: fix tests to use regular uid 2023-07-26 10:07:38 -04:00
Barış Soner Uşaklı
a75fd636ad test: add missing tests 2023-05-11 20:21:57 -04:00
Barış Soner Uşaklı
e0db9a8978 test: fix assert.reject calls
fix tests
2023-05-04 09:47:58 -04:00
Julian Lam
36895421ba refactor: topic mark read/unread routes 2023-05-01 12:02:34 -04:00
Julian Lam
82b4984b9d test: replace calls to getReplies socket call to api method 2023-05-01 12:02:34 -04:00
Barış Soner Uşaklı
de2669a2c6 fix: only remove deleted tag, closes #11515 2023-04-24 15:39:00 -04:00
Julian Lam
d92da828a3 refactor: move post upload tests to its own file 2022-02-14 15:02:07 -05:00
Barış Soner Uşaklı
10949184ca test: add failing guest csrf test (#10169)
* test: add failing guest csrf test

* test: use correct var

* fix: use applyCsrf for guests as well
2022-01-20 18:22:10 -05:00
Barış Soner Uşaklı
9b75b1ede2 test: update tag tests, fix linux symlink error 2022-01-10 18:41:07 -05:00
Barış Soner Uşaklı
f918a38164 breaking: remove socket.emit('topics.follow')
remove socket.emit('topics.changeWatching')
2021-12-13 12:55:54 -05:00
Barış Soner Uşaklı
6ad0472106 breaking: remove socket.emit('topics.post')
remove socket.emit('topics.search')
remove socket.emit('topics.getTopic')
2021-12-12 13:14:08 -05:00
Baris Usakli
20e76699a2 lint: missing ; 2021-12-10 12:16:58 -05:00
Baris Usakli
0d1e57dce0 breaking: remove deprecated methods
socket.emit('topics.delete') removed use `DELETE /api/v3/topics/state`
socket.emit('topics.restore') removed use `PUT /api/v3/topics/state`
socket.emit('topics.purge') removed use `DELETE /api/v3/topics`
socket.emit('topics.lock') removed use `PUT /api/v3/topics/lock`
socket.emit('topics.unlock') removed use `DELETE /api/v3/topics/lock`
socket.emit('topics.pin') removed use `PUT /api/v3/topics/pin`
socket.emit('topics.unpin') removed use `DELETE /api/v3/topics/pin`
2021-12-10 12:12:04 -05:00
Barış Soner Uşaklı
f8f0a83b52 test: one more getTopicPosts test 2021-12-06 17:18:38 -05:00
Barış Soner Uşaklı
906dc5675e fix: handle start=0 stop=0 for topics.getTopicPosts
add more tests
2021-12-06 16:36:30 -05:00
Barış Soner Uşaklı
a29535833f fix: #10052, dont use spaces in tag class name 2021-12-02 10:58:23 -05:00
Barış Soner Uşaklı
1cdb0b1e19 fix: don't crash if tid is falsy 2021-11-30 15:47:19 -05:00
Barış Soner Uşaklı
79de48c57f breaking: remove deprecated methods 2021-11-23 13:21:18 -05:00
Barış Soner Uşaklı
c5f08fdc81 breaking: remove socket.io/flags.js
refactor: helpers.loginUser returns a single object {jar, csrf_token}
2021-11-22 19:23:51 -05:00
Barış Soner Uşaklı
4359e5c97c refactor: remove tabs after declaration 2021-11-16 16:24:17 -05:00
Barış Soner Uşaklı
aac0792ab8 test: mainPost removed from inf scroll 2021-11-15 18:31:55 -05:00
Julian Lam
bd893cdaa3 fix: extra debug log 2021-10-14 13:59:11 -04:00
Julian Lam
154ffea01b test: moved topic event and topic thumb tests to subfolder for better organisation 2021-10-13 21:02:05 -04:00
Barış Soner Uşaklı
2657804c1f fix: #9790, fix sorting of more than one page of pinned topics 2021-09-11 17:57:42 -04:00
Barış Soner Uşaklı
4a56388ec3 feat: store topic tags in topic hash (#9656)
* feat: store topic tags in topic hash

breaking: remove color info from tags (use css)

* fix: remove unused tag modal

* fix: tag search
2021-07-12 19:25:04 -04:00
Julian Lam
0960a81468 fix: tests 2021-07-09 12:24:32 -04:00
Barış Soner Uşaklı
84e065752f fix: #9622 (#9623)
dont allow regular user to remove system tags
2021-06-22 11:09:32 -04:00
gasoved
8b79c7f139 fix: regress. rescheduling shouldn't add to sets that pinning removed… (#9477)
* fix: regress. rescheduling shouldn't add to sets that pinning removed from

* test: remove the also from tests
2021-04-21 19:19:04 -04:00