Commit graph

6133 commits

Author SHA1 Message Date
Robert George
207abed654 Add support for specifying redis url to support unix sockets 2023-01-14 14:52:54 -08:00
Robert George
92341fb43a Add missing isbn span for barcode search 2023-01-14 14:38:16 -08:00
Christof Dorner
0291ffbcb1 Fix generated note content checks in card header template 2023-01-12 20:58:41 +01:00
Mouse Reeve
dd2b166382
Revert "Add Website field to author" 2023-01-11 19:21:40 -08:00
Andy Maloney
b4aa39f0ed Move all opengraph (/twitter) metadata into one template
This makes it easier to modify & allows us to set title & description for specific types of pages.

Sets us up for #2575
2023-01-11 16:17:41 -05:00
Mouse Reeve
5c8145b79d
Merge pull request #2586 from asmaloney/fix-duplicate-suggestions
{list} Fix duplicate suggestions in Add Books section
2023-01-11 08:40:32 -08:00
Mouse Reeve
bae3986a85
Merge pull request #2588 from asmaloney/spelling-author
Fix spelling in author form
2023-01-11 07:27:34 -08:00
Mouse Reeve
c279477507
Merge pull request #2590 from asmaloney/spelling-blocktrans-arg
Fix spelling in blocktrans arg
2023-01-11 07:27:27 -08:00
Mouse Reeve
5ab67cac87
Merge pull request #2591 from asmaloney/spelling-various
Fix spelling in various comments
2023-01-11 07:27:18 -08:00
Giebisch
b9576ccd31 Merge conflict fix 2023-01-11 16:26:36 +01:00
Giebisch
b22d060d93 Merge branch 'main' into import-limit 2023-01-11 16:22:08 +01:00
Giebisch
d35fec8217 Fixed trans 2023-01-11 15:18:50 +01:00
Giebisch
88e993d727 Frontend Mockup 2023-01-11 15:12:22 +01:00
Andy Maloney
e5539a6faf Fix spelling in various comments 2023-01-10 17:24:02 -05:00
Andy Maloney
c6d2edfe7a Fix spelling in blocktrans arg 2023-01-10 17:21:00 -05:00
Andy Maloney
e1c90314ad Fix two "aria-hidden" tags 2023-01-10 17:17:03 -05:00
Andy Maloney
a027204e5b Fix spelling in author form
"oepnlibrary" ➡️ "openlibrary"
2023-01-10 16:51:13 -05:00
Andy Maloney
dd23bc4d0f {list} Fix duplicate suggestions in Add Books section
Fixes #2584

(Also fix a spelling mistake in a comment in book_search.py)
2023-01-10 11:08:11 -05:00
Mouse Reeve
cdf51ccbc4
Merge pull request #2580 from Giebisch/fix-rating-half-stars
Fix Half Stars for Rating books
2023-01-09 20:24:50 -08:00
Mouse Reeve
bdd32c5628
Merge pull request #2555 from jaschaurbach/author_website
Add Website field to author
2023-01-09 20:14:14 -08:00
Mouse Reeve
c9fa90f83b
Merge pull request #2547 from avandeursen/docker-test-run
Ensure django tests pass in default Docker setting
2023-01-09 20:06:39 -08:00
Giebisch
892ba563a4 Fix Half Stars for Rating books 2023-01-07 20:59:32 +01:00
Joachim
336c92d96e
Merge branch 'main' into redirect-after-shelving-book 2023-01-06 15:13:57 +01:00
Giebisch
5200ea585a Import Limit Bugfix and lint 2023-01-05 23:37:43 +01:00
Christof Dorner
1c6548a0ad Ensure transient cover_url field value gets persisted across form renders
Given this field doesn't map to an `Edition` model field it lost its values when re-rendering the form.
It worked only when the form was valid and rendered as part of the confirmation screen, which is due to
the context data value being set in `add_authors` which was only getting called after the form validation.

I've opted to pull it out into a separate new function that gets called before form validation.
2023-01-04 18:02:04 +01:00
Giebisch
6d1de44c48 Sync with main and merge migrations 2023-01-02 17:38:43 +01:00
Giebisch
7e7966987b Merge branch 'main' into import-limit 2023-01-02 15:42:50 +01:00
Joachim
fa3edea87b Update validate.py 2023-01-01 20:51:23 +01:00
Joachim
ac2ef667af Fix error when no referer 2023-01-01 19:57:10 +01:00
Joachim
bc19d7c658 Black 2023-01-01 19:45:12 +01:00
Joachim
f266c71da9 Replace hidden field with HTTP Referrer value 2023-01-01 19:42:03 +01:00
Arie van Deursen
2bf8cd88f1
Fix @pytest.mark.skipif formatting 2022-12-30 18:44:28 +01:00
Joachim
78c214a6d4 Add validation before using url 2022-12-30 17:56:25 +01:00
Joachim
bfe04feca9 Add validation util + test 2022-12-30 17:55:47 +01:00
Mouse Reeve
e026f4535a
Merge pull request #2550 from chdorner/fix/cache-languages
Fix fragment caches (language codes, cache keys, etc.)
2022-12-30 07:33:15 -08:00
Jascha Urbach
2d76595af6
Add Website field to author
Authors have Websites. that might be interesting for BookWyrm users. Now there is a field specify the website of an author and it is shown tu users under the wikipedia link

