Commit graph

7174 commits

Author SHA1 Message Date
Mouse Reeve
b193652a67 Python formatting 2022-07-04 19:58:27 -07:00
Mouse Reeve
dc8e61f316 Updates reports created in automod task 2022-07-04 19:57:58 -07:00
Mouse Reeve
62e57ac931 Adds notify and unnotify helper class methods
In the new paradigm, a notification related to a status has users added
to it and removed from it, rather than a new notification being added
every time. These helper functions make this behavior consistent.
2022-07-04 19:48:10 -07:00
Mouse Reeve
a9a2da0957 Keep status as a single field 2022-07-04 19:20:04 -07:00
Mouse Reeve
0cc2bc269e Updates view 2022-07-04 18:51:07 -07:00
Mouse Reeve
c7ecbb2fdf New migration file
I don't know why it felt important to do this but it did. The migrations
are in one file now and don't need a merge migration.
2022-07-04 18:42:56 -07:00
Mouse Reeve
a718a168a3 Merge branch 'main' into notifications 2022-07-04 17:38:21 -07:00
Mouse Reeve
fe33fdcf56
Merge pull request #2173 from bookwyrm-social/html-sanitizer
Html sanitizer
2022-07-04 14:07:36 -07:00
Mouse Reeve
9d9b7f366a Use "strip" in bleach
This removes forbidden html, rather than leaving them in place but
unrendered.
2022-07-04 13:55:58 -07:00
Mouse Reeve
70beb24d95 Removed misleading test
This wasn't really testing what I wanted it to.
2022-07-04 13:34:09 -07:00
Mouse Reeve
13376f8970 Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
Mouse Reeve
62aa4bf869 Tick version number 2022-07-04 13:21:18 -07:00
Mouse Reeve
7f78140015 Uses library for html cleanup 2022-07-04 13:21:13 -07:00
Mouse Reeve
58b23a74da
Merge pull request #2169 from bookwyrm-social/inventaire-import
Handle getting edition data as dict or string
2022-07-03 11:27:02 -07:00
Mouse Reeve
5d363da175 Handle getting edition data as dict or string 2022-07-03 11:05:20 -07:00
Mouse Reeve
0b900dc1ac
Merge pull request #2166 from bookwyrm-social/email-config-warning
Add warning to dashboard if email sender looks misconfigured
2022-07-03 10:49:14 -07:00
Mouse Reeve
89165fd909 Creates helper function for creating charts 2022-07-03 08:28:24 -07:00
Mouse Reeve
6e7c9b76c6
Merge pull request #2167 from bookwyrm-social/follow-button
Fixes logic error in checking relationships
2022-07-03 06:49:42 -07:00
Mouse Reeve
e16506c1df Fixes logic error in checking relationships
I had the logic backwards for pending relationships.
2022-07-02 21:25:07 -07:00
Mouse Reeve
516c4a9790 Add warning to dashboard if email sender looks misconfigured
This can be a really obscure error, hopefully this warning will catch
potential issues.
2022-07-02 21:11:23 -07:00
Mouse Reeve
4ccbfb6b31
Merge pull request #2057 from bookwyrm-social/list-privacy
Re-consider list privacy on edit
2022-07-02 20:07:00 -07:00
Mouse Reeve
6e70ceb094 More mocks 2022-07-02 19:43:59 -07:00
Mouse Reeve
46421f9672 Mocks for lists model 2022-07-02 13:48:15 -07:00
Mouse Reeve
495bf203b0 Mocks inbox and search tests 2022-07-02 13:45:53 -07:00
Mouse Reeve
3ad0a5d073 Use update_fields to limit remove_list_tasks
If we know what fields were updated, we can avoid running this task.
This also adds some mocks where they are needed for the list view.
2022-07-02 13:23:23 -07:00
Mouse Reeve
13605b7d6a
Merge pull request #2164 from bookwyrm-social/federated-servers-admin
Federated servers admin
2022-07-02 12:17:14 -07:00
Mouse Reeve
aae02dff9a Merge branch 'main' into list-privacy 2022-07-02 12:16:39 -07:00
Mouse Reeve
94a6675dc4 Pylint fixes 2022-07-02 12:07:22 -07:00
Mouse Reeve
13e23a868d Adds instance name filter to federated instance list view
This lets you look for a specific server in your (probably very long)
instance list.
2022-07-02 11:12:15 -07:00
Mouse Reeve
43f3d69821
Merge pull request #2163 from bookwyrm-social/revert-2143-async_broadcast
Revert "Use async requests for broadcasting"
2022-07-02 11:11:48 -07:00
Mouse Reeve
e0a67f5e18 Uses := syntax in user admin view
I learned this! It's cool.
2022-07-02 11:06:48 -07:00
Mouse Reeve
cbb979242d
Revert "Use async requests for broadcasting" 2022-07-02 10:56:18 -07:00
Mouse Reeve
f68c80dfff Adds line length and import-error to .pylintrc 2022-07-02 10:50:17 -07:00
Mouse Reeve
f5d6a18ce0 Alphabetize list of software options in federated instances list 2022-07-02 10:49:57 -07:00
Mouse Reeve
be76fe1494
Merge pull request #2143 from bookwyrm-social/async_broadcast
Use async requests for broadcasting
2022-07-02 10:23:02 -07:00
Mouse Reeve
e7b0a84ded
Merge pull request #2142 from bookwyrm-social/load-data-duration
Split expand book data task into per-edition tasks
2022-06-30 11:47:23 -07:00
Mouse Reeve
4e2fcc552a
Merge pull request #2160 from bookwyrm-social/locales
Updates locales
2022-06-30 10:37:21 -07:00
Mouse Reeve
beb85ba94f Updates locales 2022-06-30 10:23:25 -07:00
Mouse Reeve
5f266c0cfd
Merge pull request #2159 from JamieSlome/main
Create SECURITY.md
2022-06-30 09:52:06 -07:00
Jamie Slome
1609b9b74c Create SECURITY.md 2022-06-30 05:46:41 +01:00
Mouse Reeve
e3471fcc35
Merge pull request #2148 from hughrun/quotes
add page numbers to comment and quote statuses
2022-06-10 17:35:15 -07:00
Mouse Reeve
2993989d27
Merge pull request #2149 from cincodenada/preview-generation-memory
Update preview image generation to only query ids
2022-06-10 17:25:05 -07:00
Joel Bradshaw
7f5d47a36f Use values_list with flat, yay! 2022-06-07 23:15:34 -07:00
Mouse Reeve
3aa159bc89
Merge branch 'main' into preview-generation-memory 2022-06-05 18:39:59 -07:00
Mouse Reeve
8d082bc189
Merge branch 'main' into quotes 2022-06-05 15:42:01 -07:00
Mouse Reeve
08231f52ff
Merge pull request #2150 from cincodenada/fix-pylint
Fix pylint config for pylint 2.14.0
2022-06-05 15:41:32 -07:00
Joel Bradshaw
6584cb6404 Go back to one requirements.txt, simplify workflow
The workflow can now use .pylintrc and the pylint req in
requirements.txt rather than having the options inline and installing it
separately
2022-06-05 14:57:42 -07:00
Joel Bradshaw
b3603c04c5 Add pylint to bw-dev
Because pylint requires the app to be fully parseable with all its
dependencies, we run it in the web container, and add pylint as a dev
dependency.
2022-06-05 14:49:21 -07:00
Joel Bradshaw
6d6ab9a531 Add .pylintrc with fixes for new pylint version 2022-06-05 14:38:03 -07:00
Joel Bradshaw
b744ff7836 Run black 2022-06-05 13:40:01 -07:00