Commit Graph

123 Commits

Author SHA1 Message Date
Ske 66f7a664c8 Add special check for pronouns being an empty string
I'm unsure when this happens in practice, but thought I'd guard against it just in case (since it's caused a couple errors already).
2020-07-18 13:07:16 +02:00
BeeFox-sys 55ea314b42 Fix: Escape Backticks (#192) 2020-07-05 12:55:21 +02:00
Ske c87e67245d Create GetXXX utils wrapping try blocks 2020-07-02 18:29:04 +02:00
Ske 467ce78522 Retire more IDataStore methods 2020-06-29 14:54:11 +02:00
Ske d3cf382e3b Migrate to date/time format extension methods 2020-06-21 16:05:04 +02:00
Ske dcffbef805 Migrate to more privacy helper extensions 2020-06-21 15:51:08 +02:00
Ske 84d5adf907 Fix build errors from DSP update 2020-06-21 15:34:32 +02:00
Ske ae4e8f97d0 Add member avatar privacy 2020-06-20 16:00:50 +02:00
Ske 56eae82b0a Move most references to PKMember.Name to go through helper extepsions for privacy 2020-06-18 17:08:36 +02:00
Ske e92700f339 Comment out color privacy stuff for now (revisit later?) 2020-06-17 21:51:40 +02:00
BeeFox-sys 721a4502bb Feature/granular member privacy (#174)
* Some reasons this needs to exist for it to run on my machine? I don't think it would hurt to have it in other machines so

* Add options to member model

* Add Privacy to member embed

* Added member privacy display list

* Update database settings

* apparetnly this is nolonger needed?

* Fix sql call

* Fix more sql errors

* Added in settings control

* Add all subject to system privacy

* Basic API Privacy

* Name privacy in logs

* update todo

* remove CheckReadMemberPermission

* Added name privacy to log embed

* update todo

* Update todo

* Update api to handle privacy

* update todo

* Update systemlist full to respect privacy (as well as system list)

* include colour as option for member privacy subject

* move todo file (why was it there?)

* Update TODO.md

* Update TODO.md

* Update TODO.md

* Deleted to create pr

* Update command usage and add to the command tree

* Make api respect created privacy

* Add editing privacy through the api

* Fix pronoun privacy field in api

* Fix info leak of display name in api

* deprecate privacy field in api

* Deprecate privacy diffrently

* Update API

* Update documentation

* Update documentation

* Remove comment in yml

* Update userguide

* Update migration (fix typo in 5.sql too)

* Sanatize names

* some full stops

* Fix after merge

* update migration

* update schema version

* update edit command

* update privacy filter

* fix a dumb mistake

* clarify on what name privacy does

* make it easier on someone else

* Update docs

* Comment out unused code

* Add aliases for `member privacy all public` and `member privacy all private`
2020-06-17 21:31:39 +02:00
Ske 627f544ee8 Migrate API to ASP.NET Core Auth services + refactor 2020-06-16 01:15:59 +02:00
Ske 90ac186183 Extract Database to interface 2020-06-13 19:36:43 +02:00
Ske e176ccbab5 Several more database-y refactors
- DbConnectionFactory renamed to "Database", will now be the primary entry point for DB stuff
- Created IPKConnection interface mostly containing async extensions to IDbConnection, use this going forward
- Reworked the Connection/Command wrappers (that have performance/logging extensions)
- Probably more stuff that I forgot???
2020-06-13 18:31:20 +02:00
Ske a915ddb41c Extract system/member guild settings and refactor DB access
(also refactor MemberAvatar now that I'm here)
2020-06-13 16:03:57 +02:00
Ske ba441a15cc Too many refactors in one:
- Allowed adding ephemeral(ish) views and functions
- Moved message_count to a concrete database field
- Moved most proxy logic to a stored procedure
- Moved database files around and refactored schema manager
2020-06-12 20:29:50 +02:00
acw0 f55c638f41 Properly show tags containing markdown in system embed 2020-05-15 07:32:28 -04:00
Ske cb8234b272 Restructure message info embed queries
This fixes several long-standing issues wrt. handling of senders that are no longer on the server and deleted accounts, as well as an error handling issue caused by the DSharpPlus migration.
2020-05-08 00:57:17 +02:00
Ske 892601110f Temporary workaround for https://github.com/DSharpPlus/DSharpPlus/issues/565 2020-05-05 19:10:33 +02:00
Ske c1d17c2944 Fix member avatar in log channel message 2020-05-05 19:05:52 +02:00
Ske 9fa36b78ff Fix the garish default D#+ colors 2020-04-29 00:25:01 +02:00
Ske 23cf06df4c Port some things, still does not compile 2020-04-17 23:10:01 +02:00
Ske de141d629b Fix newline rendering in embeds on iOS 2020-02-20 22:57:37 +01:00
Ske 48342a2890 Fix spurious empty-string-description errors 2020-02-12 23:18:31 +01:00
Ske d0d3579b17 Add server-specific member avatars 2020-02-12 17:42:12 +01:00
Ske 6d5004bf54 Large refactor and project restructuring 2020-02-12 15:16:19 +01:00
Ske 3ce1078dc6 Add different text for systems with no members 2020-02-05 23:43:30 +01:00
Ske 6863da9462 Disable Discord member caching entirely 2020-02-01 15:00:36 +01:00
Ske b347d2d557 Add front history pagination; upgrade more store methods 2020-01-18 00:58:35 +01:00
Ske 8a689ac0f2 Upgrade various store methods to IAsyncEnumerable 2020-01-18 00:02:17 +01:00
Ske 98613c4287 Add system and member privacy support 2020-01-11 16:51:13 +01:00
Ske 4d07886ec8 Add server-specific display names 2019-12-26 20:39:47 +01:00
Ske bd8fb40bc7 Handle systems with (too) many linked accounts 2019-12-22 13:53:38 +01:00
Ske 520e6f140c Fix front history lookup with very long switches 2019-11-03 00:46:38 +01:00
Ske 6c39b7549b Fix message querying actually for real 2019-10-31 21:14:01 +01:00
Ske f4a5b409c3 Fix message querying for real this time 2019-10-31 16:36:33 +01:00
Ske 393ee16c1b Add support for multiple proxy tags
Tangentially closes #103.
2019-10-30 08:18:59 +01:00
Ske c639e9ba1e Include attachment image in message card 2019-10-28 17:02:59 +01:00
Ske 3369a06c4e Fix message querying on accounts with no roles 2019-10-28 16:50:41 +01:00
Ske 6a73b3bdd6 Refactor data stores, merging the Store classes 2019-10-26 19:45:44 +02:00
Ske c4d28f64c7 Display system/member created date in embed footer.
Closes #122.
2019-10-18 13:29:16 +02:00
xBelladonna 658bcf1faf Display guild user nickname on message card if set 2019-09-22 02:04:20 +09:30
Ske 0ec522ca0a Display member roles in message query card 2019-09-21 15:19:38 +02:00
Ske 4e69531103 Ignore invalid colors in member card 2019-08-13 21:49:43 +02:00
Bella | Nightshade 9f2faeea5a Escape markdown in proxy tags on member card (#118)
* Fix a typo

* Escape markdown in proxy tags on member card

* Whoops hhh

Added API documentation for POST to member endpoint
2019-08-09 12:55:15 +02:00
Ske 606f48fdb5 Add display name to member card 2019-08-09 10:39:03 +02:00
xBelladonna fabf772085 Return original message ID to log channel
Logs the original (deleted) message's ID in addition to the proxied message's ID to the log channel if configured
2019-08-08 11:01:36 +02:00
Ske 4fe80749c4 Fix compiler warnings CS1998 and CS4014 2019-07-21 16:43:28 +02:00
Ske a078fcdf47 Add description as a field at the bottom of member and system embed 2019-07-21 16:29:48 +02:00
Ske dfbb5cd2d6 Add fronter info to system card 2019-07-18 14:05:02 +02:00