Adds max char for ISFDB ID (6) and ISNI (19 - 16 plus three -)
2022-12-28 15:41:48 +01:00
Christof Dorner
247d85305c Fix cache duration comment 2022-12-26 17:52:58 +01:00
Christof Dorner
9aad37acd5 Specificy fragment name in cache key for landing page 2022-12-26 17:52:03 +01:00
Christof Dorner
51c932802a Use language in cachey key for about_page_superlatives 2022-12-26 17:50:51 +01:00
Arie van Deursen
1c0a3a7829
Only test thumbnails if they're enabled in the settings 2022-12-26 14:26:23 +01:00
Joachim
f5a79dfa82 Redirect to "next" value in view 2022-12-23 21:35:28 +01:00
Joachim
3f52d6ee33 Add hidden "next" input set to current path 2022-12-23 21:34:53 +01:00
Joachim
00d14cd37c Stylelint 2022-12-23 20:25:42 +01:00
Joachim
91d67b44fd Add back button to user submenu on mobile 2022-12-23 20:17:35 +01:00
Joachim
7f3b208927 Align user menu to the right on mobile 2022-12-23 20:17:12 +01:00
Mouse Reeve
6947e74f5d
Merge pull request #2525 from jaschaurbach/fix-form-submit
Update forms.js
2022-12-21 11:10:21 -08:00
Mouse Reeve
d0f7cf56f6
Merge pull request #2529 from chdorner/fix/titleby-cache-clearing
Fix titleby cache fragment clearing
2022-12-21 11:06:13 -08:00
Mouse Reeve
a4c3b79f41
Merge pull request #2532 from bookwyrm-social/generated-note-display
Display generated notes correctly depending on format
2022-12-21 11:05:48 -08:00
Mouse Reeve
b2fd5c26b9
Merge pull request #2538 from bookwyrm-social/basque
Adds Basque language
2022-12-21 10:56:50 -08:00
Mouse Reeve
f2a52d4a18 Adds Basque language 2022-12-21 10:30:51 -08:00
Christof Dorner
4f6e4462dc Fix permissions check for System admin navigation section 2022-12-20 22:39:59 +01:00
Christof Dorner
3e25b04e4a Cache book_titleby only for 10 seconds
This should be enough caching when renderering pages like the feed, but
not so much that editing a book or author will not show the updated data.
At least without having to do some clever cache busting.
2022-12-20 21:48:16 +01:00
Giebisch
8f9ac82094 Handle unlimited Imports 2022-12-20 21:32:58 +01:00
Jascha Urbach
8a4d500489
Merge branch 'bookwyrm-social:main' into fix-form-submit 2022-12-20 21:21:05 +01:00
Jascha Urbach
105144a026
New approach: Event Delegation
This works as follows:

The div where the input fields for the subjects live got an id. The script now listens to all keypresses in this div, but only does something if it is within an INPUT field. If it is an INPUT field within this div, it looks for keyCode 13. If it is 13, preventDefault() is triggered.  Else nothing happens.
2022-12-20 11:36:14 +01:00
Mouse Reeve
d3c15efa0a Display generated notes correctly depending on format 2022-12-19 16:24:32 -08:00
Jascha Urbach
259ceeea21
./bw-dev prettier 2022-12-20 00:06:02 +01:00
Jascha Urbach
e4892701d8
Update forms.js
Now it works in the correct fields.
2022-12-19 23:57:00 +01:00
Mouse Reeve
5ea922a551
Merge pull request #2528 from bookwyrm-social/broadcast-queues
Increase priority for follow activities and lower for shelve
2022-12-19 14:37:10 -08:00
Giebisch
3295d419bf Add Test for Import Limit 2022-12-19 23:25:43 +01:00
Mouse Reeve
157c9c825b Increase priority for follow activities and lower for shelve 2022-12-19 14:07:44 -08:00
Joachim
f0dc146005 Merge branch 'main' into disable-remote-users-preview-images 2022-12-19 22:32:30 +01:00
Joachim
a44f427d84 Add remote user test before the task is called 2022-12-19 22:26:09 +01:00
Giebisch
32463c1157 Fix merge 2022-12-19 21:50:34 +01:00
Mouse Reeve
7397a2dcb1
Merge branch 'main' into bump_requirements 2022-12-19 12:28:33 -08:00
Mouse Reeve
271337a7e5
Merge pull request #2523 from joachimesque/update-pillow-deprecated
Remove deprecation warnings from Pillow
2022-12-19 12:27:13 -08:00
Christof Dorner
aefc02e3ee Disable sass processor when not in debug mode 2022-12-19 18:43:16 +01:00
Christof Dorner
744bd33d99 Add compile_themes command to themes admin page instructions 2022-12-19 18:43:16 +01:00
Christof Dorner
f5ebdd4ba1 Add compile_themes management command 2022-12-19 18:43:16 +01:00
Jascha Urbach
befcf4f3e9
bump some versions in requirements
Why update:

