Commit Graph

437 Commits

Author SHA1 Message Date
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
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
spiral
3e76fd8d28 chore: require redis connection for bot 2023-02-12 18:00:05 -05:00
spiral
0a58c9a9ed fix: re-enable deleting messages from db (but correctly this time) 2023-02-06 19:31:37 -05:00
Iris System
3fd16182f0 fix(bot): allow end-of-line space on otherwise empty blockquote line
Fixes #507
2023-02-05 01:20:52 +13:00
spiral
b13659817d fix(bot): try fetching messages from database before deleting 2023-01-15 17:34:40 +00:00
Iris System
683b616a1b fix(bot): make pk;import handle <> wrapped URLs 2023-01-09 04:32:41 +13:00
Iris System
10287d0146 chore: update lockfiles (since dependabot didn't) 2023-01-09 04:31:11 +13:00
dependabot[bot]
b5b3560c62
chore(deps): bump Newtonsoft.Json in /PluralKit.Core
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.2)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 06:22:50 +00:00
Iris System
631c6027ab feat(bot): allow timestamps in "military time" (HHmm, no colon) 2023-01-08 03:07:22 +13:00
spiral
2fe83fc18c
feat: enforce urls to be https instead of http 2022-12-29 00:54:32 +00:00
spiral
e11f4f23ab
chore: remove dead code in DatabaseViewsExt 2022-12-29 00:53:13 +00:00
spiral
91f5e7c8f6
fix(bot): quick fix for timescaledb issues 2022-12-15 01:40:37 +00:00
spiral
de9cae0cbd
feat(api): add member.message_count, member.last_message_timestamp 2022-12-15 00:50:24 +00:00
spiral
513c3e1a72
feat(api): add member.autoproxy_enabled 2022-12-15 00:49:55 +00:00
spiral
a70b6f31fc
chore: lint 2022-12-14 14:47:48 +00:00
spiral
f77308f344
fix(bot): i need to test my code properly before pushing it 2022-12-10 17:07:07 +00:00
spiral
24db9f28c2
fix(bot): add callback to update message count after proxying
also re-add -with-last-message flag :D
2022-12-10 16:50:22 +00:00
spiral
b2e4ff38e3
feat: use sqlkata for a few more queries 2022-12-03 12:04:12 +00:00
spiral
026a822c74
feat: add logging to Seq 2022-12-03 11:49:19 +00:00
spiral
831b6d3301
chore: remove unused system_fronters view 2022-12-01 11:54:13 +00:00
spiral
770907f232
fix(api): load metrics reporting module
i don't know why this fixes it, but it does somehow
2022-11-25 08:53:24 +00:00
spiral
07845edee6 Merge remote-tracking branch 'origin/main' 2022-11-24 06:32:59 +00:00
spiral
e9673a6704
feat: use redis cache for non-id message lookups 2022-11-24 06:32:55 +00:00
spiral
bf7747ab34
feat: split out messages table from main database 2022-11-23 09:17:19 +00:00
Katrix
4f0236d766
feat(bot): Case insensitive proxy tags matching (#490) 2022-11-23 21:48:24 +13:00
spiral
12323f3662
fix: don't write raw sql queries to influxdb metrics 2022-11-17 02:51:04 +00:00
spiral
4bf4197c2a
feat(stats): rewrite scheduled tasks runner, use timescaledb instead of influxdb 2022-06-26 14:19:46 -04:00
spiral
5c055871e3
feat(bot): store command message info in redis 2022-06-19 20:28:55 -04:00
spiral
9848b88d5b
feat(bot): don't query db message context when running commands 2022-06-15 19:28:34 -04:00
spiral
7cb3a3ea0f
feat(bot): remove hacky fix for extremely slow system deletes
they are no longer extremely slow
2022-06-15 18:52:50 -04:00
spiral
b75e59da2f
feat: allow specifying database password in separate config parameter 2022-06-13 15:23:13 -04:00
spiral
92ef6d4ec3
fix(api): return updated switch in PATCH /switches/:id 2022-06-11 17:16:53 -04:00
spiral
2fbd5cf6c1
chore: remove unused files from repo 2022-06-11 00:46:37 -04:00
spiral
58a9206d5c
feat: re-enable message count stats updater 2022-06-10 18:48:00 -04:00
spiral
c87979ef03
feat(api): add autoproxy endpoints 2022-06-02 13:32:31 -04:00
spiral
40955ffc69
fix: don't try to import config if it's not present in export file 2022-05-25 06:32:24 -04:00
spiral
e4f1957c75
chore: bump target schema version in DatabaseMigrator 2022-05-09 15:17:26 -04:00
spiral
3a99f65b49
feat(api): add description_templates to /systems/@me/settings 2022-05-09 13:54:33 -04:00
spiral
917aacc4f4
chore: bump export file version 2022-04-24 14:40:49 -04:00
spiral
32b41de331
fix: don't try to parse privacy from v1 JSON model as v2 privacy model 2022-04-24 14:39:05 -04:00
spiral
7aaad288e6
chore: remove API v1 2022-04-20 12:20:03 -04:00
spiral
7afba4ea95
chore: code cleanup (mostly whitespace / remove unused imports) 2022-03-30 04:36:22 -04:00
spiral
a1d8d246c5
refactor: move Database query methods into own file 2022-03-30 03:00:45 -04:00
spiral
b25d5f1b67
lint 2022-03-30 02:36:39 -04:00
spiral
be89f907a0
feat: block running commands / proxying when system is being deleted
Large systems take way too long to delete, which causes any insert for that system to block a connection, which exhausts the connection pool
2022-03-23 21:32:18 -04:00
spiral
375e650c9e
fix build 2022-03-23 20:35:40 -04:00
spiral
0bad2e8ff9
Revert "refactor: run InfluxDB reporter through AppMetrics instead of per-minute task"
This reverts commit 38a3683fca.
2022-03-23 19:28:51 -04:00
spiral
38a3683fca
refactor: run InfluxDB reporter through AppMetrics instead of per-minute task 2022-03-23 14:41:55 -04:00
spiral
97c14b20b0
fix(api): don't 500 on invalid PATCH body 2022-03-23 14:26:54 -04:00