Commit Graph

301 Commits

Author SHA1 Message Date
Bryan Ashby d03718d55e
Move avatar handler to generic system general handler 2023-01-22 10:18:52 -07:00
Bryan Ashby 3f2dcee5a7
Add avatar support
* Default generated for new users (oputil.js tool to come)
* Defaults to setting ActivityPub image/icon
* Allows ops to configure the look, extend, etc.
2023-01-21 20:57:22 -07:00
Bryan Ashby 468f1486c0
Use a Collection for outbox 2023-01-21 18:51:54 -07:00
Bryan Ashby ce7dd8e1cd
Handle Undo 2023-01-21 01:19:19 -07:00
Bryan Ashby d9e4b66a35
Cleanup, DRY, logging 2023-01-20 22:15:59 -07:00
Bryan Ashby 9517b292a4
Work on shifting code to generic collections, etc. 2023-01-20 16:03:27 -07:00
Bryan Ashby 930308e07f
Fix POST to Accept Follow Request 2023-01-19 22:31:14 -07:00
Bryan Ashby b075e25330
Cleanup 2023-01-13 23:55:05 -07:00
Nathan Byrd 4841823d67 Additional merge changes 2023-01-13 23:16:55 -06:00
Nathan Byrd 3cb4f5158e Merge upstream 2023-01-13 23:00:12 -06:00
Bryan Ashby 315d77b1c0
Start Collection, some extra Actor props, start Followers, cleanup/DRY/etc. 2023-01-13 21:27:02 -07:00
Nathan Byrd c796a856b1 Bug squashing and refactored inbox 2023-01-13 16:03:09 -06:00
Nathan Byrd 84dde6c5c5 Small bugfixes 2023-01-13 13:26:12 -06:00
Bryan Ashby 9ad0cabd04
Test hook 2023-01-13 09:52:21 -07:00
Bryan Ashby 5e5c9236ec
Return a outbox WIP 2023-01-12 23:19:52 -07:00
Bryan Ashby 157b90687c
Move ActivityPub stuff under activitypub/ 2023-01-12 18:49:13 -07:00
Bryan Ashby eaadd0a830
Persist exported/published messages to ActivityPub 2023-01-12 18:26:44 -07:00
Bryan Ashby 64848b4675
Initial 'Note' support for ActivitiyPub/Mastodon, reconition of @User@domain ActivityPub addresses, skeleton for ActivityPub scan/toss 2023-01-11 22:37:09 -07:00
Bryan Ashby ef118325ba
Add intiial 'flavor' for ActivityPub messages 2023-01-11 09:47:07 -07:00
Bryan Ashby 01cd91b045
Fix route 2023-01-08 20:43:16 -07:00
Bryan Ashby 44c67f5327
Added HTTP util: postJson(), post Accept Activity to server with signing 2023-01-08 20:34:30 -07:00
Bryan Ashby 3a70cc6939
Abilitiy to respond with 'Accept' Activity and ActivityPubSettings user props 2023-01-08 17:11:49 -07:00
Bryan Ashby e5b2beffcf
Actor.fromLocalUser() 2023-01-08 13:42:52 -07:00
Bryan Ashby 2370185bcc
Tidy 2023-01-08 13:26:52 -07:00
Bryan Ashby f86d9338a1
Start work on Activity and Actor objects, validation, fetching, etc. 2023-01-08 13:18:50 -07:00
Bryan Ashby 55b210e4e7
Steps to allow follow requests 2023-01-08 01:22:02 -07:00
Bryan Ashby 23f753e4b3
Web Handlers are now given the parent Web Server directly 2023-01-07 09:50:16 -07:00
Bryan Ashby a1e54dee6d
Log cleanup 2023-01-06 18:55:24 -07:00
Bryan Ashby 60238de017
Some tidy and log cleanup 2023-01-06 18:05:11 -07:00
Nathan Byrd b252f69f05 Changes to work with Mastodon. Also fixed variable rename issue 2023-01-06 16:09:08 -06:00
Bryan Ashby 848044bec6
Prettier 2023-01-06 13:49:13 -07:00
Nathan Byrd d615b53f1f Small fixes to activitypub json output 2023-01-06 13:49:45 -06:00
Nathan Byrd e478665456 Added public key to selfUrl 2023-01-06 13:42:15 -06:00
Nathan Byrd 344d4716ce Added ability to use .json to get JSON from self URL. Also added some logging. 2023-01-06 13:15:29 -06:00
Bryan Ashby 5055337eff
Hand back a profile for self 2023-01-04 20:29:18 -07:00
Bryan Ashby d4f74447ec
Skeleton work 2023-01-03 20:42:36 -07:00
Bryan Ashby 6cea4269b2
More utils, tidy, and activitypub.js added 2023-01-03 20:32:09 -07:00
Bryan Ashby 127e9794ee
Central check for enable/disabled web handlers, added some utility functions, etc. 2023-01-03 15:10:39 -07:00
Bryan Ashby 99e9ebbec9
Utility, cleanup, etc. 2023-01-02 22:25:32 -07:00
Bryan Ashby 092acc0138
Tidy 2023-01-02 16:55:36 -07:00
Nathan Byrd 395676f19d accountStatus cannot both be inactive and disabled, changed to or condition. Also removed outdated comment. 2023-01-02 15:20:24 -06:00
Bryan Ashby 25e3630458
Additional variables for profile/template 2023-01-01 21:15:43 -07:00
Bryan Ashby ff219cbb06
Filter disabled/inactive users out 2023-01-01 20:54:19 -07:00
Bryan Ashby 380920f6c8
Profile template ability 2023-01-01 19:19:51 -07:00
Nathan Byrd db652bff59 Just added some info to the profile as an example. 2023-01-01 11:07:33 -06:00
Nathan Byrd e1b4c3e510 Refactored profile to be part of webfinger 2023-01-01 10:47:59 -06:00
Bryan Ashby 38098b46f1
Comments 2022-12-31 17:51:03 -07:00
Bryan Ashby a00a93859e
Extend from WebHandlerModule 2022-12-31 15:48:51 -07:00
Bryan Ashby 0e32e3856e
Add CognitiveGears to author 2022-12-31 15:39:54 -07:00
Bryan Ashby e78f9cdb71
Merge branch '459-activitypub-integration' of github.com:NuSkooler/enigma-bbs into 459-activitypub-integration 2022-12-31 15:31:53 -07:00
Bryan Ashby 7b5cb165ee
Updates to WebFinger resource parsing 2022-12-31 15:30:54 -07:00
Nathan Byrd fb035f2b58 Added a start at a profile 2022-12-31 16:28:03 -06:00
Nathan Byrd d8de6171aa Added additional fields from Masto 2022-12-31 13:05:59 -06:00
Bryan Ashby 46bc92a690
WebFinger update: return super basic info 2022-12-31 00:38:09 -07:00
Bryan Ashby b1bb66e52f
WebFinger stub 2022-12-30 22:39:39 -07:00
Bryan Ashby d2d5aad236
Add concept of 'handlers' to web server 2022-12-30 22:35:18 -07:00
Bryan Ashby c265a44c1a
Bump version to 0.0.14-beta + major web server updates 2022-12-29 00:56:10 -07:00
Bryan Ashby 8c92f3cc49
Log IPs 2022-09-25 18:29:00 -06:00
Bryan Ashby c4518c7b94
Tidy/DRY 2022-09-25 14:00:52 -06:00
Bryan Ashby 5f6d70e460
Some fixes to NNTP POSTs, logging, etc. 2022-09-23 11:06:33 -06:00
Bryan Ashby 2cb0970a31
Add 'allowPosting' config 2022-09-22 21:24:24 -06:00
Bryan Ashby d2dafc4dbc
Initial NNTP write access support 2022-09-22 21:03:53 -06:00
Bryan Ashby e61be537aa
Minor bug fix 2022-09-21 08:26:52 -06:00
Bryan Ashby 4d6bc98a0f
Fix a dumb :( 2022-08-21 15:43:53 -06:00
Bryan Ashby 7060bf270b
Better debug logs 2022-08-21 15:41:37 -06:00
Bryan Ashby 4a63bc577e
Fix terminology used in code 2022-08-21 14:03:19 -06:00
Bryan Ashby 1f130347d5
Fix missing check 2022-08-21 14:02:47 -06:00
Bryan Ashby c8df7f3d6b
New easier to manage Gopher include/exclude areas with wildcard support
* Deprecate but still support older format for now
* Add new format allowing easier management
2022-08-21 13:27:32 -06:00
Bryan Ashby 4881c2123a First pass formatting with Prettier
* Added .prettierrc.json
* Added .prettierignore
* Formatted
2022-06-05 14:04:25 -06:00
Bryan Ashby dd6a0553d8
Some additional cleanup 2022-04-26 12:36:31 -06:00
Bryan Ashby 8283971b53
Update variable to disable SSH keep-alive checks which break NetRunner :( 2022-04-08 16:41:22 -06:00
Bryan Ashby 9019479bfd
Initial update, some quirks to work out with NetRunner mostly 2022-04-06 10:01:21 -06:00
Bryan Ashby b2fda13085
Update LRU cache backend used for NNTP server 2022-04-05 21:01:35 -06:00
Bryan Ashby e0ecf37869
FIX: Certain telnet clients make the BBS crashes. #369
userVars -> uservars to match telnet-socket impl.
2021-10-22 10:29:47 -06:00
Bryan Ashby c30b52c9d8
fix: ensure we have vars before attempting to fetch from them 2021-03-27 00:04:07 -06:00
Bryan Ashby 392dc160a0
Fix a dumb 2021-02-04 19:32:28 -07:00
Bryan Ashby 31f94efdd8
Better handling of bots hitting bad Gopher selectors 2021-02-04 19:27:57 -07:00
Bryan Ashby cd3b495e6c
SECURITY FIX
* Do not allow relative paths to route outside of www static root area
2020-11-27 12:50:57 -07:00
Bryan Ashby f7e4b57763
Gopher server revamp!
* gophermap support
* More generic and flexible server
2020-11-27 00:54:56 -07:00
Bryan Ashby 9e9dc9af89
A lot of code tidy up 2020-06-15 19:08:55 -06:00
Bryan Ashby 6258a39c57
Merge pull request #283 from NuSkooler/new-telnet-server
New telnet server implementation based on telnet-socket, includes new websocket server (which inherits from telnet) and some misc updates to I/O.
2020-06-03 20:36:37 -06:00
Bryan Ashby 5b20c3ec38
Crash using VTX Client #284
* Fix try/catch around JSON.parse()
* Ensure we don't try to replace on null/undefined no matter what
2020-06-01 19:22:15 -06:00
Bryan Ashby 74078939cc
DO should be a DONT for echo 2020-05-31 14:54:33 -06:00
Bryan Ashby 29ef0935c3
Don't send back don't in respond to wont new_environ 2020-05-31 11:49:32 -06:00
Bryan Ashby 438a3161d0
Fix up remoteAddress for WebSocket connections 2020-05-27 21:31:51 -06:00
Bryan Ashby 2234a71705
Working much nicer 2020-05-22 12:55:52 -06:00
Bryan Ashby eeba609560
This is broken WIP. Goign to refactor, but on the road... 2020-05-22 11:41:59 -06:00
Bryan Ashby 2a93de9487
Yet more ANSI-BBS related updates 2020-05-21 21:22:15 -06:00
Bryan Ashby 1e6c577cd3
More ANSI-BBS compliant... still some to go 2020-05-21 19:16:40 -06:00
Bryan Ashby 65d68f33dc
Allow passthrough 2020-05-20 20:23:09 -06:00
Bryan Ashby e85ba322ce
WebSockets work with new telnet server 2020-05-18 19:19:30 -06:00
Bryan Ashby 6d307ec06b
Clean up a bit. Still more to do... 2020-05-18 18:41:23 -06:00
Bryan Ashby a1ac6dfc67 Shim in dataHandler for toggling from elsewhere 2020-05-18 00:33:14 -06:00
Bryan Ashby e517e31b94 Working fairly well 2020-05-17 22:35:03 -06:00
Bryan Ashby 1018485e8e WIP 2020-05-17 21:36:48 -06:00
Bryan Ashby 75787b6107
Start work on new telnet server 2020-05-17 20:22:16 -06:00
Bryan Ashby cd3b8d5e76
Low hanging fruit: Don't re-create binary parsers constantly 2019-12-05 20:48:13 -07:00
Bryan Ashby c9ff904b2b
Fix various minor mistakes 2019-11-08 19:20:14 -07:00
Bryan Ashby 3eed388e33
BBSLink + WebSockets does not update key press monitor 2019-07-11 22:49:15 -06:00
David Stephens 65b48a2af2 Fix MRC prettyBoardName and /INFO 2019-06-22 23:16:08 +01:00