Commit Graph

150 Commits

Author SHA1 Message Date
Julian Lam
bcfdbf7c97 fix: gate /world behind ensureLoggedIn middleware 2026-02-23 13:37:01 -05:00
Julian Lam
5df2b8b785 feat: quick create on world page
This commit removes title requirement checks in NodeBB and updates the
topic creation logic so that incoming topic creation API requests
without a title just generate a title (like they already do for incoming
AP content.)
2026-02-17 11:26:13 -05:00
Barış Soner Uşaklı
05dd46c31f test: fix spec, remove log 2026-02-09 18:23:29 -05:00
Julian Lam
9f1369a272 fix: #13962, infinite scroll and pagination not working on world 2026-02-09 13:45:38 -05:00
Julian Lam
0fbaa937e4 Refactor /world page, closes #13927 (#13954)
* refactor: wholesale UI/data refactor of world to display in feed-like format

* fix: openapi schema

* fix: remove console log

* fix: restrict 'generatedTitle' from being passed-in via topics API

* fix(deps): bumping themes for world refactor support

* fix: /world title and description update

* fix: missing handleIgnoreWatch in world client side js
2026-02-06 14:07:25 -05:00
Julian Lam
ad27347fa2 fix: update buildRecipents to add option to skip target creation step, update ap actors for note to not bother building targets 2026-01-21 14:43:31 -05:00
Julian Lam
aa7e078fbf fix: #13654, improper OrderedCollectionPage ID 2025-11-20 14:15:43 -05:00
Julian Lam
748cc5eecd fix: logic error in context generation 2025-10-29 15:18:19 -04:00
Julian Lam
9cee799937 fix: force outgoing page on direct access to /ap handler 2025-10-01 11:53:57 -04:00
Julian Lam
f67942caec fix: local pids not always converted to absolute URLs on topic actor controller 2025-09-15 13:53:35 -04:00
Barış Soner Uşaklı
3a1ebae796 dont spam logs 2025-08-14 19:05:25 -04:00
Barış Soner Uşaklı
113607829f remove log 2025-07-07 17:09:42 -04:00
Barış Uşaklı
14043ab0fd Node redis (#13500)
* refactor: start migrating to node-redis

* few more zset fixes

* fix: db.scan

* fix: list methods

* fix set methods

* fix: hash methods

* use hasOwn, remove cloning

* sorted set fixes

* fix: so data is converted to strings before saving

otherwise node-redis throws below error
TypeError: "arguments[2]" must be of type "string | Buffer", got number instead.

* chore: remove comments

* fix: zrank string param

* use new close

* chore: up dbsearch

* test: add log

* test: more log

* test: log failing test

* test: catch errors in formatApiResponse

add await so exception goes to catch

* tetst: add log

* fix: dont set null/undefined values

* test: more fixes
2025-06-18 13:04:57 -04:00
Julian Lam
fcb3bfbc35 fix: return 200 for non-implemented activities instead of 501 2025-06-01 12:40:42 -04:00
Julian Lam
e70e990a1a feat: restrict access to ap.probe method to registered users, add rate limiting protection 2025-05-22 14:13:41 -04:00
Julian Lam
d7cc637675 Merge branch 'master' into develop 2025-05-09 10:17:50 -04:00
Julian Lam
64fdf91b6b fix: wrap generateCollection calls in try..catch to send 404 if thrown 2025-05-09 10:16:33 -04:00
Julian Lam
6bfe4e627d fix: another case 2025-05-08 16:34:13 -04:00
Julian Lam
e042201f4b fix: handle missing orderedItems property in followers route 2025-05-08 16:32:21 -04:00
Julian Lam
53bb0bbc26 fix: handle missing orderedItems 2025-05-06 12:30:43 -04:00
Julian Lam
f83b1fbf68 fix: extra orderedItems property in generated paginated OrderedCollection, #13153 2025-05-06 12:27:35 -04:00
Julian Lam
a2de7aaecf fix: #13153, follower and following collections to use generateCollection helper 2025-05-06 12:27:35 -04:00
Julian Lam
28b7a20339 lint: yup. 2025-04-29 15:13:22 -04:00
Julian Lam
695312f17f fix: missing teasers for remote categories on /world 2025-04-29 10:28:18 -04:00
Julian Lam
34ab677174 feat: show tracked/watched remote categories in world page, #13255 2025-04-29 10:28:18 -04:00
Julian Lam
bfc7daf255 refactor: categories.sortTidsBySet to not take cid, retrieve from tids themselves
re: ##13255, this fixes the issue with topics outside of cid -1 in /world being sorted incorrectly
2025-04-29 10:28:17 -04:00
Julian Lam
f1c2b2be04 Merge branch 'master' into develop 2025-02-27 13:34:28 -05:00
Julian Lam
428300de4f fix: scheduled topics and posts should return 404 on AP request 2025-02-27 13:34:21 -05:00
Barış Soner Uşaklı
a3596772ec Merge branch 'master' into develop 2025-02-22 17:12:52 -05:00
Barış Soner Uşaklı
2c83056778 fix: #13193, add lang strings 2025-02-22 17:12:45 -05:00
Barış Soner Uşaklı
06b3d9adba lint: remove unused db 2025-02-19 18:48:44 -05:00
Julian Lam
d0561a602e refactor: remove cid:-1:tids (and variants) from intersection in /world, fixes #13125
- remove "poor man's intersect" but not considering the main `cid:-1:tids` set at all
  including its variants (voting, reply time, etc.)
- added a new method Categories.sortTidsBySet which allows after-the-fact sorting
  of tids by their score in a set.
2025-02-19 14:18:20 -05:00
Julian Lam
126ff28612 Revert "feat: changes to how a topic is presented via ActivityPub; conformance with upcoming changes to 7888"
This reverts commit 4fd7a9dc59.
2025-01-29 14:38:43 -05:00
Julian Lam
b2530e6122 fix: incorrect posts url in topic posts collection 2025-01-21 13:01:27 -05:00
Julian Lam
adeaff4b82 feat: changes to how a topic is presented via ActivityPub; conformance with upcoming changes to 7888 2025-01-21 12:55:43 -05:00
Julian Lam
af4d07fba4 feat: fix activitypub toggler to be more complete; tests. #13054 2025-01-20 12:05:17 -05:00
Barış Soner Uşaklı
fa81078a89 fix: check if url is undefined 2024-12-24 20:54:49 -05:00
Julian Lam
e4e1063622 refactor: split (and remove) activitypub.json file and move strings to more appropriate locations 2024-12-13 13:34:35 -05:00
Julian Lam
e4e6b1d245 fix: #12919, handle when buildTopicsSortedSet returns a non-array 2024-11-18 13:47:34 -05:00
Julian Lam
d685b20e0a fix: #12893, topic with pages returning OrderedCollectionPage instead of OrderedCollection.
Turns out empty arrays are still truthy, heh.
2024-11-04 13:43:28 -05:00
Julian Lam
22dbf15e5e fix: errant mention detection via actors.note
- also removed duplicate parsing of post content when retrieving object via AP
2024-10-29 14:51:55 -04:00
Julian Lam
05c8ee9f02 fix: #12880, refactored ap controller.list to use buildTopicsSortedSet, moved out poor man's intersect to internal method 2024-10-29 11:40:51 -04:00
Julian Lam
4fc0ee9b76 Revert "fix: use categories.getTopicIds instead of duplicating existing logic to get world tids"
This reverts commit 7bf411383e.
2024-10-29 11:26:14 -04:00
Julian Lam
7bf411383e fix: use categories.getTopicIds instead of duplicating existing logic to get world tids 2024-10-29 10:36:35 -04:00
Julian Lam
eccad588f4 fix: one more fix 2024-10-25 12:49:49 -04:00
Julian Lam
0e982fcf9e fix: debug return not restored back 2024-10-25 12:37:45 -04:00
Julian Lam
069c8228e7 feat: #12822, send all outgoing links to /ap first to see if it's activitypub enabled, parse if able, otherwise redirect as normal 2024-10-23 15:25:16 -04:00
Julian Lam
5e47b19488 refactor: expose buildRecipients as a main activitypub lib method, call buildReceipients in ap controller actors for notes 2024-10-23 11:28:55 -04:00
Julian Lam
c34407d8b8 fix: lint 2024-10-17 11:31:32 -04:00
Julian Lam
8a1abe686c fix: duplicate logic and double-parsing issue, #12834 2024-10-07 14:39:55 -04:00