Commit Graph

115 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
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
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
Katrix
4f0236d766
feat(bot): Case insensitive proxy tags matching (#490) 2022-11-23 21:48:24 +13:00
spiral
c87979ef03
feat(api): add autoproxy endpoints 2022-06-02 13:32:31 -04:00
spiral
3a99f65b49
feat(api): add description_templates to /systems/@me/settings 2022-05-09 13:54:33 -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
b25d5f1b67
lint 2022-03-30 02:36:39 -04:00
Jake Fulmine
7efe6f1f97
feat: system pronouns (#429) 2022-03-23 14:20:16 -04:00
spiral
982812333b
feat: rewrite database schema for localized autoproxy 2022-03-21 23:43:33 -04:00
spiral
0419ced0d2
feat: store shard status in Redis 2022-01-22 03:52:52 -05:00
spiral
89c44a3482
feat: cache Discord DM channels in database 2022-01-22 02:47:47 -05:00
rladenson
f3869dbcbe
feat: rework group list into member list 2022-01-14 22:30:02 -05:00
spiral
34df19c551
fix: don't delete rows from messages table when the associated member is deleted 2022-01-11 09:43:55 -05:00
spiral
e4bd8b4c9f
fix: respect group icon privacy in JSON models 2022-01-08 09:00:57 -05:00
spiral
32bea51e18
feat: config setting to default show/hide private info 2021-12-06 04:01:42 -05:00
spiral
d11e84246d
fix crash when importing default latch timeout 2021-12-04 18:32:01 -05:00
spiral
c500e5d50c
fix: export system group list privacy 2021-12-01 17:07:35 -05:00
spiral
1ff6bb76cd
feat: config setting to automatically set members/groups to private when creating 2021-12-01 11:48:49 -05:00
spiral
bd166502cc
feat: remove tz in api v1, add deprecation notice 2021-11-30 17:25:36 -05:00
spiral
56d07e0f2d
feat: pk;config 2021-11-29 21:35:21 -05:00
spiral
04d78e3348
refactor: remove some unused code 2021-11-26 21:14:09 -05:00
spiral
1918c56937
feat: upgrade to .NET 6, refactor everything 2021-11-26 21:10:56 -05:00
spiral
d28e99ba43
fix: get rid of top-level guild_id key in dispatch payloads 2021-11-26 14:45:58 -05:00
spiral
a4a5f5c17a
feat: move PKMessage JSON to PluralKit.Core 2021-11-26 14:23:57 -05:00
spiral
e8d9106543
fix: typo in GroupPatch json 2021-11-25 18:43:34 -05:00
spiral
b8e2ebd470
Merge branch 'feat/webhooks' into main 2021-11-25 17:15:42 -05:00
spiral
7b9d2a4e5e
feat(webhooks): add all events except group member events 2021-11-19 11:37:50 -05:00
Spectralitree
33195b7b93 fix(api): patch correct system privacy fields 2021-11-18 17:12:20 -05:00
spiral
a81ffc3399
feat(webhooks): add basic commands 2021-11-03 02:01:35 -04:00
spiral
71aec0d419
feat(webhooks): init, add service/models, add JSON to patch objects 2021-11-02 06:08:17 -04:00
spiral
44ccf01f93
feat: with_members query string on /systems/:ref/members endpoint 2021-11-01 00:12:11 -04:00
spiral
8e0e393f52
feat(apiv2): docs fixes 2021-10-22 17:54:47 -04:00
spiral
7d36a39a57
feat(apiv2): documentation, misc fixes 2021-10-22 11:20:26 -04:00
spiral
098d804344
feat(apiv2): better model validation error UX 2021-10-13 08:37:34 -04:00
spiral
f602f22a3d
feat(apiv2): guild endpoints 2021-10-13 01:02:34 -04:00
spiral
11620d94c8
feat(apiv2): actually add UUIDs to JSON models 2021-10-12 04:25:06 -04:00
spiral
c3e51d1a48
feat(apiv2): v2 json models 2021-10-12 02:19:42 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral
dbe040f852
feat(apiv2): database changes 2021-09-26 23:18:17 -04:00
Grey Himmel
65b4f0e370
Add color to system JSON representation 2021-09-25 15:05:42 -04:00
spiral
c472a7f6df
lint/fixes, add group patch validation 2021-09-22 13:48:34 -04:00
spiral
bc2c198a82
group import/export 2021-09-21 21:42:41 -04:00
spiral
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
spiral
4b944e2b20
feat: refactor external input handling code
- refactor import/export code
- make import/export use the same JSON parsing as API
- make Patch.AssertIsValid actually useful
2021-08-25 21:43:31 -04:00