1952 Commits

Author SHA1 Message Date
Julian Lam
a99f1237b8 test: add type determination tests for Mocks.notes.public based on generatedTitle flag
Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>
2026-04-20 14:30:17 -04:00
Julian Lam
d724207eaa test: fix up more ap tests 2026-04-20 14:05:59 -04:00
Julian Lam
f631c8b62a fix: returned object type in ap test 2026-04-20 14:02:32 -04:00
Julian Lam
0a9121eff2 fix: fix db require in ap analytics test 2026-04-17 10:04:31 -04:00
Julian Lam
80589eb69c fix: more surprising shit from AI written test file 2026-04-14 13:39:41 -04:00
Julian Lam
b7ba11259e fix: qwen's shitty test suite 2026-04-14 12:59:33 -04:00
Barış Soner Uşaklı
4c0efe53f5 fix: memberPostCids saving, closes #14170
validCids is an array of strings
if a group was named 3rd party devs, then the isNaN(parseInt()) check was failing
2026-04-13 21:14:45 -04:00
Julian Lam
30774a8424 test: activitypub third-party blocklists 2026-04-13 12:55:35 -04:00
Barış Soner Uşaklı
87e7cb3d16 Merge branch 'master' into develop 2026-04-10 16:43:25 -04:00
Barış Soner Uşaklı
ac8bad8bc9 test: set thumbs during topic.post 2026-04-10 16:43:14 -04:00
Barış Soner Uşaklı
ab6d462bec test: another delete after create 2026-04-10 16:27:58 -04:00
Barış Uşaklı
15d65943fb test: fix unread deleted topic test (#14164)
instead of posting and immediately deleting, add a deleted param to topics.post which deletes the topic before sending notifications
2026-04-10 16:27:58 -04:00
Barış Soner Uşaklı
65c2c84492 test: another delete after create 2026-04-10 16:27:47 -04:00
Barış Uşaklı
3915790793 test: fix unread deleted topic test (#14164)
instead of posting and immediately deleting, add a deleted param to topics.post which deletes the topic before sending notifications
2026-04-10 13:05:29 -04:00
Julian Lam
490963fbc2 fix: changed args in activitypub.sign 2026-04-09 20:15:42 -04:00
Julian Lam
5f5fa0930d fix: failing test due to expected thrown exception 2026-04-09 20:15:42 -04:00
Barış Soner Uşaklı
62b65e69ab fix: closes #14151, handle null req.body 2026-04-06 17:20:06 -04:00
Barış Soner Uşaklı
5d5490d36a fix: closes #14151, handle null req.body 2026-04-06 17:19:55 -04:00
Barış Soner Uşaklı
0568ef4310 fix: #14147, dont create wrong backlinks
syncBacklinks expects raw post content, html was passed to it from onNewPost since it was switched to use getPostSummary
backlinkRegex was matching  ${nconf.get('url')}/topic/1aef954c-d0dc-45cf-acf2-e3a59f6cc134/foo and return tid=1 instead of the uuid

remove useless if check in syncBacklinks
fixed parseInts on tids
current - remove are both arrays use .length
2026-04-03 21:54:18 -04:00
Barış Soner Uşaklı
a09192d486 fix: #14147, dont create wrong backlinks
syncBacklinks expects raw post content, html was passed to it from onNewPost since it was switched to use getPostSummary
backlinkRegex was matching  ${nconf.get('url')}/topic/1aef954c-d0dc-45cf-acf2-e3a59f6cc134/foo and return tid=1 instead of the uuid

remove useless if check in syncBacklinks
fixed parseInts on tids
current - remove are both arrays use .length
2026-04-03 21:54:05 -04:00
Barış Uşaklı
2612340bc9 refactor socket notifications (#14135)
* refactor socket notifications

* dunno why these two gut fubared

* add missing yaml files

* more fixes

* fix: schema

* lint: fix lint issues
2026-03-30 12:02:34 -04:00
Barış Soner Uşaklı
b04976ed35 test: dont create users parallel 2026-03-28 13:36:24 -04:00
Barış Soner Uşaklı
09183ac062 test: dont create users parallel 2026-03-28 13:35:47 -04:00
Barış Soner Uşaklı
deca5e6715 fix: redis/psql 2026-03-27 12:22:06 -04:00
Julian Lam
833899d091 fix: failing test 2026-03-27 11:40:24 -04:00
Barış Soner Uşaklı
837d984b84 refactor: some cleanup of dbal code 2026-03-27 11:24:43 -04:00
Julian Lam
8547fa9e48 fix: broken test 2026-03-27 11:06:26 -04:00
Julian Lam
25fb2969cf test: remove leftover .only 2026-03-27 10:50:12 -04:00
Julian Lam
4d3211caba fix: regression where topic moves during Announce(Create(Note)) stopped working, added test for #14040, fix broken AP test helper mock 2026-03-26 12:04:56 -04:00
Julian Lam
781ed3447b feat: track user cids (#14114)
* feat: start tracking which cids a user has posted to, update account pages' topics/posts view to call this new sorted set

re: #14113

* feat: upgrade script for #14113

* fix: cids unavailable in getPostsFields, duh

* fix: update sortedSetIncrByBulk in mongo/psql to return early on empty data

* fix: remove unused lodash require

* test: sortedSetIncrBy and sortedSetIncrByBulk tests

* test: who needs null checks anyway

* fix: sortedSetIncrByBulk null response

* test: aggregate zincrbulk data

if there are alot of identical key/value pairs they will be combined into a single row

* fix: key name

* test: fix test name

* lint: fix lint issues

* test: negative values should work too

* fix: add e11000 handler for incrByBulk

* refactor: fix variable name

* merge tests with existing zset test, remove dupes

* test: return topicData for failing test

* delete uid:<uid>:cids on user delete

---------

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2026-03-26 10:30:28 -04:00
Barış Soner Uşaklı
a10471fce7 fix: #14121, use normalizedPath when uploading
add test for normalize
2026-03-24 12:43:57 -04:00
Barış Soner Uşaklı
9bcef6b5ea fix: #14116, don't return ban reason if login credentials are incorrect 2026-03-23 09:43:15 -04:00
Julian Lam
8ca34e74bd fix: improve idempotency of ap test 2026-03-19 12:02:26 -04:00
Barış Soner Uşaklı
09de6fb9ae perf: switch to set, remove parseFloat in redis
add test to cover float
2026-03-14 17:39:43 -04:00
Barış Uşaklı
533ae69c46 feat: allow 3 profile pics (#14092)
* feat: allow 3 profile pics

* test: fix notification test

* test: fix user picture test

* test: relative_path fixes

* fix: relative_path getting saved in when updating profile pic
2026-03-13 18:42:50 -04:00
Julian Lam
ff1e1b9200 test: exclude uploadScreenshot from routeMap parsing test 2026-03-13 13:25:32 -04:00
Barış Soner Uşaklı
25f6088f52 test: fix test maybe 2026-03-11 22:53:38 -04:00
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ı
5ff5971465 Merge branch 'master' into develop 2026-03-10 11:01:14 -04:00
Barış Soner Uşaklı
f6f51f83c4 perf: make a single round trip for set(s)Remove
use bulkWrite
2026-03-10 11:01:01 -04:00
Barış Soner Uşaklı
92fcdd09ca fix: closes #14074, only return url & name
from uploads, add tests to post uploads and thumb uploads to check only name & url is returned
2026-03-10 10:46:17 -04:00
Barış Soner Uşaklı
a391d01d30 fix: closes #14073, fix teasers from child categories
add a test
2026-03-10 09:49:23 -04:00
Barış Soner Uşaklı
38b347be9e Merge branch 'master' into develop 2026-03-09 21:24:34 -04:00
Barış Soner Uşaklı
c83087181c test: fix btn tests 2026-03-09 20:28:07 -04:00
Barış Soner Uşaklı
bcbb7bc444 perf: make a single round trip for set(s)Remove
use bulkWrite
2026-03-09 18:33:24 -04:00
Barış Soner Uşaklı
215d64408c test: cleaner user.delete test 2026-03-09 10:56:12 -04:00
Barış Uşaklı
3c0a654012 feat: show cronjobs in acp (#14068)
* feat: show cronjobs in acp

add a wrapper for cronjobs and display in acp

* test: add running to spec

* test: fix running, simplify calls

* test: prevent crash on stopJob
2026-03-06 20:42:38 -05:00