1
0
Fork 0
Commit graph

6364 commits

Author SHA1 Message Date
bdd32c5628
Merge pull request #2555 from jaschaurbach/author_website
Add Website field to author
2023-01-09 20:14:14 -08:00
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
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
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
6947e74f5d
Merge pull request #2525 from jaschaurbach/fix-form-submit
Update forms.js
2022-12-21 11:10:21 -08:00
d0f7cf56f6
Merge pull request #2529 from chdorner/fix/titleby-cache-clearing
Fix titleby cache fragment clearing
2022-12-21 11:06:13 -08:00
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
b2fd5c26b9
Merge pull request #2538 from bookwyrm-social/basque
Adds Basque language
2022-12-21 10:56:50 -08:00
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
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
d3c15efa0a Display generated notes correctly depending on format 2022-12-19 16:24:32 -08:00
259ceeea21
./bw-dev prettier 2022-12-20 00:06:02 +01:00
e4892701d8
Update forms.js
Now it works in the correct fields.
2022-12-19 23:57:00 +01:00
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
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
7397a2dcb1
Merge branch 'main' into bump_requirements 2022-12-19 12:28:33 -08:00
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