Commit Graph

90 Commits

Author SHA1 Message Date
Julian Lam
c5e10c1a41 fix: parse aboutme when mocking a user 2024-09-30 10:51:20 -04:00
Julian Lam
edff339498 feat: dynamic category icon generation
When a category is retrieved via activitypub, NodeBB will now
generate an SVG and PNG representation of the category utilising
the "icon", "color", and "bgColor" values.

closes #12507
2024-09-27 13:29:41 -04:00
Julian Lam
6fe4d44675 fix: explicitly set updated property when federating notes out 2024-09-24 12:15:10 -04:00
Julian Lam
3c55d1024d fix: better handling for remote posts that do not contain content 2024-09-16 15:46:12 -04:00
Julian Lam
1a0a2cd17b fix: #12799 add externally linked images to attachment 2024-09-16 15:07:37 -04:00
Julian Lam
cbe0a0ad5c fix: serve category actor image instead of nothing, serve brand logo in icon 2024-08-06 15:06:01 -04:00
Julian Lam
d33fb92d9d fix: lint 2024-08-02 15:47:27 -04:00
Julian Lam
9353638668 fix: have note federation call .parsePost instead of firing plugin hook 2024-08-02 15:47:03 -04:00
Julian Lam
709a02d97a feat: allow use of vanity domains pointing to an account hosted elsewhere 2024-08-02 11:47:23 -04:00
Julian Lam
ff08fbb73f fix: always send replies uri instead of null if no replies exist, @trwnh 2024-08-01 14:59:28 -04:00
Julian Lam
9bd6896d13 fix: send null instead of empty array in replies property if mocked note has no replies
re: mastodon/mastodon#31230
2024-08-01 11:35:38 -04:00
Julian Lam
39f92eac16 refactor: store local follow backreferences for remote users (both followers and following), update actor pruning to take local follow counts into consideration, fixes #12701 2024-07-19 14:37:32 -04:00
Julian Lam
00a266790d fix: federating category mentions 2024-07-09 15:42:08 -04:00
Julian Lam
f605e188db fix: send html in category description 2024-07-09 15:13:12 -04:00
Julian Lam
3c9337b730 feat: send join date in local actor mock 2024-07-09 14:06:59 -04:00
Julian Lam
af6ae6ee8a fix: send back empty array if no direct replies, bug with reply generation 2024-07-05 15:50:14 -04:00
Julian Lam
26a7c51a9a feat: AP note replies collection, closes #12675 2024-07-05 15:33:06 -04:00
Julian Lam
8e1fccf014 fix: accidental passing-in of an array into getUserField, breaks in pgsql? 2024-07-05 14:19:15 -04:00
Julian Lam
4949d6c4e5 test: fix broken test in category follows 2024-07-05 13:33:00 -04:00
Julian Lam
d92efb8a0c fix: #12667; handle cases where received id is not a URL 2024-07-05 11:29:05 -04:00
Julian Lam
20aee8e9ae refactor: context item retrieval logic 2024-06-28 16:28:48 -04:00
Julian Lam
615aaa01d6 fix: improper sourceContent in mocks 2024-06-28 12:54:41 -04:00
Julian Lam
b66d998d37 fix: #12654, incorrect location of sharedInbox property 2024-06-25 11:29:20 -04:00
Julian Lam
16f8f536da fix: do not retrieve remote outbox count when asserting actor
This change means that a remote user's post count is only the number
of posts they have stored locally. This is easier to reconcile with
the profile UI since showing the artificial number could cause issues
if the local instance contains fewer or no posts by that user.

fixes #12646
2024-06-21 16:48:17 -04:00
Julian Lam
d9ac7f4995 fix: double sanitization 2024-06-20 22:25:09 -04:00
Julian Lam
59818031bc fix: improper sanitization and parsing in mocks.note
- sanitize-html invocation was stripping out images by default, now added as an exception
- only post content was passsed into filter:parse.post, but hook expects post summary
2024-06-19 11:24:24 -04:00
Julian Lam
4eb998d59d fix: send additional @context entry for publicKey support, fixes #12604 2024-06-17 16:27:59 -04:00
Julian Lam
f5b856f4fd feat: assert actors when mocking post 2024-06-14 12:22:11 -04:00
Julian Lam
d9f1fa3ad3 feat: plumb audience into _activitypub when mocking posts 2024-06-13 17:05:37 -04:00
Barış Soner Uşaklı
3eca978509 refactor: add method from mentions into core
turn remote url into local profile urls if they are found in remoteUrl:uid
2024-06-12 20:31:36 -04:00
Barış Soner Uşaklı
f8d9f644e6 fix: another crash 2024-06-07 11:55:21 -04:00
Barış Soner Uşaklı
35eb2d0d46 fix: closes #12618, handle missing selector
catch errors in activitypub api missing await on next()
2024-06-06 20:59:02 -04:00
Barış Soner Uşaklı
6f37825b1a fix: crash in mocks.profile 2024-06-04 12:30:47 -04:00
Julian Lam
47406d1309 fix: parse incoming HTML to remove useless classes too 2024-05-30 12:04:37 -04:00
Julian Lam
7c79e2310a feat: add another sanitization round before federating to remove classes from all tags in output html, closes #12573 2024-05-23 15:29:32 -04:00
Julian Lam
b6653d153a fix: have replies provide name when mocked 2024-05-23 12:36:03 -04:00
Julian Lam
8cf9617630 feat: passing in types to parsePost for more specific handling by plugins 2024-05-17 15:22:13 -04:00
Julian Lam
1fa9346563 refactor: #12553, buildRecipients so that it is separate from addressing in mocks.js 2024-05-10 15:30:45 -04:00
Julian Lam
5e9d47a1d8 feat: serve Tombstone objects for soft deleted posts
re: #12551
2024-05-07 12:16:23 -04:00
Julian Lam
738d47c7db fix: save followersUrl to remote user hashes 2024-05-06 14:46:26 -04:00
Julian Lam
4b29a1b91d refactor: context actor to serve an as:OrderedCollection instead of as:Page, and added context property (as per FEP-7888) to refer to it, changed audience to point to category 2024-05-03 14:11:25 -04:00
Julian Lam
94eafe1df3 refactor: split activitypub tests to subfolder files 2024-04-26 11:30:08 -04:00
Opliko
026449dc4a fix: support reporting remote content in Flag 2024-04-14 02:42:30 +02:00
Julian Lam
7c4ae8eb82 fix: #12505, convert relative urls in links and images into absolute urls, uses same logic as for emails 2024-04-12 15:30:59 -04:00
Julian Lam
64258dac19 fix: send userslug in preferredUsername 2024-04-12 14:26:37 -04:00
Julian Lam
50f31b236a fix: wrong variable name 2024-04-12 14:13:46 -04:00
Julian Lam
fdbd30dc23 feat: integrate post uploads into attachments for outgoing note mocks 2024-04-12 14:08:28 -04:00
Julian Lam
bb4e418dde fix: change default attachment type to Link, or Image if mediaType matches 2024-04-12 12:56:18 -04:00
Julian Lam
525b7c2cee feat: save remote post url into hash for use 2024-04-11 13:25:37 -04:00
Julian Lam
6fc6cc33cd feat: note attachments via link preview plugin 2024-04-10 22:01:50 -04:00