Commit Graph

2718 Commits

Author SHA1 Message Date
spiral 020a6f99fe feat(docs): add some previously undocumented commands 2023-03-25 16:08:44 -04:00
Sai 77142e244f feat(docs): misc improvements 2023-03-25 15:26:55 -04:00
Bray 1a4b21ccac
feat(bot): support threads for logs (#541) 2023-03-24 15:18:23 +00:00
Bray 93bef6ea15
feat: add redis requirements to readme (#542) 2023-03-24 15:05:25 +00:00
repository 37025bbeb3
fix promised not being awaited in groups card view (#539) 2023-03-22 03:56:11 +00:00
Iris System 2bffee5450 fix(bot): fix import/export with incorrect webhook_avatar_url
Incorrect use of `member.WebhookAvatarFor` in member JSON creation
meant that exports of members without a webhook avatar set had the
normal avatar URL present in both fields.

This also adds a check to the importer to ignore the value of the
webhook_avatar_url field if it is the same as the avatar_url field.

Fixes: ccb89f50e9 (feat(bot): allow separate member avatars for proxied messages)
Co-authored-by: spiral <spiral@spiral.sh>
2023-03-21 23:35:49 +13:00
repository 399cfdb19f
unbreak stuff (#538) 2023-03-20 22:39:00 -04:00
repository e6da70de6c
fix(dashboard): fix parsing error when group display name not present (#537) 2023-03-20 22:24:48 -04:00
Subroutine7901 89d7d11b69
fix(docs): correct typo (#535) 2023-03-20 14:11:35 +13:00
spiral a8e3624594 fix(api): don't ignore private routes 2023-03-19 15:19:52 -04:00
spiral b2f47f8e53 fix(api): temporarily use custom client-ip header for ratelimiting 2023-03-19 14:17:03 -04:00
spiral a888e9693b feat(web-proxy): use DNS names for remotes 2023-03-19 14:14:05 -04:00
spiral 636535fa33 fix(api): add status, endpoint to metrics/logger 2023-03-19 12:30:31 -04:00
spiral d7e34bb884
Merge pull request #534 from PluralKit/rust-api
rust skeleton
2023-03-19 11:26:37 -04:00
spiral 098f32026f fix(ci): typo 2023-03-19 11:20:57 -04:00
spiral d2ef31b670 add token2 to config 2023-03-19 11:18:09 -04:00
spiral e711e86ea3 move metrics dependency to workspace Cargo.toml 2023-03-19 10:44:37 -04:00
spiral 0cebf5e114 chore: clean up web-proxy 2023-03-18 23:21:29 -04:00
spiral f382d30693
Merge branch 'main' into rust-api 2023-03-18 23:20:40 -04:00
spiral 751a4f9bc9 typo 2023-03-18 23:14:16 -04:00
spiral fcc270f121 feat(api): prometheus metrics 2023-03-18 23:06:55 -04:00
spiral d120a32904 fix ratelimits 2023-03-18 20:44:50 -04:00
Ouroboros 4ca296de6c
feat(bot): 'g' shorthand for pk;m <n> group (#532) 2023-03-13 16:38:20 +00:00
repository 5a248e26a2
reduce dashboard bundle size by lazy loading highlight.js languages (#533)
* lazyload hl.js languages

* pin repository/discord-markdown
2023-03-13 17:13:09 +01:00
Ouroboros 97be223173
feat(bot): Switch subcommand aliases (#531) 2023-03-12 02:24:54 +00:00
V Morrison-Wood 199d5927f5 fix(dash): Group delete prompts 2023-03-12 01:59:41 +00:00
spiral f6a9d693cd fix(bot): ignore charset from discord cdn for export files 2023-03-11 17:45:22 -05:00
spiral f58ada7fac chore(web-proxy): update remote urls, add grafana 2023-03-09 12:06:30 -05:00
foundationkitty 0881996ca8
fix(docker-compose): add redis env var to api service (#528)
- Add RedisAddr env variable to api service to match bot service
2023-03-07 08:12:23 +13:00
spiral 1da94706cb chore(web-proxy): update server ip 2023-03-05 09:42:23 -05:00
the iris system ccb89f50e9
feat(bot): allow separate member avatars for proxied messages (#523)
This allows for using one avatar for the member card, and a different
avatar for proxied messages - so that users can set the main avatar to
a "full" version of their avatar, and the "proxy" avatar to a cropped
version.
2023-03-02 06:11:35 +13:00
Iris System 7fffb7f65a fix(web-proxy): move UA check into API block, small clean up 2023-03-01 06:11:08 +13:00
spiral 7e606ca8b2
fix(dashboard): set up replaceAll polyfill correctly 2023-02-28 15:44:07 +00:00
Jake Fulmine e0c4b23f5e feat(dashboard): add system recovery section 2023-02-28 00:12:31 +01:00
sam e9aaf7d540
feat(docs): update pkgo import url (#522) 2023-02-26 18:44:20 -05:00
spiral 4c6217c48b feat(ci): better rust CI 2023-02-26 17:13:56 -05:00
Iris System 5e60dec6ec fix(api, docs): send HTTP 400 on empty User-Agent, update docs 2023-02-27 09:56:00 +13:00
Iris System b2c61e3e8e fix(bot): correctly use thread permissions in reproxy check 2023-02-27 09:18:00 +13:00
spiral c6c5ae1496 cache rust build dependencies in dockerfile 2023-02-25 12:14:05 -05:00
Iris System 1b3fa07c67 feat(bot): update help message footer with bot icon credit 2023-02-25 08:26:08 +13:00
spiral 5440386969 feat(api): init rust rewrite 2023-02-15 19:27:36 -05:00
spiral 5da3c84bce feat(api): block empty user-agents 2023-02-15 12:58:59 -05:00
Ambre Bertucci 95389e8df8
feat(api): allow custom user-agents in cors headers (#520)
Firefox's (correct) CORS implementation considers `User-Agent` as a forbidden header and requires the server to explicitly opt into custom UAs by allowing this header in `Access-Control-Allow-Headers`.

This commit enables CSR apps to correctly communicate which tools they are part of.
2023-02-15 17:42:22 +00:00
spiral 3e76fd8d28 chore: require redis connection for bot 2023-02-12 18:00:05 -05:00
spiral 52c9ca9d0e github pls 2023-02-12 17:59:33 -05:00
spiral a39d0c8ab6
fix(api): check visibility for group members in groups endpoint 2023-02-12 04:29:11 +00:00
spiral b904be939a feat(api): log requests as json instead of plaintext 2023-02-11 11:13:46 -05:00
Iris System 51ceb36129 fix(bot): use newly-exposed message ID in Carl-bot logclean 2023-02-08 03:05:08 +13:00
spiral e6d8c44d72 fix(api): use cache for switch member lookups 2023-02-06 19:33:54 -05:00
spiral 0a58c9a9ed fix: re-enable deleting messages from db (but correctly this time) 2023-02-06 19:31:37 -05:00