Mouse Reeve
8f537ef56a
Adds missing migration for Korean locale
2024-02-20 16:45:16 -08:00
Mouse Reeve
6163e1a6be
Merge pull request #3283 from NetspherePub/ko_KR
...
Add Korean (ko-kr) to LANGUAGES and locale.
2024-02-20 16:44:31 -08:00
Ross Chapman
dd1999eb8e
Adds view tests for shelf filters ( #3162 )
...
* Adds test file
* Adds success assertion
* Updates tests
* Updates shelf books creation
* Updates assertion to use isbn for Edition model
* Updates query
* trigger workflow test
* Updates validate_html
* Updates comment and test
* Fixes none test
* Adds management command to clear all deleted user data
* Adds success message
---------
Co-authored-by: Mouse Reeve <mousereeve@riseup.net>
Co-authored-by: Mouse Reeve <mouse.reeve@gmail.com>
2024-02-20 16:25:01 -08:00
Søren Birkemeyer
4c0d5ede86
Fix label and input association for shelves filter
...
This PR correctly associates label and text input of the shelves
filter via for- and id-attributes. With the association in place,
the aria-label can be removed (the label will be announced by
assistive software when the input is focused). This also fixes the
issue that the aria-label was not translated, whereas the label is.
2024-02-10 16:24:52 +00:00
FoW
ddd13a3e2e
Add Korean (ko-kr) to LANGUAGES and locale
2024-02-10 16:17:25 +09:00
Hugh Rundle
46a158d701
Merge branch 'main' into export-fixes
2024-02-06 18:31:19 +11:00
Carlos Camara
89d8537e1b
Add wikidata field to author's template
2024-02-05 22:08:34 +00:00
Carlos Cámara
71f527eb1b
Merge branch 'main' into wikidata
2024-02-04 20:34:51 +01:00
Adeodato Simó
4a9d69e169
Support DATA_UPLOAD_MAX_MEMORY_MiB, only, in .env
...
Since arithmetic is not allowed in .env files, a change in unit for
the variable seems most usable.
2024-02-04 15:34:04 -03:00
Carlos Cámara
6ac38564e2
Add wikidata field for authors
2024-02-03 22:55:33 +00:00
Bart Schuurmans
6c9ca0bf19
Add search for author
2024-02-03 21:55:46 +01:00
Mouse Reeve
748c934986
Merge migrations upon merge migrations
2024-02-03 08:20:12 -08:00
Mouse Reeve
f7580c59a5
Merge branch 'main' into check-version-number
2024-02-03 08:19:46 -08:00
Mouse Reeve
4e2b8af147
Adds merge migration
2024-02-03 08:02:51 -08:00
Mouse Reeve
48f8ee57a6
Merge branch 'main' into check-version-number
2024-02-03 08:02:15 -08:00
Mouse Reeve
faf45cf956
Merge pull request #3273 from bookwyrm-social/WesleyAC-freeform-page-number
...
Allow page numbers to be text, instead of integers
2024-02-03 08:00:34 -08:00
Mouse Reeve
a1ac9494b2
Allow admins to un-schedule tasks
2024-02-03 08:00:07 -08:00
Mouse Reeve
6d5752fb4e
Adds merge migration for page numbering fix
2024-02-03 07:40:23 -08:00
Mouse Reeve
37aa7ad2f6
Merge branch 'freeform-page-number' of github.com:WesleyAC/bookwyrm into WesleyAC-freeform-page-number
2024-02-03 07:38:02 -08:00
Mouse Reeve
e0667c6a03
Merge pull request #3237 from Minnozz/status-title-description
...
Improve OpenGraph tags for status and book pages
2024-02-03 07:37:00 -08:00
Mouse Reeve
103da863c4
Merge pull request #3239 from Minnozz/user-agent
...
Replace python-requests with BookWyrm in user agent
2024-02-03 07:27:58 -08:00
Mouse Reeve
fa66284000
Merge pull request #3253 from skobkin/patch-autocomplete-fictionbook-format
...
Adding FictionBook format ("FB2", "FB3") to autocomplete options in "get a copy" block.
2024-02-03 07:26:58 -08:00
Mouse Reeve
0f0420ce04
Merge pull request #3257 from dato/prefer_shared_inbox
...
Use shared inboxes for mentions too
2024-02-03 07:25:51 -08:00
Mouse Reeve
438d88d8d4
Merge pull request #3260 from bSolt/fix-widths-2023
...
Fix awkward layout for tablets on /confirm-email, /login, /invite, and /preferences/reactivate
2024-02-03 07:18:35 -08:00
Mouse Reeve
5f2f321ed5
Merge branch 'main' into export-fixes
2024-02-03 07:04:05 -08:00
Mouse Reeve
45cc3dc979
Merge pull request #3249 from dato/cookie_age_setting
...
Set SESSION_COOKIE_AGE from environment
2024-02-03 07:03:12 -08:00
Mouse Reeve
9c5f6c527b
Fixes translation tags
2024-02-03 06:51:23 -08:00
Jacob Kerr
2ba7dff845
Fixed shelving date changing when changing editions
2024-01-30 16:53:59 -05:00
Braden Solt
6add81cf15
move outside of authors "if"
2024-01-27 11:02:42 -07:00
Braden Solt
629acbaa19
add series number on posts in the feed
2024-01-27 10:58:57 -07:00
Braden Solt
940274b1c2
classes that fix widths
2024-01-26 15:47:55 -07:00
Adeodato Simó
accb3273f1
When determining privacy, check for unlisted early
...
If `followers_url` is found in `to`, the post may still be _unlisted_
if `"https://www.w3.org/ns/activitystreams#Public "` appears in `cc`.
Hence this should be checked earlier.
2024-01-26 06:45:54 -03:00
Adeodato Simó
8ac873419f
refactor: eagerly use a set in recipients, get_recipients
2024-01-26 06:29:59 -03:00
Adeodato Simó
31babdfa51
Always prefer shared inboxes when computing receipent lists
...
This avoids duplicate submissions to remote instances when mentioning
followers (i.e., `POST /user/foo/inbox` followed by `POST /inbox`, which
results in two separate `add_status` tasks, and might generate duplicates
in the target instance).
2024-01-26 06:18:02 -03:00
Adeodato Simó
500e4eb4f5
Merge from main to avoid conflicts
2024-01-25 20:27:54 +01:00
Adeodato Simó
82f9aa9da4
Set SESSION_COOKIE_AGE from environment, default to one month
...
While we do wish for a longer maximum age (up to one year, see #3082 ),
we only want to do that after termination of active sessions is
implemented (see #2278 ).
In the meantime, by reading and setting the variable from settings,
we allow site admins to alter the default.
2024-01-25 20:27:24 +01:00
Alexey Skobkin
2d4b11aaee
Adding FictionBook format ("FB2", "FB3") to autocomplete options in "Get a copy" block.
2024-01-25 01:50:10 +03:00
Rohan Sureshkumar
c4596544a3
Issue-3187: fix failing tests
2024-01-24 19:18:46 +05:30
Bart Schuurmans
eb6bea013f
Fix pylint warning
2024-01-21 11:04:08 +01:00
Bart Schuurmans
646b27b7a7
OpenGraph: fall back on book cover when preview images are disabled
2024-01-20 17:34:52 +01:00
Bart Schuurmans
ea9d3f8ba1
Use Status.page_image for OpenGraph tags
2024-01-20 17:34:52 +01:00
Bart Schuurmans
290ee997b3
Refactor OpenGraph tags logic
2024-01-20 17:34:52 +01:00
Bart Schuurmans
ad56024ffe
Add Status.page_image property
2024-01-20 17:34:52 +01:00
Bart Schuurmans
f7b4d9ea50
Give individual status page a title and OpenGraph description
2024-01-20 17:34:52 +01:00
Bart Schuurmans
6cb3b97144
Replace python-requests with BookWyrm in user agent
...
Fixes #3108
2024-01-20 16:15:17 +01:00
Hugh Rundle
ddc35a7a52
fix multiple issues from user exports config changes
...
- improve nginx config
- fix DATA_UPLOAD_MAX_MEMORY_SIZE default not being an int
- translate fallback value in id_to_username template tag
- make location of setting to turn on user exports easier to locate for admins
fixes #3227
fixes #3231
fixes #3232
fixes #3236
2024-01-20 13:19:13 +11:00
Rohan Sureshkumar
8e2649ba3b
Issue-3187: change variable name and code formatting
2024-01-18 21:23:25 +05:30
Rohan
d73141792d
Merge branch 'main' into issue-3187
2024-01-18 21:19:20 +05:30
Mouse Reeve
fb5fae4251
Merge pull request #3219 from bSolt/issue-3178
...
Fix awkward clipping on about page
2024-01-17 15:31:52 -08:00
Mouse Reeve
61a6ee29d8
Merge pull request #3224 from hughrun/move-fix
...
Pass correct user id in Move notification
2024-01-17 14:25:28 -08:00
Mouse Reeve
a585321ef9
Merge pull request #3226 from hughrun/disable-exports
...
Disable user exports
2024-01-17 14:23:29 -08:00
Hugh Rundle
b990d9ccd8
Pass correct user id in Move notification
...
We were passing the *requesting* user's moved_to value to the Move notification template, instead of the id of the user that they are being notified about.
Additionally, the id_to_username template tag had no fallback for if the user_id is None.
This resolves both problems and removes an unnecessary space in a template for when the logged in user made the move.
Fixes #3196
2024-01-17 21:06:04 +11:00
Hugh Rundle
d640e4ac96
disable user exports by default
...
- new setting to enable user exports defaults to False
- add setting to enable and disable user exports
- do not allow user exports when using s3 storage
- do not serve non-image files from /images/ (requires update to nginx settings)
- increase default file upload limit to 100MB to enable user exports to be imported (can be changed in .env)
2024-01-16 21:32:13 +11:00
Carlos Camara
ddbda3ab9c
Fix test_export
2024-01-16 08:12:59 +00:00
bSolt
76a3874662
add bulma classes to fix awkward spacing
2024-01-15 23:25:52 -07:00
Rohan
8144507893
Merge branch 'main' into issue-3187
2024-01-15 17:25:36 +05:30
Rohan Sureshkumar
70adf878e8
Merge branch 'issue-3187' of https://github.com/rsk2/bookwyrm into issue-3187
2024-01-15 17:23:17 +05:30
Rohan Sureshkumar
5ef104b802
Issue-3187: addressing review comments
2024-01-15 17:22:33 +05:30
Adeodato Simó
eb13eb9882
Invalidate active_shelf
when switching editions
2024-01-13 19:00:57 +01:00
Carlos Camara
854eb36618
Export bookshelves and review date
2024-01-13 16:47:51 +00:00
Hugh Rundle
5d13bf8e49
Merge branch 'main' into 2965_export_readthrough
2024-01-12 16:12:01 +11:00
Rohan
6dc95a82d6
Merge branch 'bookwyrm-social:main' into issue-3187
2024-01-09 17:06:22 +05:30
Rohan Sureshkumar
1a682753c0
Issue-3187: changes
2024-01-09 15:31:05 +05:30
Mouse Reeve
83ff880603
Revert "Don't show notification for user follow request if the user is inactive"
2024-01-07 08:31:48 -08:00
Carlos Camara
ce18d343e8
Fix pylint error and code format
2024-01-06 09:55:39 +01:00
Carlos Camara
93cab480d6
Code format
2024-01-06 09:50:14 +01:00
Wesley Aptekar-Cassels
6cd2c91135
Allow page numbers to be text, instead of integers.
...
Fixes : #2640
2024-01-04 19:09:39 -05:00
Carlos Camara
c2622a510c
Change else statement to None vs ""
2024-01-04 11:40:40 +01:00
Carlos Camara
ebcc81dd73
Revert changes to default book
...
These changes were introduced by mistake in my previous commit.
2024-01-04 11:33:26 +01:00
Carlos Camara
30c9ec9611
Prevent lint error
...
See @hughrun 's explanation https://github.com/bookwyrm-social/bookwyrm/pull/3189#issuecomment-1876145423
2024-01-04 11:28:17 +01:00
Carlos Camara
51cb70d344
Change readhtrough order
2024-01-04 11:27:17 +01:00
Carlos Camara
9acb5f66fe
Convert DateTime to date
2024-01-04 11:26:44 +01:00
Carlos Camara
ae5950f187
Add readthrough fields to text_export.py
2024-01-04 11:10:38 +01:00
Carlos Camara
766a2163dd
Code formatting
2024-01-03 20:41:31 +01:00
Carlos Camara
db8c686dd3
Include book Readtrhough in the csv export
2024-01-03 15:43:15 +01:00
Mouse Reeve
597378bb78
Merge pull request #3183 from bookwyrm-social/erase_user_command
...
Adds management command to clear all deleted user data
2024-01-02 20:13:03 -08:00
Mouse Reeve
9c3e6384f8
Merge pull request #3118 from rosschapman/let-a-user-search-within-their-books
...
Let a user search books within their shelves
2024-01-02 18:37:33 -08:00
Mouse Reeve
01db77a745
Adds success message
2024-01-02 18:29:55 -08:00
Mouse Reeve
d287581620
Fixes html validation error
2024-01-02 13:31:18 -08:00
Mouse Reeve
193a1c7d54
updates wording and fixes get or create logic
2024-01-02 13:28:25 -08:00
Mouse Reeve
8be9e91d21
Re-use schedules rather than creating new ones
2024-01-02 13:18:26 -08:00
Mouse Reeve
f36af42f41
Adds view to see scheduled tasks
2024-01-02 13:05:44 -08:00
Mouse Reeve
5509941aa4
Adds schedule-able task to check for version updates
2024-01-02 13:05:26 -08:00
Mouse Reeve
d6f7f76c4d
Removes outdated/unused version and updating code
...
I had the bright idea of creating this update script but it doesn't work
and hasn't been maintained, so it's just sitting there causing confusing
and requiring weird things to exist in other places.
Now, the unused `version` field can be removed and I can scrap the
management command for getting versions.
2024-01-02 11:37:01 -08:00
Mouse Reeve
381490e31d
Adds management command to clear all deleted user data
2024-01-02 10:50:46 -08:00
Mouse Reeve
2a85378456
Removes part of migration causing upgrade issues
2024-01-02 09:57:41 -08:00
Mouse Reeve
913a19c8f0
Formats migration file
2024-01-01 19:33:49 -08:00
Mouse Reeve
f72ada4780
Updates javascript cache buster just in case
2024-01-01 19:29:43 -08:00
Mouse Reeve
86d79f537a
Adds merge migration
2024-01-01 19:29:24 -08:00
Mouse Reeve
fb16806afe
Merge pull request #3177 from dato/naturalday_partial_fixes
...
Adjustments to naturalday_partial
2024-01-01 19:16:16 -08:00
Mouse Reeve
ffeca9f908
Merge pull request #3150 from dato/get_representative_atomic
...
Make get_representative() atomic
2024-01-01 19:14:19 -08:00
Mouse Reeve
ca79cb1ca7
Merge pull request #3054 from bookwyrm-social/user-migration
...
User migration via export file
2024-01-01 19:04:43 -08:00
Adeodato Simó
4711b3bc19
naturalday_partial: simplify/refactor
2024-01-01 18:36:31 +01:00
Adeodato Simó
0d908b594c
naturalday_partial: do not naturalize dates with missing parts
2024-01-01 18:36:31 +01:00
Adeodato Simó
0e3936cb61
naturalday_partial: do naturalize date and datetime objects
2024-01-01 18:36:30 +01:00
Mouse Reeve
47cdc14bc0
Update bookwyrm/migrations/0189_alter_user_preferred_language.py
...
Co-authored-by: Demid <grrrr@protonmail.com>
2023-12-17 06:54:39 -08:00
Mouse Reeve
430e4eb90d
Update bookwyrm/settings.py
...
Co-authored-by: Demid <grrrr@protonmail.com>
2023-12-17 06:52:49 -08:00
Ross Chapman
b728bb4323
Uses block trans
2023-12-16 12:05:35 -08:00
Ross Chapman
a4172214d1
Updates size of filters panel label
2023-12-15 13:17:23 -08:00
Ross Chapman
fb36958444
Removes unused variable
2023-12-14 13:47:51 -08:00