Commit Graph

1547 Commits

Author SHA1 Message Date
Julian Lam
e00a03bb9c fix: revert home page routing change and moved instance actor endpoint to 2024-01-24 14:09:40 -05:00
Julian Lam
da0211b1a0 feat: proper webfinger response for instance actor 2024-01-23 11:22:18 -05:00
Julian Lam
92c990f2f7 chore: remove debug log 2024-01-23 10:16:44 -05:00
Julian Lam
9885f94a2b feat: application actor + public key for uid 0 signs, moved homepage route to after core routes are generated 2024-01-22 16:18:49 -05:00
Julian Lam
76c6e30282 Merge remote-tracking branch 'origin/develop' into activitypub 2024-01-22 13:50:08 -05:00
Barış Soner Uşaklı
e8befbcc6f test: add plugin id tests 2024-01-17 15:18:26 -05:00
Julian Lam
91a509c4eb test: fix error copy 2024-01-08 15:03:46 -05:00
Julian Lam
8d79617044 fix: broken call to request lib, tests 2023-12-21 14:38:16 -05:00
Julian Lam
0d6f0530f5 Merge remote-tracking branch 'origin/develop' into activitypub 2023-12-19 14:02:33 -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
24c1dfac8c test: allow http proto on ci 2023-12-14 12:25:06 -05:00
Julian Lam
48fd2e6441 Merge remote-tracking branch 'origin/develop' into activitypub 2023-12-13 13:21:32 -05:00
Julian Lam
1f79f54241 feat: update activitypub helper resolveLocalUid to accept both webfinger name and full URL as input 2023-12-11 14:35:04 -05:00
Barış Soner Uşaklı
7c416efc89 Merge branch 'master' into develop 2023-12-08 11:07:39 -05:00
Barış Soner Uşaklı
c434262e21 fix: change translator escape
remove \\\] and \\\[
match double ] and [
2023-12-08 10:58:13 -05:00
Julian Lam
cc0d18869a test: fixed improper signed_string reconstruction in .verify() 2023-12-06 13:38:41 -05:00
Julian Lam
bcee1c8dc8 fix: incorrect host/hostname usage in well-known test 2023-12-06 13:38:41 -05:00
Julian Lam
9dfa1b7209 test: fix webfinger test 2023-12-06 13:38:41 -05:00
Julian Lam
cdc4275fec feat: actor cache, method to resolve inboxes, stub code for sending requests. Now base64 encoding digest as expected by Mastodon 2023-12-06 13:38:41 -05:00
Julian Lam
a10df9873b test: added passing test cases for .sign() and .verify() 2023-12-06 13:38:41 -05:00
Julian Lam
ab3ff320b5 refactor: acp tpl + config option
- Updated ACP template to match new format
- changed global switch to `activitypubEnabled` (lowercase p)
2023-12-06 13:38:18 -05:00
Julian Lam
099124c49e feat: global switch for disabling federation, + test 2023-12-06 13:38:18 -05:00
Julian Lam
1c8e13bb12 test: updated activitypub test suite 2023-12-06 13:38:18 -05:00
Julian Lam
4bd8d28a8b test: added test cases for activitypub integration, WIP 2023-12-06 13:38:18 -05:00
Julian Lam
51d8f3b195 fix: moved .well-known assets to separate router file, added basic webfinger implementation
added tests for webfinger controller
2023-12-06 13:38:18 -05:00
Julian Lam
445b70deda test: migrate socket modules tests to v3 api 2023-12-05 11:47:55 -05:00
Julian Lam
565ca3cc3b fix: deprecated emailer hook 2023-12-05 10:41:23 -05:00
Julian Lam
2c1c4dfe41 test: migrate socket.io groups tests to use api v3 2023-12-05 10:41:14 -05:00
Julian Lam
2c6024e07f feat: update groups.leave to allow global mods to kick users out of groups 2023-12-01 13:04:32 -05:00
Julian Lam
a4133500fe refactor(socket.io): deprecate SocketModules.chats.canMessage and .markAllRead with no alternative. deprecate .getRecentChats in favour of api.chats.list 2023-11-20 13:06:26 -05:00
Barış Soner Uşaklı
fdff165e2b feat: closes #12154, add exempt groups
for new user restrictions
2023-11-07 12:36:40 -05:00
Barış Soner Uşaklı
4c4f3ac983 feat: add direct message link (#12138)
* feat: add direct message link

/message/:mid
add /:index? to chat routes
add copy link to chat messages
add messageCount to each room object
add infinitescroll in both directions to chat

* fix more tests

* test: more text fixes

* test: fix tests

* remove async

* dont crash if element not in dom

clamp scrollToIndex values to 0, msgCount
2023-10-31 10:15:06 -04:00
Barış Soner Uşaklı
6c7e614417 feat: batch.processSortedSet min/max (#12129)
* feat: batch.processSortedSet min/max

* test if this works
2023-10-26 10:23:27 -04:00
Barış Soner Uşaklı
b398321a5e Chat with privileged (#12092)
* Update headers.js

Fixes X-Upstream-Hostname header for os hostnames with invalid characters

* Added missing period in allowed hostname chars

Allowed hostname chars should include A-Za-z0-9-. based on https://man7.org/linux/man-pages/man7/hostname.7.html

* feat: add chat:privileged global privilege

to only allow chatting with privileged users

* test: fix priv test

* test: one more fix

---------

Co-authored-by: chadjw <chad.warner@gmail.com>
2023-10-17 13:19:25 -04:00
Barış Soner Uşaklı
b870538095 lint: fix quotes 2023-10-13 17:19:22 -04:00
Julian Lam
9936442706 test: worked with chatgpt to restrict the i18n test a bit to match requirements 2023-10-13 12:46:37 -04:00
Julian Lam
6606d96aaa test: fix flag tests 2023-10-12 10:23:30 -04:00
Julian Lam
e012edea3b feat: flag rescinding logic + api method 2023-10-12 10:23:30 -04:00
Julian Lam
da2390594a test: added test cases for .addReport and .rescindReport() 2023-10-12 10:23:30 -04:00
Barış Soner Uşaklı
3b46ad424d lint: fix lint 2023-10-06 12:26:09 -04:00
Julian Lam
d25a24fcf4 fix: allowing forward slash in language keys, temporarily allowing upper case characters 2023-10-06 11:29:43 -04:00
Julian Lam
69dde2b9dd test: added i18n test to enforce kebab casing 2023-10-05 14:41:24 -04:00
Barış Soner Uşaklı
844cb91beb feat: update all language keys to use - instead of _ (#12059)
* feat: update all language keys to use - instead of _

* refactor: update language keys
2023-10-05 12:48:50 -04:00
Barış Soner Uşaklı
66be9826a2 test: add reverse list test 2023-10-03 12:50:20 -04:00
Julian Lam
857433d12a fix: breaking tests 2023-10-02 11:19:05 -04:00
Julian Lam
d7e9f32412 test: additional tests for #12034 2023-09-26 14:54:13 -04:00
Barış Soner Uşaklı
f1a80d48cc 10411 (#12037)
* feat: add type to privilege maps

deprecate old hooks that are used for adding new privileges, new hooks are static:privileges.global.init/static:privileges.categories.init

* deprecate admin priv hooks

* fix: if type doesnt exist default to 'other'

* remove filter

* fix: copy privilege functions to use new filter instead of indices

allow static hooks to use sync functions

* fix: openapi

* test: fix template helper
2023-09-25 20:42:18 -04: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ı
e452c097d0 refactor: get rid of some async.waterfall/series/parallel calls 2023-09-22 11:44:32 -04:00
Barış Soner Uşaklı
8bc2ef227e refactor: get rid of async.waterfall/series 2023-09-13 16:23:49 -04:00