iohttp: supports now more of http standard.
celery: supports redis > = 4.0.2 (the docker image uses redis 7.0.6
django-celery-beat: better Django 3.2 support, bump celery to 5.2, downgrade of dependencies for better celery support
django-compressor: official Django 3.2 support, updates requirements
django-model-utils: official django 3.2 support.
django-sass-processor: remove deprecated default_app_config, support of ManifestStaticFilesStorage (which might be needed in the future)
environs: bugfixes
libsass: removes deprecated cli
Pillow: bug fixing
psycopg2: Bugfixing
pycryptodome: bugfixes
python-dateutil: updated tzdata
requests: better json Handling, bugfixing
responses: bugfixes and more
pytz: python3 code generation, All the corect timezone behaviour!
boto3: Updsate all the S3 Handling

signtures.py update because of breaking change in pycryptodome

migration because uf updated timezones

With updated celery I have less 501 errors on my instance. updated psycopg2 has better performance.

I have NOT chekced opentelemetry packages.

Upgrading redis package wold need a deeper inspection of the code as some functions are dropped in newer versions.
2022-12-19 16:37:41 +01:00
Jascha Urbach
7c88f7081c
Merge branch 'bookwyrm-social:main' into fix-form-submit 2022-12-18 22:53:36 +01:00
Jascha Urbach
64968c3081
Update forms.js
fixes #2519
2022-12-18 22:28:05 +01:00
Joachim
c5eb27a7c5 Lint 2022-12-17 20:27:39 +01:00
Joachim
26f8710c6f Black 2022-12-17 19:52:58 +01:00
Joachim
bf82b4cd35 Replace Font.getsize_multiline with Draw.multiline_textbbox 2022-12-17 19:52:52 +01:00
Joachim
003d1425f9 Fix comments 2022-12-17 19:32:10 +01:00
Joachim
684e84f5c3 Remove deprecated Font.getsize()
https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods
2022-12-17 19:24:07 +01:00
Joachim
86c810ee37 Change ANTIALIAS to Resampling.LANCZOS 2022-12-17 18:44:17 +01:00
Joachim
00c2930290 Black 2022-12-17 17:56:28 +01:00
Joachim
cd940e2c40 Add tests for remove_user_preview_image_task 2022-12-17 17:49:39 +01:00
Joachim
b570602a47 Update remove_remote_user_preview_images.py 2022-12-17 17:35:44 +01:00
Joachim
75ea2cdbb4 Fix generate_user_preview_image_task comment wording 2022-12-17 17:34:49 +01:00
Joachim
09c095cfec Add remove_remote_user_preview_images command 2022-12-17 17:34:27 +01:00
Joachim
8c34b23c35 Disable preview images generation for remote users 2022-12-17 11:39:10 +01:00
Mouse Reeve
d86e6a6949
Merge pull request #2516 from bookwyrm-social/import-queue
Create a separate celery queue for imports
2022-12-16 14:58:35 -08:00
Mouse Reeve
37bd90e88b
Merge pull request #2515 from bookwyrm-social/import-statuses
Don't add imported reviews to timelines
2022-12-16 14:58:24 -08:00
Mouse Reeve
7ff654720c updates tests 2022-12-16 14:45:32 -08:00
Mouse Reeve
3972d1cc7b Don't mark imports as active until their job task runs 2022-12-16 14:41:35 -08:00
Mouse Reeve
427d0c4fc8 Create a separate celery queue for imports 2022-12-16 14:20:50 -08:00
Mouse Reeve
0354eb9828 Don't add imported reviews to timelines
Generally they're so backdated that they don't add, and they put too
much load on the instance.
2022-12-16 14:11:15 -08:00
Mouse Reeve
d4351cfcb4
Merge branch 'main' into import-limit 2022-12-16 12:44:57 -08:00
Mouse Reeve
bcec4f07c5
Merge pull request #2510 from jaschaurbach/main
delete avatar when user is deleted
2022-12-16 12:42:42 -08:00
Huey
b11a2dafc4
fix #2508 2022-12-16 10:38:08 +08:00
Giebisch
df54df8309 Added Import Limit 2022-12-15 23:43:25 +01:00
Jascha Urbach
0744bd5385
delete avatar when user is deleted 2022-12-15 23:01:56 +01:00
Mouse Reeve
89478ac87e
Merge pull request #2491 from chdorner/register-tz-support
Detect preferred timezone via JavaScript on register
2022-12-11 14:49:29 -08:00
Christof Dorner
13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
Mouse Reeve
abf206a82b Update version number and javascript cache buster 2022-12-11 13:46:53 -08:00
Mouse Reeve
bb5564461c
Merge pull request #2398 from bookwyrm-social/html-in-activitypub
Render markdown to html when using activitypub
2022-12-11 13:43:36 -08:00
Mouse Reeve
a6604c197d Updates tests 2022-12-11 13:19:26 -08:00
Mouse Reeve
3a9a344089
Merge pull request #2478 from bookwyrm-social/admin-roles
Adds "owner" role
2022-12-11 13:05:39 -08:00
Mouse Reeve
3e62cbe8b6 Fixes incorrect import from merge 2022-12-11 12:39:33 -08:00
Mouse Reeve
b65a46582b Fixes new identifier fields in edit book form 2022-12-11 12:37:40 -08:00
Jascha Urbach
ea316627be
Manual email confirm (#2492)
* manual approve email via bw-dev/manage.py

./bw-dev confirm_email USER
(venv) python manage.py confirm_email USER

* add "confirm_email" and "remove_2fa" to autocompletion

* OK, sometimes I feel fooled by this.

The lione was not LONG ENOUGH.

* Change deactivate reason to None

* Whyever this works now

Python in my system is a wondermachine.
2022-12-11 12:35:20 -08:00
Mouse Reeve
a9846e7805
Merge pull request #2498 from bookwyrm-social/use-reactivate
Use user.reactivate when a user confirms their email address
2022-12-11 12:10:21 -08:00
Mouse Reeve
4f0e7b60d6 Adds merge migration 2022-12-11 12:03:22 -08:00
Mouse Reeve
58e8c0b5ec Merge branch 'main' into admin-roles 2022-12-11 11:58:54 -08:00
Mouse Reeve
734fb5ad34
Merge pull request #2489 from chdorner/user-reviews-comments-tab
Add new user tab listing only reviews and comments
2022-12-11 11:53:31 -08:00
Mouse Reeve
50a42dc0a2 Use user.reactivate when a user confirms their email address
This is cleaner and easier to maintain.
2022-12-11 11:44:04 -08:00
Mouse Reeve
c314c9b5e3
Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
2022-12-11 11:37:09 -08:00
Mouse Reeve
a25a5b1032 Updates expected number of groups in tests 2022-12-11 11:35:48 -08:00
Jascha Urbach
ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Mouse Reeve
0e2b88ad0c
Merge pull request #2495 from bookwyrm-social/edit-book-form
Uses a list of fields rather than exclusions for edit book form
2022-12-11 11:28:59 -08:00
Christof Dorner
fbd8e22b97 Add new user tab listing only reviews and comments 2022-12-11 20:24:00 +01:00
Mouse Reeve
0452731d02
Merge pull request #2496 from bookwyrm-social/unit-test
Trying to fix an unreliable unit test regex
2022-12-11 11:22:56 -08:00
Mouse Reeve
b4ddf281b5 Trying to fix an unreliable unit test regex 2022-12-11 11:13:16 -08:00
Mouse Reeve
3016f1416b
Merge pull request #2490 from chdorner/apple-touch-icon
Add apple-touch-icon to global layout
2022-12-11 11:10:21 -08:00
Mouse Reeve
ca5676c287 Uses a list of fields rather than exclusions for edit book form 2022-12-11 10:58:19 -08:00
Christof Dorner
9ea7029c2f Add apple-touch-icon to global layout 2022-12-10 17:57:05 +01:00
Jascha Urbach
8325fbd772
goodreads_key for books editable
The field goodreads_key is now editable.
ID shows in ID section of book.
2022-12-10 10:50:25 +01:00
Mouse Reeve
f779c57f33 Safely get or create permissions for tests/re-running 2022-12-06 14:25:50 -08:00
Mouse Reeve
a80e020344 Add direction to book page fields 2022-12-06 12:26:52 -08:00
Mouse Reeve
8d5192c816 Don't show HR under last author item in confirm view 2022-12-06 12:26:35 -08:00
Mouse Reeve
bffde6703c
Merge branch 'main' into html-in-activitypub 2022-12-05 17:46:31 -08:00
Mouse Reeve
aecb2d38d6 Visually separate authors when creating book 2022-12-05 17:44:08 -08:00
Mouse Reeve
fdaa24edfe Tweaks group query in migration for tests 2022-12-05 17:33:40 -08:00
Mouse Reeve
845bd2cc0d Only show themes to sys admin 2022-12-05 17:11:15 -08:00
Mouse Reeve
a2874bf460 Updates forms 2022-12-05 17:09:10 -08:00
Mouse Reeve
b8e403ce59 Fixes migration to give the correct perms 2022-12-05 17:04:58 -08:00
Mouse Reeve
c7234bff64 Update admin role for new perms 2022-12-05 16:58:23 -08:00
Mouse Reeve
933cb6440f Creates admin views for owner and admin registration settings 2022-12-05 16:58:11 -08:00
Mouse Reeve
dd9fbca7d7 Removes registration from site settings form 2022-12-05 16:19:15 -08:00
Mouse Reeve
9b087199ed Adds new role and permissions 2022-12-05 16:07:09 -08:00
Mouse Reeve
8951628e02 Don't try to markdownify a null field 2022-12-05 15:12:53 -08:00
Mouse Reeve
97358da503
Merge pull request #2452 from indutny/fix/gh-2451
Fix serialization of JSON-LD subarrays
2022-12-05 09:53:27 -08:00
Fedor Indutny
cdc833657f Fix serialization of JSON-LD subarrays
Properties like "tag" could be lists containing multiple subclasses of
ActivityObject. Make sure to serialize them recursively instead of
outputting them as they are, because otherwise we could get a bunch of
nulls in the resulting JSON and that wouldn't necessarily be a valid
JSON-LD object.

Fix: #2451
2022-12-04 18:12:39 -08:00
Mouse Reeve
e7a0c3e421 Fixes bug that caused imports to be disabled unexpectedly 2022-12-04 18:07:17 -08:00
Mouse Reeve
26a05d2182 Adds tests for impressum page 2022-12-04 13:13:05 -08:00
Mouse Reeve
4a89a9ec88 Adds missing template 2022-12-04 13:05:03 -08:00
Mouse Reeve
5172f67c35
Merge pull request #2450 from bookwyrm-social/impressum
Adds database fields for legal page/impressum
2022-12-04 12:12:26 -08:00
Mouse Reeve
b7b7b2680e Fixes unit test 2022-12-04 11:44:42 -08:00
Mouse Reeve
c4d252754e
Merge pull request #2466 from rickosborne/storygraph-csv-isbn
StoryGraph import ISBN tweak
2022-12-04 11:31:12 -08:00
Mouse Reeve
300573e66e
Merge pull request #2457 from viviicat/use-html-templates
make use of templates instead of hidden divs which is more elegant
2022-12-04 11:24:04 -08:00
Mouse Reeve
5be7dad6f7
Merge pull request #2469 from bookwyrm-social/typo-fix
Typo fix
2022-12-04 11:16:57 -08:00
Mouse Reeve
712455368c Typo fix 2022-12-03 18:21:47 -08:00
Rick Osborne
862260294a
StoryGraph import ISBN tweak
Looks like SG updated their CSV headers just a little, so that the importer
hadn't been picking up the ISBN.
2022-12-02 19:16:22 -08:00
Mouse Reeve
61d8748d59
Merge pull request #2459 from viviicat/dark-theme-contrast
Dark theme contrast
2022-11-26 20:43:53 -08:00
Mouse Reeve
7eb267fbd1
Merge pull request #2460 from viviicat/visual-tweaks
Visual tweaks
2022-11-26 20:38:58 -08:00
Vivianne Langdon
56519d569d fix broken css 2022-11-26 15:29:08 -08:00
Vivianne Langdon
1fa7262b52 padding for edit shelf form 2022-11-26 15:29:08 -08:00
Vivianne Langdon
3728ee67d1 edit-list/save button spacing 2022-11-26 15:29:08 -08:00
Vivianne Langdon
bfe2003e5c author book list read more spacing 2022-11-26 15:29:08 -08:00
Vivianne Langdon
ab43134cc0 many minor visual tweaks to fix spacing and usability 2022-11-26 15:29:08 -08:00
Vivianne Langdon
9738c96175 fix css which caused weird spacing for desc. field 2022-11-26 15:29:08 -08:00
Vivianne Langdon
6cf028994e dark theme: increase background color darkness, fix shepherd color 2022-11-26 13:18:11 -08:00
Vivianne Langdon
86d1c8552e use transparent buttons for reply and more 2022-11-26 13:17:48 -08:00
Vivianne Langdon
c2b447cf49 lint 2022-11-26 12:19:37 -08:00
Vivianne Langdon
c4398ff187 make use of templates instead of hidden divs which is more elegant 2022-11-26 12:14:48 -08:00
Vivianne Langdon
e0896e3828 fix input type 2022-11-26 11:54:55 -08:00
Vivianne Langdon
cac9dc2603 registration answer was not long enough client side, fixes #2377 for real 2022-11-26 11:33:16 -08:00
Mouse Reeve
8ec984c3ff Tick version number 2022-11-25 14:37:34 -08:00
Mouse Reeve
df42712b8e
Merge pull request #2449 from bookwyrm-social/empty-csv
Don't start imports with empty CSVs
2022-11-25 12:31:13 -08:00
Mouse Reeve
8b068e94d5 Headers aren't one of the rows 2022-11-25 12:19:49 -08:00
Mouse Reeve
70d639440e Show impressum 2022-11-25 12:06:32 -08:00
Mouse Reeve
16f9232e1e Adds database fields for legal page/impressum 2022-11-25 11:02:42 -08:00
Mouse Reeve
ccb60f45c3
Merge pull request #2447 from bookwyrm-social/fix-inventaire-import
Fixes error on importing from inventaire
2022-11-25 10:54:10 -08:00
Mouse Reeve
304757091e Fixes checking csv length to consider headers 2022-11-25 10:53:42 -08:00
Mouse Reeve
41d5102c72
Merge pull request #2448 from bookwyrm-social/search-review-counts
Show review counts in search results
2022-11-25 10:49:10 -08:00
Mouse Reeve
0a12be8279 Appease pylint 2022-11-25 10:41:04 -08:00
Mouse Reeve
e94e72a594 Python formatting 2022-11-25 10:40:06 -08:00
Mouse Reeve
61d1e67349
Merge pull request #2418 from jaschaurbach/Fix-wrong-URL-behind-proxy
set HTTP_X_FORWARDED_PROTO in .env
2022-11-25 10:40:00 -08:00
Mouse Reeve
d3cad15ee1
Merge pull request #2445 from bookwyrm-social/list-null-notification
Handles state in notifications where a list item was deleted
2022-11-25 10:39:02 -08:00
Mouse Reeve
c3acbb9bd0
Merge pull request #2446 from bookwyrm-social/settings-federation-table
Make the federated servers table display correctly on mobile
2022-11-25 10:38:53 -08:00
Mouse Reeve
015af2c1e7 Don't start imports with empty csvs
Fixes #2353
2022-11-25 10:35:16 -08:00
Mouse Reeve
becc90d485 Show review counts in search results
Fixes #2317
2022-11-25 10:06:51 -08:00
Mouse Reeve
44d308abad Fixes error on importing from inventaire 2022-11-25 09:35:26 -08:00
Mouse Reeve
e72cb43bb2 Make the federated servers table display correctly on mobile 2022-11-25 09:09:57 -08:00
Mouse Reeve
2d56ccfd50 Handles state in notifications where a list item was deleted 2022-11-25 08:55:33 -08:00
Mouse Reeve
81ab08aaa3 Fixes editing links 2022-11-25 08:28:45 -08:00
Mouse Reeve
9dd0e22a47
Merge pull request #2426 from bookwyrm-social/password-reset-email
Don't use task for password reset emails
2022-11-23 22:10:47 -08:00
Mouse Reeve
dd83e32f32 Fixes unit test 2022-11-23 22:00:34 -08:00
Joel Bradshaw
55bab0b70d Slice queryset before we resolve it
This was accidentally querying ALL books in the database to generate
suggestions if we didn't have enough, which broke some stuff
2022-11-23 19:26:09 +00:00
Mouse Reeve
cc3cd5c98c Don't use task for password reset emails 2022-11-20 19:39:08 -08:00
Jascha Urbach
484484fd4b
Apologies for my lack of coding skills 2022-11-20 17:57:03 +01:00
Jascha Urbach
3c1b38ed2c
one should import what one declares...
... andn not what one thinks was declared^^
2022-11-20 17:47:26 +01:00
Jascha Urbach
31ea868ddc
Update to actual READ the file... 2022-11-19 20:40:36 +01:00
Mouse Reeve
fdc53d6c60
Merge pull request #2394 from jaschaurbach/show-2fa-code
show otp_secret when setting up 2fa
2022-11-19 10:25:15 -08:00
Mouse Reeve
2adcbdea2f
Merge pull request #2419 from bookwyrm-social/robots
Expand robots.txt
2022-11-19 10:24:55 -08:00
Mouse Reeve
1e5a6ec744
Merge branch 'main' into show-2fa-code 2022-11-19 10:09:27 -08:00
Mouse Reeve
7d51a69c71 Expand robots.txt 2022-11-19 10:03:40 -08:00
Hugh Rundle
6baa58260a
2fa qrcode fixes (#2407)
* 2fa qrcode fixes

- add light background to qr code when using dark theme
- show OTP secret code under qr code for manual entry on apps if required

fixes #2386
fixes #2389

* fix code formatting

* revert changes re visible code

This conflicts with an existing PR.

* i code pretty
2022-11-19 09:51:18 -08:00
Mouse Reeve
e11811d461
Fancier UI around OTP codes 2022-11-19 09:48:44 -08:00
Jascha Urbach
238a1b0e88
set HTTP_X_FORWARDED_PROTO in .env
This fixes #2397.

The description in .env is whith a warning and a link to the official documentation about what this setting is doing if set to true.
2022-11-19 17:54:44 +01:00
Mouse Reeve
c5fb710f29 Fixes code of conduct link 2022-11-18 08:23:53 -08:00
Mouse Reeve
9aab14ee96
Merge pull request #2406 from bookwyrm-social/disable-imports
Allow admins to disable starting imports
2022-11-17 19:51:17 -08:00
Mouse Reeve
9c5fe7610b Fixes reference to site model 2022-11-17 15:41:30 -08:00
Mouse Reeve
d36521c460
Merge pull request #2405 from bookwyrm-social/admins-list
Fixes collecting list of admins
2022-11-17 15:22:10 -08:00
Mouse Reeve
28567e2d8e Disable imports in the UI and view 2022-11-17 15:19:42 -08:00
Mouse Reeve
46b663b139 Rename new user to avoid duplication 2022-11-17 15:10:11 -08:00
Mouse Reeve
34f05c135b Adds unit tests for list of admins method 2022-11-17 14:59:46 -08:00
Mouse Reeve
b1c6781036 Fixes collecting list of admins 2022-11-17 14:38:05 -08:00
Mouse Reeve
7c7c0e1a93 Admin UI to enable and disable importing 2022-11-17 14:23:39 -08:00
Mouse Reeve
2d3ec93086 Updates unit tests 2022-11-17 14:06:43 -08:00
Mouse Reeve
474da162ba Uses correct css paths in embeds 2022-11-17 13:34:54 -08:00
Mouse Reeve
7e10b0cd1f
Merge pull request #2400 from bookwyrm-social/local-rss
Only offer RSS feeds for local users
2022-11-17 12:53:19 -08:00
Mouse Reeve
b37a4322de Change log level to info for connector exceptions
These errors in resolve_remote_id aren't really errors, they're
routine problems that we can expect from dealing with the outside world,
like a connection timeout, a server being down, a server being blocked,
et cetera. It's cluttering up the logs and causing unnecessary worry.
2022-11-17 12:35:19 -08:00
Mouse Reeve
77d96bf245 Only offer RSS feeds for local users 2022-11-17 12:03:59 -08:00
Mouse Reeve
6dd671ae5a Fixes user follow cache 2022-11-17 11:23:48 -08:00
Mouse Reeve
fe7163be33 Render markdown to html when using activitypub
This will produce better federated results outside of bookwyrm, and will
still display correctly within bookwyrm
2022-11-17 11:05:48 -08:00
Mouse Reeve
24f73f81f6 Update version number 2022-11-16 18:43:51 -08:00
Mouse Reeve
2dad14bdcf
Merge pull request #2395 from bookwyrm-social/settings-view-perms
Fixes permissions on settings invite request page
2022-11-16 18:33:20 -08:00
Mouse Reeve
a546ab578b Fixes decorator on view method 2022-11-16 18:23:26 -08:00
Mouse Reeve
fcdb7f106e Ticks version number 2022-11-16 18:19:23 -08:00
Mouse Reeve
5a7afe45a2 Fixes permissions on settings invite request page 2022-11-16 18:03:52 -08:00
Jascha Urbach
170aa7460a
Update 2fa.html
Or now, because obviously I can not write HTML^^
2022-11-16 20:35:28 +01:00
Jascha Urbach
a98dbb97a5
fix error
fix my copy paste error -.-
2022-11-16 20:32:40 +01:00
Jascha Urbach
c29256708a
show otp_secret when setting up 2fa
solves #2389
2022-11-16 20:30:06 +01:00
Jascha Urbach
be97fd2d39
Remove dead URL
https://fediblock.org delivers a 410 Gone as respone.
2022-11-16 18:24:19 +01:00
Mouse Reeve
f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
Mouse Reeve
47f1865c59 Remove trailing whitespace from queries 2022-11-15 20:09:00 -08:00
Mouse Reeve
f0f65b8b73 Python formatting 2022-11-15 20:08:17 -08:00
Mouse Reeve
9185708224 Simplify how default edition is checked
This logic is still totally bonkers, but this change puts a hard limit
on how many iterations the loop can go through and makes the query that
selects which edition to display a little simpler.
2022-11-15 20:05:41 -08:00
Mouse Reeve
eb61033626 Simplify identifier searches
This commit removes code that deduplicated search results for identifier
searches. If it was the case that multiple books have the same
identifier, in theory this would produce better search results, but in
practice this doesn't happen very much, is probably worth seeing when
it does, and worsens the performance of identifier search overall.
2022-11-15 19:42:40 -08:00
Mouse Reeve
807f8c02b2
Merge pull request #2382 from bookwyrm-social/invite-length
Longer invite answer field
2022-11-15 15:03:51 -08:00
Jascha Urbach
4c05e3b660
Merge branch 'main' into deactivate-2fa-with-manage.py 2022-11-15 23:52:52 +01:00
Mouse Reeve
c47a425cbe Longer invite answer field
It was an oversight that it was only set to 50 characters I expect!
2022-11-15 14:52:07 -08:00
Jascha Urbach
8a99482a2f
correct linter errors
./bw-dev black

reformatted bookwyrm/management/commands/remove_2fa.py

All done!  🍰 
1 file reformatted, 544 files left unchanged.
2022-11-15 23:32:24 +01:00
Jascha Urbach
cd57537854
Remove TFA from user
added bookwyrm/management/remove_2fa.py

changed bw-dev
2022-11-15 23:20:21 +01:00
Mouse Reeve
317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
Mouse Reeve
bf3043f91f Fixes column widths 2022-11-14 18:48:30 -08:00
Mouse Reeve
85337c73e5
Merge branch 'main' into footer-links 2022-11-14 18:46:42 -08:00
Mouse Reeve
4178eb81e4
Merge pull request #2366 from bookwyrm-social/footer-snippet
Uses the same snippet for the footer across different templates
2022-11-14 18:46:15 -08:00
Mouse Reeve
fe82599de9 Include privacy policy and code of conduct in footer 2022-11-14 18:37:27 -08:00
Mouse Reeve
dbe74f6388 Uses the same snippet for the footer across different templates 2022-11-14 18:18:27 -08:00
Mouse Reeve
914479f1c9
Merge pull request #2365 from bookwyrm-social/url-typo
Small fixes - typo in a url and emails about reports
2022-11-14 18:13:09 -08:00
Mouse Reeve
5b358094ab Fixes report emails always claiming to be about links 2022-11-14 18:03:36 -08:00
Mouse Reeve
e655f5c2f3 Fixes typo in url regex 2022-11-14 16:06:40 -08:00
Mouse Reeve
36f511ebb7
Merge pull request #2140 from cincodenada/ignore-does-not-exist
Ignore VariableDoesNotExist errors in debug logging
2022-11-14 12:26:06 -08:00
Mouse Reeve
a91d9f67be
Merge pull request #2362 from bookwyrm-social/revoke-image-tasks
Adds management command to revoke preview image tasks
2022-11-14 12:20:05 -08:00
Mouse Reeve
b812a5c73e Adds management command to revoke preview image tasks 2022-11-14 12:09:16 -08:00
Ell Bradshaw
c9adb7ff12 Linting fixes 2022-11-14 01:04:20 -08:00
Ell Bradshaw
b3603bc3f5 Merge branch 'main' into ignore-does-not-exist 2022-11-14 00:31:34 -08:00
André Jaenisch
530d7de309
Use variable instead of string
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-11-13 16:59:05 +01:00
Mouse Reeve
ddcaf8e3b8 Use asyncio for broadcasting 2022-11-10 15:41:56 -08:00
Mouse Reeve
49d0590599 Another tweak to how import wait times are calculated 2022-11-10 13:59:27 -08:00
Mouse Reeve
eae1866992
Allow users to temporarily deactivate their accounts (#2324) 2022-11-10 13:40:54 -08:00
Mouse Reeve
bbdba9e793 Python formatting 2022-11-10 13:13:53 -08:00
Mouse Reeve
8f2de48b0a Comments out unrelated test block 2022-11-10 13:05:42 -08:00
Mouse Reeve
48d4149151 Fixes null state 2022-11-10 12:39:07 -08:00
Mouse Reeve
f80e2465ed Adds tests for recent import average time 2022-11-10 12:29:36 -08:00