Commit graph

40 commits

Author SHA1 Message Date
silverpill
2a9794f8f7 Add API methods for exporting followers and follows 2022-11-24 21:58:00 +00:00
silverpill
0840197cac Fix clippy warnings 2022-11-06 21:20:14 +00:00
silverpill
2e7403ef14 Add redirection views for /profile/{id} and /post/{id} paths 2022-10-27 22:13:53 +00:00
silverpill
b345cb4a77 Allow GET requests from any origin 2022-10-27 15:48:54 +00:00
silverpill
54c8f241e4 Convert JSON payload deserialization errors into validation errors 2022-10-02 21:23:16 +00:00
silverpill
260e62d51b Allow blockchain configuration to be defined using a list
Multi-chain configurations are still not allowed.
2022-08-31 20:42:55 +00:00
silverpill
daaa0855a6 Use /api/v1/subscriptions prefix for subscription API methods 2022-08-25 19:16:46 +00:00
silverpill
4dc94ed39b Return validation error if upload size exceeds limit 2022-08-18 22:39:53 +00:00
silverpill
c546840787 Update actix crate 2022-08-18 18:05:18 +00:00
silverpill
dc7d533c42 Allow blockchain config to have sub-types 2022-08-10 11:57:35 +00:00
silverpill
0e8943a24b Split config module into sub-modules 2022-08-09 22:31:59 +00:00
silverpill
450e47bcef Fix Access-Control-Expose-Headers header 2022-08-06 22:07:33 +00:00
silverpill
2f532307a1 Switch to incremental blockchain synchronization 2022-06-25 11:59:03 +00:00
silverpill
b618c5b31f Use shared ContractSet object when verifing user during registration
Server will not start if blockchain configuration is invalid.
2022-06-23 22:03:51 +00:00
silverpill
0148343655 Use initial block number as lower bound when making log query 2022-06-14 21:31:42 +00:00
silverpill
30f7f5d996 Initialize contract set in main() 2022-06-14 10:46:15 +00:00
silverpill
a526b507f3 Always log server errors 2022-06-02 20:04:36 +00:00
silverpill
783c482e9e Process incoming activities sequentially
This is a quick fix for race conditions occuring during handling of inbox requests.
2022-05-05 16:53:53 +00:00
silverpill
ae4bfcf614 Add cargo feature for making production build 2022-05-04 22:06:12 +00:00
silverpill
c0837bbf77 Create Atom feeds for local users 2022-04-16 19:37:45 +00:00
silverpill
30bd3d6a37 Migrate to actix 4.0 and tokio 1 2022-04-10 19:14:45 +00:00
silverpill
bf27903ee9 Drop database connection before starting HTTP server 2022-02-23 21:33:56 +00:00
silverpill
e48a8999f5 Make /api/v1/accounts return validation error if user already exists 2022-02-11 21:32:37 +00:00
silverpill
75fa39718c Add http_cors_allowlist configuration option 2022-02-10 23:35:23 +00:00
silverpill
a63da82b85 Allow cross-origin requests from localhost in production environment
https://codeberg.org/silverpill/mitra/issues/5
2022-02-08 13:16:46 +00:00
silverpill
f2fb44bb63 Change configuration options related to blockchain integration 2022-01-28 00:41:23 +00:00
silverpill
040934da2d Don't create database conn pool when running mitractl 2022-01-06 11:28:07 +00:00
silverpill
2ab33f22ee Add log_level config parameter and improve logging of activities 2021-12-21 22:19:17 +00:00
silverpill
ec36dea0c9 Log activities coming to instance actor inbox 2021-11-21 13:48:33 +00:00
silverpill
d935b843a8 Create instance actor 2021-11-18 00:51:56 +00:00
silverpill
cc252d1349 Print version on startup 2021-11-13 17:49:04 +00:00
silverpill
aa1ef71857 Refactor some mastodon API modules 2021-11-07 13:37:36 +00:00
silverpill
979588b5b8 Create media directory automatically on start 2021-11-06 12:14:22 +00:00
silverpill
514c7ae237 Refactor config, make ethereum integration optional 2021-11-05 23:47:36 +00:00
silverpill
fbb0bc01cd Add API methods for creating timeline markers 2021-11-03 23:29:11 +00:00
silverpill
c4ea2900c8 Notify user about new followers 2021-10-14 15:10:25 +00:00
silverpill
d4adb55c53 Replace cookie auth with token auth 2021-10-05 22:53:33 +00:00
silverpill
9519786788 Change path of user creation endpoint 2021-10-05 22:52:13 +00:00
silverpill
f6e9c082e2 Implement Oauth 2.0 token service 2021-10-05 00:00:14 +00:00
silverpill
fdef4b6e6a Initial commit 2021-09-14 12:24:05 +00:00