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
Julian Lam
2ab5ea39a6
feat: federating out chat messages
...
re #12834
2024-10-07 14:12:31 -04:00
Julian Lam
7f1f485952
feat: send 308 when activitypub request for remote post comes in, #12831
2024-09-30 11:09:46 -04:00
Julian Lam
6fe4d44675
fix: explicitly set updated property when federating notes out
2024-09-24 12:15:10 -04:00
Julian Lam
045e16d3ce
fix : #12760 , add proper security context for application actor
2024-09-06 16:27:12 -04:00
Julian Lam
9a54f6bc7d
fix: audience property in topic actor response
2024-07-29 13:14:06 -04:00
Julian Lam
bc00835c26
fix: logging in topic actor logic
2024-07-19 10:49:43 -04:00
Julian Lam
609035b587
fix: issue with topic actors not returning proper json
2024-07-19 09:38:30 -04:00
Julian Lam
ff0c289e1d
feat: #12695 Topic Synchronization via resolvable context
...
- Generation of a context collection digest via object ids
- Sending of said digest in ETag header
- Parsing of digests via If-None-Match header
- Update note assertion logic to handle 304 response
2024-07-16 11:37:38 -04:00
Julian Lam
cfbaf145f4
fix: off by one error @barisusakli
2024-07-12 14:45:00 -04:00
Julian Lam
f6f01ba345
perf: ~18x speedup of /world route
...
- upgrade script to remove pruned tids that did not get removed from inbox
- switch from db intersect to manual intersection of subset.
2024-07-12 14:38:46 -04:00