| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
|
|
| |
Regression from the DRF update.
|
| |
|
|
|
|
|
| |
New error messages are returned, and there appears to be an upstream bug
which presently requires us to specify all attributes in the update.
|
| |
|
|
|
|
|
| |
When a user does not have a discriminator, do not display it anymore.
Behaviour for users with discriminators (for historic infractions is
unchanged).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This allows the Fast Forward bot and GitHub Actions scripts through the
webhook filter.
* Fast Forward bot should be allowed as otherwise any event created by
this bot (i.e. it's merges to main) are not reported into Discord as it
is considered a bot payload
* GitHub Actions are generally things we have created ourselves and are
not normally high noise, and as such are also worth reporting
|
|
|
|
|
| |
Introduce a way to store alternate accounts on the user, and add the
`PATCH /bot/users/<id:str>/alts` endpoint, which allows updating the
user's alt accounts to the alt accounts in the request..
|
| |
|
| |
|
| |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
Prevent spurious test failures on Solaris systems.
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: jchristgit <[email protected]>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
|/
|
|
|
|
| |
Any RunPython operation that only migrated existing data (that is, did
not create data) can be safely elided by Django when we run
`squashmigrations`.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
Allow faster local tests by skipping the database re-setup. Only two
cases were dependent on hardcoded IDs and already existing data, they
have been adjusted appropriately.
|
| |
|
|\ |
|
| |\
| | |
| | | |
Prefetch user and actor in expanded infraction view
|
| | |
| | |
| | |
| | |
| | | |
Prevent N+1 reported by Sentry:
https://python-discord.sentry.io/issues/4721126467/?project=2714379&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=3
|
| |/
| |
| |
| | |
See https://python-discord.sentry.io/issues/4721508176/?project=2714379&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=1
|
| |
| |
| |
| | |
Sentry is sending an N+1 query alert because of the way we were inserting messages (one by one)
|
|/
|
|
|
|
| |
Add a new model for the bot to store its mailing list state in, as
opposed to the current JSON blob in the BotSetting table. Migrate the
existing settings from the BotSetting table into the new model.
|
| |
|
| |
|
| |
|
|
|
|
| |
Additionally, implement frozen fields on the offensive message
serializer.
|
|
|
|
|
|
|
| |
Allow changing the deletion date of offensive message records in case
the bot encounters an error during deletion attempts.
Fixes #364.
Unblocks python-discord/bot#1013.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current github-filter worker, found at
https://github.com/python-discord/workers/blob/main/github-filter/src/index.ts,
fails to work at present because Discord's webhook endpoints block
Cloudflare's IP ranges from accessing this endpoint. Whilst they use
Cloudflare to guard themselves, it seems they do not wish others to use
it.
Implement it on the site to circumvent IP restrictions and allow to
modify the code in Python.
|
|
|
| |
ref: https://discord.com/channels/267624335836053506/429409067623251969/1182407804787626047
|
|
|
|
|
|
|
|
| |
This redirect filter list does not have any filters, nor does it have a bot implementation.
It is something that we were working on, but has been stalled for a while.
The presence of this filter list also causes the bot to warn on startup due to it finding a filter list with no implementation.
This commit removes the FilterList, which can be added back if/when we support this filter type in bot.
|