Bart Schuurmans
d90e8e56d5
Merge pull request #3341 from Minnozz/django-4.2
...
Upgrade to Django 4.2
2024-05-31 17:04:17 +02:00
Bart Schuurmans
eca246fc61
Fix lint
2024-05-31 16:59:24 +02:00
Bart Schuurmans
aa2312e8af
Merge branch 'main' into django-4.2
2024-05-31 16:52:48 +02:00
Bart Schuurmans
61d9e0c260
Move comment to separate line
...
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
2024-05-31 16:49:34 +02:00
Bart Schuurmans
44eedd09d9
Merge pull request #1 from dato/django-4.2
...
minor contributions to django 4.2 upgrade
2024-05-31 16:49:06 +02:00
Mouse Reeve
4e987a0e66
Merge pull request #3369 from bookwyrm-social/dependabot/pip/requests-2.32.0
...
Bump requests from 2.31.0 to 2.32.0
2024-05-21 14:47:34 -07:00
dependabot[bot]
332286cdff
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 05:41:48 +00:00
Adeodato Simó
e6ee169c3e
Narrow down bare type: ignore
pragmas
2024-04-26 21:20:43 -03:00
Adeodato Simó
29f852b57e
consolidate multiple cache.delete() calls into cache.delete_many()
2024-04-26 15:36:38 -03:00
Bart Schuurmans
acae063652
Fix new warnings from pylint upgrade
2024-04-26 13:59:16 +02:00
Bart Schuurmans
c32f9faaa0
Upgrade pylint to 2.17.7
2024-04-26 13:41:01 +02:00
Bart Schuurmans
e7f95ef4c2
Modify update_fields in save() when modifying objects
...
https://docs.djangoproject.com/en/5.0/releases/4.2/#setting-update-fields-in-model-save-may-now-be-required
2024-04-25 15:53:53 +02:00
Bart Schuurmans
a6c2ce15dd
Early return
2024-04-25 15:51:32 +02:00
Bart Schuurmans
7604d0acdb
Simplify ObjectMixin broadcast kwarg
2024-04-25 10:31:24 +02:00
Bart Schuurmans
77832cbec7
Add merge migration
2024-04-25 10:14:07 +02:00
Bart Schuurmans
de67c73237
Add merge migration
2024-04-25 10:14:07 +02:00
Bart Schuurmans
f38622fdc9
Define CSRF_TRUSTED_ORIGINS
2024-04-25 10:14:07 +02:00
Bart Schuurmans
051dab77bb
Replace deprecated CICharField with custom collation for case-insensitivity
2024-04-25 10:14:07 +02:00
Bart Schuurmans
2896219e88
Switch from django-redis to the built-in Redis cache backend
2024-04-25 10:14:07 +02:00
Bart Schuurmans
03ac846b5d
Migrate from pytz to zoneinfo
2024-04-25 10:14:07 +02:00
Bart Schuurmans
39c2a0feae
Update qrcode to 7.4.2
2024-04-25 10:14:07 +02:00
Bart Schuurmans
22986a08f0
Update pytest to 8.1.1
2024-04-25 10:14:07 +02:00
Bart Schuurmans
f6bbe673ca
Update responses to 0.25.0
2024-04-25 10:14:07 +02:00
Bart Schuurmans
f324a3cd1d
Update pytest-xdist to 3.5.0
2024-04-25 10:14:07 +02:00
Bart Schuurmans
039160e004
Update pytest-env to 1.1.3
2024-04-25 10:14:07 +02:00
Bart Schuurmans
a1ff5a478e
Update types-Pillow to 10.2.0.20240331
2024-04-25 10:14:07 +02:00
Bart Schuurmans
1cb86197d5
Update types-requests to 2.31.0.20240311
2024-04-25 10:14:07 +02:00
Bart Schuurmans
2537886b4d
Group version constraints for indirect dependencies and change to >=
2024-04-25 10:14:07 +02:00
Bart Schuurmans
1474c0d3aa
Remove protobuf as a direct dependency
2024-04-25 10:14:07 +02:00
Bart Schuurmans
e46bc2e9a1
Update redis-py to 5.0.3
2024-04-25 10:14:07 +02:00
Bart Schuurmans
01b37026eb
Update Markdown to 3.6
2024-04-25 10:14:07 +02:00
Bart Schuurmans
9ebda3fbe8
Update celery to 5.3.6
2024-04-25 10:14:07 +02:00
Bart Schuurmans
b6174d9101
Update bleach to 6.1.0
2024-04-25 10:14:06 +02:00
Bart Schuurmans
1303f539c3
Update psycopg to 2.9.9
2024-04-25 10:13:21 +02:00
Bart Schuurmans
624115bf11
Use headers dict instead of HTTP_* kwargs or request.META
2024-04-25 10:13:21 +02:00
Bart Schuurmans
224fae7a87
Fix mypy errors
2024-04-25 10:13:21 +02:00
Bart Schuurmans
869bc5a376
Update mypy to 1.7.1
2024-04-25 10:13:21 +02:00
Bart Schuurmans
d80a0146bd
Update django-stubs to 4.2.7
2024-04-25 10:13:21 +02:00
Bart Schuurmans
e1fd57a1d6
Fix constructor arguments to SessionMiddleware in tests
2024-04-25 10:13:21 +02:00
Bart Schuurmans
1f8ba4df3e
Update python-dateutil to 2.9.0.post0
2024-04-25 10:13:21 +02:00
Bart Schuurmans
c11725a5c8
Update pyotp to 2.9.0
2024-04-25 10:13:21 +02:00
Bart Schuurmans
309147bd98
Update pycryptodome to 3.20.0
2024-04-25 10:13:21 +02:00
Bart Schuurmans
1276112214
Update opentelemetry dependencies
2024-04-25 10:13:21 +02:00
Bart Schuurmans
e9325b8798
Update libsass to 0.23.0
2024-04-25 10:13:21 +02:00
Bart Schuurmans
e0a14ea2ba
Update django-sass-processor to 1.4
2024-04-25 10:13:21 +02:00
Bart Schuurmans
69c273486c
Update django-model-utils to 4.4.0
2024-04-25 10:13:19 +02:00
Bart Schuurmans
ffb3549e06
Update django-imagekit to 5.0.0
2024-04-25 10:12:30 +02:00
Bart Schuurmans
16e1b17a33
Update django-csp to 3.8
2024-04-25 10:12:30 +02:00
Bart Schuurmans
3dfbc44c9a
Update django-celery-beat to 2.6.0
2024-04-25 10:12:30 +02:00
Bart Schuurmans
23bf089004
Update boto3 to 1.34.74
2024-04-25 10:12:30 +02:00
Bart Schuurmans
b5ef9f6241
Configure STORAGES using OPTIONS instead of subclassing
2024-04-25 10:12:30 +02:00
Bart Schuurmans
4fa823e8df
Update django-storages to 1.14.2
...
The problem that boto3 closes files has been worked around in django-storages.
2024-04-25 10:12:30 +02:00
Bart Schuurmans
cfcb873235
Update pytest-cov to 5.0.0
2024-04-25 10:12:30 +02:00
Bart Schuurmans
0007c86a2c
Update environs to 11.0.0
2024-04-25 10:12:30 +02:00
Bart Schuurmans
984d7fb7d8
Update pytest-django to 4.8.0
2024-04-25 10:12:30 +02:00
Bart Schuurmans
92a94d2fdc
django.utils.timezone.utc alias is deprecated
2024-04-25 10:12:30 +02:00
Bart Schuurmans
0d621b68e0
Reorder operations in save() overrides
...
Accessing many-to-many relations before saving is no longer allowed.
Reorder all operations consistently:
1. Validations
2. Modify own fields
3. Perform save by calling super().save()
4. Modify related objects and clear caches
Especially clearing caches should be done after actually saving, otherwise the old data can be
re-added immediately by another request before the new data is written.
2024-04-25 10:12:30 +02:00
Bart Schuurmans
47fdad9c87
Use new STORAGES setting
2024-04-25 10:12:30 +02:00
Bart Schuurmans
3349817a0b
settings.USE_L10N is deprecated
2024-04-25 10:12:30 +02:00
Bart Schuurmans
45bd67cb04
Add migration resulting from Django 4.2 upgrade
2024-04-25 10:12:29 +02:00
Bart Schuurmans
2f4010b93b
Upgrade Django to 4.2
...
- https://docs.djangoproject.com/en/5.0/releases/4.0/
- https://docs.djangoproject.com/en/5.0/releases/4.1/
- https://docs.djangoproject.com/en/5.0/releases/4.2/
2024-04-25 10:12:29 +02:00
Mouse Reeve
c4b21ee258
Merge pull request #3114 from SMillerDev/feat/api/oauth
...
feat: add OAuth authentication
2024-04-24 15:45:54 -07:00
Mouse Reeve
ad830dd885
Merge pull request #3350 from Minnozz/custom-port
...
Correctly handle serving BookWyrm on custom port
2024-04-24 15:27:01 -07:00
Mouse Reeve
366c647585
Merge pull request #3359 from bookwyrm-social/dependabot/pip/aiohttp-3.9.4
...
Bump aiohttp from 3.9.2 to 3.9.4
2024-04-24 15:13:30 -07:00
Bart Schuurmans
4f58b11330
Include the correct protocol and port in remote IDs
2024-04-24 15:35:19 +02:00
Bart Schuurmans
609bc15406
Support http:// protocol in BookWyrm connector
2024-04-24 15:30:47 +02:00
Bart Schuurmans
c42db40a63
Construct absolute URLs with the correct protocol and port
2024-04-24 15:30:47 +02:00
Bart Schuurmans
3aefbb548e
Allow serving BookWyrm on a non-standard port
2024-04-24 15:30:47 +02:00
Bart Schuurmans
baea105c18
pytest.ini env values should be unquoted
...
Otherwise the quotes end up in the strings.
2024-04-24 15:30:47 +02:00
Bart Schuurmans
c73d1fff6a
Remove unnecessary exceptions from validate_url_domain
2024-04-24 15:30:47 +02:00
Bart Schuurmans
3d183a393f
Merge pull request #3360 from hughrun/move-fix
...
refactor Move for more redundancy
2024-04-24 15:30:19 +02:00
Bart Schuurmans
f24fdf73b5
Update to match newer code style
2024-04-24 15:08:48 +02:00
Bart Schuurmans
839ab2fafd
Merge branch 'main' into move-fix
2024-04-24 14:56:32 +02:00
Bart Schuurmans
637f19b208
Merge pull request #3336 from Minnozz/s3-url-protocol
...
Support AWS_S3_URL_PROTOCOL
2024-04-24 14:53:55 +02:00
Bart Schuurmans
031223104f
Clarify AWS_S3_URL_PROTOCOL in .env.example
2024-04-24 14:46:57 +02:00
Hugh Rundle
6684d60526
refactor Move for more redundancy
...
As outlined in #3354 , a use `Move` fails if the user is moving from a BookWyrm server to another BookWrym server.
This is because:
1. the original code did not announce changes to alsoKnownAs;
2. the original code always checked the locally saved profile rather than refetching the remote data;
This commit fixes both these problems by forcing `MoveUser` to always perform a "refresh" of the local data from the remote, and by saving the user with broadcast=True when updating alsoKnownAs ids.
2024-04-22 13:35:08 +10:00
dependabot[bot]
cca58023ed
Bump aiohttp from 3.9.2 to 3.9.4
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.9.2 to 3.9.4.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.2...v3.9.4 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-18 15:51:34 +00:00
Bart Schuurmans
bf5c08dbf3
Add docker-compose.override.yml to .gitignore
2024-04-15 13:17:00 +02:00
Bart Schuurmans
be872ed672
Support AWS_S3_URL_PROTOCOL
...
- Allow setting in .env
- Default to PROTOCOL (same as before)
- Propagate to django-storages so it generates the correct URLs in sass_src
2024-04-15 13:16:51 +02:00
Bart Schuurmans
70f803a1f6
Merge pull request #3353 from dato/fix_quotation_str_pagenum
...
Fix creation of quotations with no end position
2024-04-15 13:11:55 +02:00
Adeodato Simó
4304cd4a79
use re.escape
2024-04-13 21:26:41 -03:00
Adeodato Simó
8733369605
test_quotation_page_serialization: add test with no position
2024-04-13 21:26:41 -03:00
Adeodato Simó
df78cc64a6
Quotation._format_position: do not treat page numbers as integers
...
Fixes : #3352
2024-04-13 21:26:41 -03:00
Adeodato Simó
f844abcad9
test_quotation_page_serialization: use strings for page numbers
...
This follows from #3273 , "Allow page numbers to be text, instead of
integers".
2024-04-13 21:26:39 -03:00
Bart Schuurmans
21a39f8170
Merge pull request #3228 from hughrun/user-export
...
Fix user exports to deal with s3 storage
2024-04-13 22:53:58 +02:00
Hugh Rundle
c3c46144fe
add merge migration
2024-04-13 12:39:40 +10:00
Hugh Rundle
d48d312c0a
Merge branch 'main' into user-export
2024-04-13 12:26:13 +10:00
Hugh Rundle
501fb45528
export avatars to own directory
...
Saving avatars to /images is problematic because it changes the original filepath from avatars/filename to images/avatars/filename.
In this PR prior to this commit, imports failed as they are looking for a file path beginning with "avatar"
2024-04-13 12:03:35 +10:00
Bart Schuurmans
7d581759da
Merge pull request #3342 from hbrunn/main-pilkit
...
[FIX] make sure to get Pillow>=10 compatible pilkit
2024-04-11 14:52:22 +02:00
Bart Schuurmans
d5a536ae36
Change pilkit constraint to the version that does work
2024-04-11 14:45:13 +02:00
Bart Schuurmans
26f92db5d8
Merge branch 'main' into main-pilkit
2024-04-11 14:43:10 +02:00
Bart Schuurmans
5686c5ae5d
Merge pull request #3356 from Minnozz/quick-fix-frontend-ci
...
Install same version of eslint in CI as in dev-tools
2024-04-10 22:10:07 +02:00
Bart Schuurmans
9d9e64399c
Install same version of eslint in CI as in dev-tools
2024-04-10 21:26:34 +02:00
Mouse Reeve
b6aba44e42
Merge pull request #3355 from bookwyrm-social/merge-migration
...
Adds merge migration
2024-04-09 06:04:15 -05:00
Mouse Reeve
3ffbb242a4
Black
2024-04-09 05:59:01 -05:00
Mouse Reeve
af0bd90c15
Adds merge migration
2024-04-09 05:57:27 -05:00
Mouse Reeve
73630331d1
Merge pull request #3299 from Minnozz/absorb
...
Track which Author/Work/Edition a duplicate has been merged into
2024-04-09 05:55:44 -05:00
Mouse Reeve
ca6dbcb483
Merge pull request #3348 from Minnozz/more-indexes
...
Define more indexes for slow queries
2024-04-04 15:18:07 -07:00
Bart Schuurmans
e1c54b2933
Remove optimizations with adverse effects
...
`if not audience` actually causes the entire query to be evaluated, before .values_list() is called.
2024-04-04 13:47:56 +02:00
Bart Schuurmans
439cb3ccaa
Remove unnecessary conversions between list and set
2024-04-04 13:15:31 +02:00
Bart Schuurmans
321397a349
Specify which column DISTINCT should apply to
2024-04-03 21:28:22 +02:00
Bart Schuurmans
464a0298c6
Add index for finding active (and local) users
2024-04-03 21:27:52 +02:00
Bart Schuurmans
0501ce39cd
Add index for looking up User by username
2024-04-03 21:15:24 +02:00
Bart Schuurmans
4d5a30d953
Add index for looking up KeyPair by remote id
2024-04-03 21:11:27 +02:00
Bart Schuurmans
5cfe7eca6f
Add index for finding all statuses in a thread
2024-04-03 21:11:09 +02:00
Bart Schuurmans
5082806b82
Merge pull request #3338 from Minnozz/fix-nginx-location
...
Make nginx config safer
2024-04-03 19:22:16 +02:00
Mouse Reeve
d1d91f0c2b
Merge pull request #3347 from bookwyrm-social/dependabot/pip/pillow-10.3.0
...
Bump pillow from 10.2.0 to 10.3.0
2024-04-03 10:01:59 -07:00
dependabot[bot]
ea0ade955b
Bump pillow from 10.2.0 to 10.3.0
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/10.2.0...10.3.0 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 16:45:11 +00:00
Mouse Reeve
f085d3d0fe
Merge pull request #3346 from Minnozz/status-remote-id-index
...
Add index on Status.remote_id
2024-04-02 13:02:35 -07:00
Bart Schuurmans
4bbdd0b2d0
Add index on Status.remote_id
...
This field is often used in WHERE-clauses in queries that are very slow on bookwyrm.social.
2024-04-02 21:54:30 +02:00
Sean Molenaar
d5fb21f330
Merge branch 'main' into feat/api/oauth
2024-04-01 22:35:19 +02:00
Mouse Reeve
f28800af7f
Merge pull request #3339 from Minnozz/fix-file-leaks
...
Fix resource leaks
2024-03-31 12:43:19 -07:00
Mouse Reeve
cb3fd0cfc1
Merge branch 'main' into feat/api/oauth
2024-03-31 12:41:12 -07:00
Bart Schuurmans
72ed878eeb
Merge pull request #3343 from Minnozz/update-codeql
...
Update CodeQL workflows to v3
2024-03-30 22:01:49 +01:00
Bart Schuurmans
f666951934
Update CodeQL workflows to v3
...
https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/
2024-03-30 21:56:44 +01:00
Holger Brunn
fcd0087589
[FIX] make sure to get Pillow>=10 compatible pilkit
2024-03-30 01:58:41 +01:00
Bart Schuurmans
ffee29d8e2
Fix resource leaks
...
Rewrite places where files (or other resources) are opened but not closed to "with" blocks, which
automatically call close() at the end of the scope.
Also simplify some tests where images need to be saved to a model field: an opened file can be
passed directly to FileField.save().
2024-03-29 20:14:10 +01:00
Bart Schuurmans
75bc4f8cb0
Make nginx config safer
...
Instead of allowing all image files anywhere, and disallowing non-image file under /images/, only
allow image files under /images/ and don't match non-image files elsewhere. They get proxied to web
instead and result in a 404 there.
For example, the old config allowed /exports/foo.jpg to be served, while the new config does not.
2024-03-29 15:04:38 +01:00
Bart Schuurmans
e7ae0fdf93
Merge pull request #3337 from prolibre/apport-perso
...
flower 2.0.1 fixes a few link bugs (particularly for favicon)
2024-03-29 14:45:59 +01:00
Bart Schuurmans
5d597f1ca9
Use new "with ()" style
2024-03-29 14:25:08 +01:00
Bart Schuurmans
0ac9d12d1c
Merge branch 'main' into user-export
2024-03-29 14:23:10 +01:00
Bart Schuurmans
e74de94640
Merge pull request #3334 from ccamara/patch-1
...
Remove twitter from README.md
2024-03-29 14:21:49 +01:00
Bart Schuurmans
1464d09a43
Merge pull request #3320 from dato/better-fmt-patch-calls
...
bulk-fmt: bracket-wrap calls to patch() for better readability
2024-03-29 14:19:16 +01:00
Anthony
2272e7a326
flower 2.0.1 fixes a few link bugs (particularly for favicon)
2024-03-29 12:07:52 +01:00
Bart Schuurmans
2bbe3d4c32
Test user export archive contents
2024-03-28 13:50:55 +01:00
Bart Schuurmans
bb5d8152f1
Fix mypy error
2024-03-28 13:21:30 +01:00
Bart Schuurmans
dabf7c6e10
User export testing fixes
2024-03-28 13:09:21 +01:00
Bart Schuurmans
cdbc1d172c
Fix double exports subdir in S3 user export
2024-03-27 23:28:24 +01:00
Adeodato Simó
3133a47b7c
Merge from main into 'better-fmt-patch-calls'
...
Conflicts:
bookwyrm/tests/test_book_search.py
2024-03-27 17:13:08 -03:00
Bart Schuurmans
c6ca547d58
Fix migration formatting
2024-03-27 20:41:59 +01:00
Bart Schuurmans
797d5cb508
Update BookwyrmExportJob tests
2024-03-27 20:39:57 +01:00
Adeodato Simó
699d637bae
Fix detection of unlisted
posts ( #3258 )
...
Merged from dato/fix_unlisted_set_from_activity.
2024-03-27 16:29:09 -03:00
Bart Schuurmans
9afd0ebb54
Update migrations
2024-03-27 20:15:06 +01:00
Bart Schuurmans
9685ae5a0a
Consolidate BookwyrmExportJob into two tasks
...
Creating the export JSON and export TAR are now the only two tasks.
2024-03-27 20:13:49 +01:00
Carlos Cámara
98600440d8
Remove twitter from README.md
...
The Twitter/X account doesn't seem to exist, so removing the badge
2024-03-26 17:14:09 +00:00
Bart Schuurmans
ed2e9e5ea8
Merge migration
2024-03-26 13:41:39 +01:00
Bart Schuurmans
ef57c0bc8b
Check last user export too in post handler
2024-03-26 13:41:39 +01:00
Bart Schuurmans
145c67dd21
Merge BookwyrmExportJob export_data field back into one with dynamic storage backend
2024-03-26 13:41:39 +01:00
Bart Schuurmans
6a67943408
Merge branch 'main' into user-export
2024-03-26 13:15:40 +01:00
Mouse Reeve
9dfa218ba5
Merge pull request #3333 from bookwyrm-social/locales
...
Updates locales and version number
2024-03-25 16:36:51 -07:00
Mouse Reeve
bf52eeaa9e
Bump version to 0.7.3.
2024-03-25 16:15:02 -07:00
Mouse Reeve
011e4a27a6
Updates locales and adds missing trimmed on blocktrans
2024-03-25 16:13:00 -07:00
Mouse Reeve
7192449b21
Merge pull request #3325 from Minnozz/author-search-vector
...
Rework author search
2024-03-25 14:41:25 -07:00
Bart Schuurmans
d9bf848cfa
Fix pylint warnings
2024-03-25 18:25:43 +01:00
Bart Schuurmans
bd95bcd50b
Add test for special character in cover filename
2024-03-25 18:14:45 +01:00
Bart Schuurmans
f721289b1d
Simplify logic for rendering user exports
2024-03-25 18:14:45 +01:00
Bart Schuurmans
a51402241b
Refactor creation of user export archive
2024-03-25 18:14:45 +01:00
Bart Schuurmans
e0decbfd1d
Fix urlescaped relative path to cover image in export
...
Fixes #3292
2024-03-25 17:59:39 +01:00
Bart Schuurmans
aee8dc16af
Fix pylint warning
2024-03-24 13:27:01 +01:00
Bart Schuurmans
5bd66cb3f7
Only generate signed S3 link to user export when user clicks download
2024-03-24 13:08:33 +01:00
Bart Schuurmans
ab7b0893e0
User exports: handle files that no longer exist on file storage
2024-03-24 12:47:26 +01:00
Bart Schuurmans
471233c1dc
Use different export job fields for the different storage backends
...
This way, the database definition is not depdendent on the runtime configuration.
2024-03-24 12:46:42 +01:00
Bart Schuurmans
073f62d5bb
Add exports_volume to docker-compose.yml
...
Exports should be written to a Docker volume instead of to the bind mount (= source directory). This
way they are shared between different containers even when they run on different machines.
2024-03-24 12:08:29 +01:00
Bart Schuurmans
a770689245
Merge branch 'main' into user-export
2024-03-24 12:07:14 +01:00
Bart Schuurmans
69f464418d
Remove problematic migration
...
This migration is dependent on the runtime configuration (.env); a structural fix will follow.
2024-03-24 12:06:44 +01:00
Bart Schuurmans
f11c80162a
Merge pull request #3331 from Minnozz/revert-docker-mount-ro
...
Revert "docker-compose.yml: make all bind mounts read only"
2024-03-24 11:30:56 +01:00
Bart Schuurmans
7c2fa746ae
Revert "docker-compose.yml: make all bind mounts read only"
...
This reverts commit 864304f128
.
2024-03-24 11:23:23 +01:00
Hugh Rundle
03587dfdc7
migrations
2024-03-24 20:56:20 +11:00
Hugh Rundle
dd27684d4b
set signed s3 url expiry with env value
...
Adds S3_SIGNED_URL_EXPIRY val to .env and settings (defaults to 15 mins)
Note that this is reset every time the user loads the exports page
and is independent of the _creation_ of export files.
2024-03-24 20:53:49 +11:00
Bart Schuurmans
caebebeb37
Merge pull request #3261 from bSolt/book-series-3256
...
Add book series by title in feed posts
2024-03-23 20:01:03 +01:00
Bart Schuurmans
592914dc91
Render series number with comma and outside of link on book page
2024-03-23 19:51:20 +01:00
Bart Schuurmans
2915133223
Merge branch 'main' into book-series-3256
2024-03-23 19:37:07 +01:00
Bart Schuurmans
2d2ccd51df
Factor out book series info into separate template
2024-03-23 19:35:24 +01:00
Bart Schuurmans
4a690e675a
BookDataModel: add dry_run argument to merge_into
2024-03-23 19:28:57 +01:00
Bart Schuurmans
fb82c7a579
Add test for merging authors
2024-03-23 19:28:57 +01:00
Bart Schuurmans
6f191acb27
BookDataModel: fix absorbing data from array and partial date fields
2024-03-23 19:28:57 +01:00
Bart Schuurmans
7fb079cb43
PartialDate: fix __eq__ method
2024-03-23 19:28:57 +01:00
Bart Schuurmans
7066e2815b
BookDataModel.merge_into: return and log absorbed fields
2024-03-23 19:28:57 +01:00
Bart Schuurmans
e04cd79ff8
Redirect to new URL when a merged object is requested
2024-03-23 19:28:57 +01:00
Bart Schuurmans
5e123972e8
BookDataModel: implement merge_into method
2024-03-23 19:28:57 +01:00
Bart Schuurmans
b3753ab6da
Add MergedBookDataModel
2024-03-23 19:28:57 +01:00
Bart Schuurmans
b8995bd4b1
Add tests for author search
2024-03-23 19:26:51 +01:00
Bart Schuurmans
769d9726e5
Add book search test cases for author aliases
2024-03-23 19:26:51 +01:00
Bart Schuurmans
36222afa79
Switch author search from TrigramSimilarity to SearchQuery
2024-03-23 19:26:51 +01:00
Bart Schuurmans
0795b4d171
Include Author aliases in Book search vector
2024-03-23 19:26:51 +01:00
Bart Schuurmans
2de35f3fc7
Calculate Author search vector with name and aliases
2024-03-23 19:26:51 +01:00
Mouse Reeve
bac52eef3e
Merge pull request #3275 from ccamara/wikidata
...
Add wikidata field for authors
2024-03-23 08:12:09 -07:00
Mouse Reeve
8bbac458a6
Merge pull request #3217 from dato/switch_edition_invalidate_active_shelves
...
Invalidate `active_shelf` when switching editions
2024-03-23 07:59:40 -07:00
Mouse Reeve
5b71e94888
Merge branch 'main' into user-export
2024-03-23 07:55:46 -07:00
Mouse Reeve
a914a44fba
Removes unnecessary redeclaration of wikidata model field in Author
2024-03-23 07:54:54 -07:00
Mouse Reeve
8e088a6d53
Merge branch 'main' into switch_edition_invalidate_active_shelves
2024-03-23 07:53:24 -07:00
Mouse Reeve
b508b4cd33
Merge pull request #3323 from Minnozz/docker-bind-ro
...
Docker: make bind mounts of source code read only
2024-03-23 07:51:00 -07:00
Mouse Reeve
886d6ec9f7
Merge branch 'main' into docker-bind-ro
2024-03-23 07:48:27 -07:00
Mouse Reeve
21f75da75e
Merge pull request #3328 from Minnozz/escape-query-in-link
...
Escape search query in generated URLs
2024-03-23 07:46:04 -07:00
Mouse Reeve
20db968315
Merge pull request #3322 from Minnozz/fix-font-download
...
Fix font download
2024-03-23 07:36:43 -07:00
Bart Schuurmans
c3d25c59c5
Escape search query in generated URLs
...
Otherwise, a query containing '&' or other special characters results in a broken URL.
2024-03-21 16:48:34 +01:00
Bart Schuurmans
3cde6dbe5a
Merge pull request #3326 from Minnozz/black-required-version
...
black: specify major version 22 only
2024-03-21 16:30:56 +01:00
Bart Schuurmans
682bb3b62f
dev-tools: relax black version constraint
2024-03-21 16:25:29 +01:00
Bart Schuurmans
b5b9eddaf0
CI: relax black version constraints
2024-03-20 12:46:37 +01:00
Bart Schuurmans
ab430e0208
requirements.txt: add black
...
This way, IDEs can be set up to use the black version from the environment instead of a globally
available/bundled black version.
2024-03-20 12:43:17 +01:00
Bart Schuurmans
e13e4237f4
black: specify required-version
...
This ensures consistent formatting among different contributors / development setups.
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#required-version
2024-03-20 12:26:21 +01:00
Bart Schuurmans
762786839c
Merge pull request #3134 from dato/trigger_migrations
...
Support trigger migrations
2024-03-20 12:11:34 +01:00
Bart Schuurmans
4ca52c0b38
Merge branch 'main' into trigger_migrations
2024-03-20 11:47:54 +01:00
Bart Schuurmans
6a87713f9f
Recalculate all book search vectors after fixing the author trigger
2024-03-20 11:45:12 +01:00
Mouse Reeve
d08147c6d9
Merge pull request #3244 from bookwyrm-social/dependabot/pip/pillow-10.2.0
...
Bump pillow from 10.0.1 to 10.2.0
2024-03-19 15:10:30 -07:00
Bart Schuurmans
f423834bd0
Catch the correct exception type from Pillow
2024-03-19 12:42:52 +01:00
Mouse Reeve
d304ceb437
Merge pull request #3324 from bookwyrm-social/dependabot/pip/django-3.2.25
...
Bump django from 3.2.24 to 3.2.25
2024-03-18 15:05:30 -07:00
dependabot[bot]
47afe34d97
Bump django from 3.2.24 to 3.2.25
...
Bumps [django](https://github.com/django/django ) from 3.2.24 to 3.2.25.
- [Commits](https://github.com/django/django/compare/3.2.24...3.2.25 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 21:48:21 +00:00
Bart Schuurmans
4d23edddca
Make sure /images/ and /static/ exist now that the bind mount is read only
...
Otherwise the static_volume and media_volume can't be mounted there.
2024-03-18 21:35:12 +01:00
Bart Schuurmans
68cb94daf2
docker-compose.yml: don't automatically start dev-tools by assigning profile
2024-03-18 21:34:51 +01:00
Bart Schuurmans
864304f128
docker-compose.yml: make all bind mounts read only
...
Except dev-tools, since it needs to be able to change the source.
2024-03-18 21:34:09 +01:00
Bart Schuurmans
7690247ab4
Font download: log the exact error
2024-03-18 20:34:47 +01:00
Bart Schuurmans
3367b20965
Font download: destination dir is allowed to exist
...
Without this argument, an existing directory (but not the file) causes an error.
2024-03-18 20:23:31 +01:00
Bart Schuurmans
748418590f
docker-compose.yml: mount static_volume for flower
...
Because flower also uses BookwyrmConfig, it wants to download fonts, and will download them to an
incorrect location if the static_volume is not mounted.
2024-03-18 20:22:19 +01:00
Bart Schuurmans
ccf2b16d73
requirements.txt: make typing-Pillow match Pillow
2024-03-18 19:52:40 +01:00
dependabot[bot]
3be227fc86
Bump pillow from 10.0.1 to 10.2.0
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 10.0.1 to 10.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/10.0.1...10.2.0 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 19:51:24 +01:00
Adeodato Simó
a6dc5bd13f
Make get_file_size
robust against typing errors
2024-03-18 15:03:07 -03:00
Adeodato Simó
518da3b9cf
Merge from main into 'user-export'
...
Conflicts:
bookwyrm/models/bookwyrm_export_job.py
requirements.txt
2024-03-18 14:47:34 -03:00
Adeodato Simó
2cf7ed477d
Consolidate test_posgres.py into test_book_search.py
...
These are tests I missed when first writing trigger tests in
test_book_search.py.
2024-03-17 22:38:44 -03:00
Adeodato Simó
cceccd1ecf
Merge from main into 'trigger_migrations'
...
Conflicts:
requirements.txt
2024-03-17 21:54:15 -03:00
Adeodato Simó
beb49af514
Upgade django-pgtrigger to 4.11
2024-03-17 21:46:34 -03:00
Adeodato Simó
90bd893568
Fix remaining instances of bad-classmethod-argument
2024-03-17 21:28:55 -03:00
Adeodato Simó
e2c9ea3cd2
Fix instances of bad-classmethod-argument
in recently edited files
2024-03-17 21:28:55 -03:00
Adeodato Simó
4b9fe0af0c
Remove nesting in several with..patch calls
2024-03-17 20:57:39 -03:00
Adeodato Simó
1b9e0546e6
Bracket-wrap calls to patch()
for better readability
2024-03-17 20:34:12 -03:00
Bart Schuurmans
8cf52e0a77
Merge pull request #3318 from Minnozz/ci-annotations
...
CI: update pytest setup and show annotations on PRs
2024-03-17 11:24:01 +01:00
Bart Schuurmans
0282e20b89
Merge branch 'main' into book-series-3256
2024-03-16 11:23:40 +01:00
Bart Schuurmans
4e20e43037
CI: merge all Python actions into one file
2024-03-13 23:36:26 +01:00
Bart Schuurmans
383e6533e1
CI: use pytest-github-actions-annotate-failures
2024-03-13 23:35:05 +01:00
Bart Schuurmans
74fdd9a85a
CI: simplify pytest setup
2024-03-13 23:35:05 +01:00
Bart Schuurmans
6af0a08838
CI: use actions/setup-python@v5 and cache pip
2024-03-13 23:35:03 +01:00
Bart Schuurmans
12b469a0d6
CI: use actions/checkout@v4
2024-03-13 23:33:40 +01:00
Mouse Reeve
288743b686
Merge pull request #3315 from Minnozz/fix-pytest-env
...
pytest.ini: define ALLOWED_HOSTS
2024-03-13 15:29:15 -07:00
Mouse Reeve
a3465e6154
Merge pull request #3303 from MaggieFero/main
...
Upgrade Python Version and Several Other Packages for Security
2024-03-13 15:28:54 -07:00
Bart Schuurmans
3ba528ecdd
pytest.ini: define ALLOWED_HOSTS
...
This fixes running `./bw-dev pytest` locally when having a different value defined for
`ALLOWED_HOSTS` in `.env`.
2024-03-11 20:12:46 +01:00
Adeodato Simó
304c47863b
FileLinkForm: fix duplicate check ( #3311 )
...
Merged from: Minnozz/filelink-duplicate-check.
2024-03-11 15:10:28 -03:00
Mouse Reeve
b68a4cc392
Merge branch 'main' into filelink-duplicate-check
2024-03-09 07:37:26 -08:00
Mouse Reeve
6dfb5000cc
Merge pull request #3305 from dato/export_catch_missing_key_icon
...
json_export: also detect absent "icon" key
2024-03-09 07:37:14 -08:00
Bart Schuurmans
8d018b872f
FileLinkForm: fix duplicate check
2024-03-09 15:49:42 +01:00
Adeodato Simó
9e7b040b73
Fix shelving date changing when changing editions ( #3193 )
...
Merged from from jakejack13/switch-edition
Fixes : #3139 .
2024-03-03 18:48:04 -03:00
Adeodato Simó
09c3d9c0dc
json_export: also detect absent "icon" key
2024-03-03 18:42:27 -03:00
Mouse Reeve
dd9d68c97d
Merge pull request #3096 from bookwyrm-social/image-ap-serialization
...
Changes to how images are serialized
2024-03-02 18:58:08 -08:00
Margaret Fero
d138395c75
Add linter exclusion for TBookWyrmModel
2024-03-02 17:43:49 -08:00
Margaret Fero
91fe4ad535
Fix spacing for linter
2024-03-02 17:31:16 -08:00
Margaret Fero
9fa09d5ebe
Add extra space required by linter
2024-03-02 17:30:37 -08:00
Margaret Fero
eadb0e640f
Fix typo in operator
2024-03-02 17:29:42 -08:00
Margaret Fero
be140d5e5a
Pin setuptools at 65.5.1
2024-03-02 17:20:48 -08:00
Margaret Fero
22c4155c7c
Upgrade pytest to 6.2.5
2024-03-02 16:09:34 -08:00
Margaret Fero
498dc35d99
Upgrade Pylint to 2.15.0
2024-03-02 16:09:06 -08:00
Margaret Fero
0f5a3e9163
Pin Tornado at 6.3.3
2024-03-02 16:08:41 -08:00
Margaret Fero
da2636fa29
Add grpcio pin @ 1.57.0
2024-03-02 16:07:50 -08:00
Margaret Fero
c1520da56d
Upgrade flower to 2.0.0
2024-03-02 16:05:11 -08:00
Margaret Fero
fee3fdd5a8
Upgrade django-compressor to 4.4
2024-03-02 16:04:37 -08:00
Margaret Fero
c944824ac7
Upgrade django-celery-beat to 2.5.0
2024-03-02 16:04:06 -08:00
Margaret Fero
4312e9bba0
Upgrade Celery to 5.3.1
2024-03-02 16:03:19 -08:00
Margaret Fero
39da471f79
Disable Pylint Failure for imghdr deprecation for now
2024-03-02 15:59:17 -08:00
Margaret Fero
570017d3b0
Upgrade Python Version from 3.9 to 3.11
2024-03-02 15:57:06 -08:00
Margaret Fero
3652ac8100
Alphabetize requirements.txt
...
Alphabetize requirements.txt for developer convenience; this helps to find duplicates and unnecessarily-pinned subdependencies, as well as making the file easier to read and use.
2024-03-02 15:41:06 -08:00
Margaret Fero
f8fd76cff0
Remove duplicate types-requests==2.31.0.2
...
The types-requests==2.31.0.2 dependency was double-listed right next to each other; this commit removes one.
2024-03-02 13:57:09 -08:00
Margaret Fero
206ed9f7fb
Merge pull request #2 from bookwyrm-social/main
...
No Actual Changes
2024-03-02 13:55:24 -08:00
Mouse Reeve
218171e9bc
Merge pull request #3300 from MaggieFero/MaggieFero-add-timeouts-to-requests.get
...
Add timeouts to requests.get
2024-03-01 22:49:44 -08:00
Margaret Fero
50b811d9aa
Typo fix
...
Add a comma
2024-03-01 20:11:14 -08:00
Margaret Fero
1ae9870862
Add timeout to base_activity.py
...
An instance of requests.get was missing a timeout; this commit adds a timeout of 15 as used in other places in this codebase which already have timeouts.
2024-03-01 20:02:40 -08:00
Margaret Fero
db97d76a24
Add timeout to isbn.py
...
An instance of requests.get in isbn.py lacks a timeout, and this commit adds one with a default of 15 as used other places in the code, where requests.get does already have a timeout.
2024-03-01 19:58:11 -08:00
Mouse Reeve
354388cc8f
Merge pull request #3238 from hughrun/export-fixes
...
fix multiple issues from user exports config changes
2024-02-29 16:16:25 -08:00
Mouse Reeve
2c59908ddd
Merge branch 'main' into export-fixes
2024-02-29 16:10:20 -08:00
Mouse Reeve
6a70eadba8
Merge pull request #3284 from NetspherePub/072NginxSecurityFixed
...
Adds production.conf security configuration missing in version 0.7.2
2024-02-29 15:55:56 -08:00
Mouse Reeve
ec52460f02
Merge pull request #3274 from Minnozz/author-search
...
Add search for author
2024-02-29 15:55:12 -08:00
Adeodato Simó
1fabe51261
Move ratings and reviews when switching editions ( #3117 )
...
Merged from mattlehrer/move-ratings-and-reviews-when-switching-editions.
Fixes : #2926 .
2024-02-21 18:48:32 -03:00
Adeodato Simó
e6b6bd648d
Merge branch 'main' into move-ratings-and-reviews-when-switching-editions
2024-02-21 18:42:18 -03:00
Mouse Reeve
9d7965780d
Merge pull request #3285 from polarbirke/fix-label-input-association-for-shelves-filter
...
Fix label and input association for shelves filter
2024-02-20 16:56:57 -08:00
Mouse Reeve
333fb03c2c
Merge pull request #3290 from bookwyrm-social/korean-locale
...
Korean locale
2024-02-20 16:56:26 -08:00
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
1c587c5e53
Adds production.conf security configuration missing in version 0.7.2
2024-02-10 17:54:25 +09:00
FoW
ddd13a3e2e
Add Korean (ko-kr) to LANGUAGES and locale
2024-02-10 16:17:25 +09:00
Mouse Reeve
7469f1f4ca
Merge pull request #3281 from bookwyrm-social/dependabot/pip/django-3.2.24
...
Bump django from 3.2.23 to 3.2.24
2024-02-07 14:54:50 -08:00
dependabot[bot]
363cb79951
Bump django from 3.2.23 to 3.2.24
...
Bumps [django](https://github.com/django/django ) from 3.2.23 to 3.2.24.
- [Commits](https://github.com/django/django/compare/3.2.23...3.2.24 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-07 22:50:00 +00:00
Hugh Rundle
46a158d701
Merge branch 'main' into export-fixes
2024-02-06 18:31:19 +11:00
Hugh Rundle
8773caa26b
Merge pull request #4 from dato/data_upload_max_size_mb
...
Support DATA_UPLOAD_MAX_MEMORY_MiB, only, in .env
2024-02-06 18:25:44 +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
Mouse Reeve
d97747078e
Merge pull request #3276 from bookwyrm-social/fixes-version-number
...
Fixes version number mistakenly reverted
2024-02-03 19:49:48 -08:00
Mouse Reeve
db629255db
Fixes version number mistakenly reverted
2024-02-03 18:27:59 -08: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
6b1ffbc634
Merge pull request #3185 from bookwyrm-social/check-version-number
...
Check version number asynchronously
2024-02-03 08:25:52 -08: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
Mouse Reeve
efa29b269c
Merge pull request #3269 from bookwyrm-social/dependabot/pip/aiohttp-3.9.2
...
Bump aiohttp from 3.9.0 to 3.9.2
2024-01-30 18:03:00 -08:00
Jacob Kerr
2ba7dff845
Fixed shelving date changing when changing editions
2024-01-30 16:53:59 -05:00
Hugh Rundle
21a8570035
Merge pull request #3207 from rsk2/issue-3187
...
Hide "year in the books" for newly registered users
2024-01-31 07:03:43 +11:00
Hugh Rundle
ef6fd608fa
Merge branch 'main' into issue-3187
2024-01-30 18:47:07 +11:00
dependabot[bot]
b05621005e
Bump aiohttp from 3.9.0 to 3.9.2
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.9.0 to 3.9.2.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.0...v3.9.2 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 00:10:13 +00:00
Hugh Rundle
3675a4cf3f
disable user exports if using azure
2024-01-29 14:28:30 +11:00
Hugh Rundle
5f7be848fc
subclass boto3 session instead of adding new env value
...
Thanks Dato!
2024-01-29 14:10:36 +11:00
Hugh Rundle
f96ddaa3e1
Merge pull request #3 from dato/export_job_inject_aws_endpoint_setting
...
Subclass boto3.Session to use AWS_S3_ENDPOINT_URL
2024-01-29 13:49:45 +11:00
Hugh Rundle
adff3c4251
allow user exports with s3
...
also undoes a line space change in settings.py to make the PR cleaner
2024-01-29 13:45:35 +11:00
Hugh Rundle
765fc1e43d
fix tests
2024-01-29 12:28:37 +11:00
Adeodato Simó
c106b2a988
Subclass boto3.Session to use AWS_S3_ENDPOINT_URL
...
As of 0.1.13, the s3-tar library uses an environment variable
(`S3_ENDPOINT_URL`) to determine the AWS endpoint. See:
https://github.com/xtream1101/s3-tar/blob/0.1.13/s3_tar/utils.py#L25-L29 .
To save BookWyrm admins from having to set it (e.g., through `.env`)
when they are already setting `AWS_S3_ENDPOINT_URL`, we create a Session
class that unconditionally uses that URL, and feed it to S3Tar.
2024-01-28 22:21:44 -03:00
Hugh Rundle
2c231acebe
linting and tests
2024-01-28 20:35:47 +11:00
Hugh Rundle
a3e05254b5
fix avatar import path
2024-01-28 15:56:44 +11:00
Hugh Rundle
582e97e4a5
Merge branch 'image-serialize' into user-export
...
pulls Mouse's fix for imagefile serialization
2024-01-28 15:12:15 +11:00
Hugh Rundle
0d619f7eb4
Merge branch 'main' into user-export
2024-01-28 15:11:02 +11:00
Hugh Rundle
2bb9a85591
various fixes
...
- use signed url for s3 downloads
- re-arrange tar.gz file to match original
- delete all working files after tarring
- import from s3 export
TODO
- check local export and import
- fix error when avatar missing
- deal with multiple s3 storage options (e.g. Azure)
2024-01-28 15:07:55 +11: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ó
80ad36e75b
Include SESSION_COOKIE_AGE in .env.example
...
Suggested-by: Alexey Skobkin <skobkin-ru@ya.ru>
2024-01-25 20:28:15 +01: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
Mouse Reeve
193aeff4d2
Merge pull request #3245 from WesleyAC/redis-aof-auto-compact
...
Add redis automatic rewrite configuration.
2024-01-24 08:26:45 -08:00
Rohan Sureshkumar
c4596544a3
Issue-3187: fix failing tests
2024-01-24 19:18:46 +05:30
Wesley Aptekar-Cassels
30ba8d37dc
Add redis automatic rewrite configuration.
...
This should hopefully prevent the AOF file from growing too large.
2024-01-23 18:19:31 -05:00
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
a563275308
fix comment in env example
2024-01-20 13:27:30 +11: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
Hugh Rundle
26c37de2d4
linting
2024-01-20 07:16:42 +11:00
Mouse Reeve
fd0b1d90b0
Merge pull request #3229 from verymilan/nginx-ttf
...
nginx: fix missing ttf static files
2024-01-18 14:43:05 -08:00
Milan
dd5c314bd5
nginx: also serve svg static files
2024-01-18 22:29:43 +01:00
Milan
a59dcfc890
nginx: fix missing ttf static files
2024-01-18 17:03:02 +01: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
Hugh Rundle
469172947b
cleanup and linting
2024-01-18 18:43:45 +11:00
Hugh Rundle
833f26fd0e
Merge branch 'main' into user-export
2024-01-18 18:24:56 +11:00
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
c22f189c86
Merge pull request #3216 from dato/dev-tools_require_bookworm
...
Ensure dev-tools uses bookworm
2024-01-17 15:31:43 -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
45d6f1f890
Merge pull request #3215 from ccamara/export_bookshelf
...
Export bookshelves and review date
2024-01-17 21:20:32 +11: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
ea7f3c297e
allow js and css
2024-01-17 20:12:06 +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
Hugh Rundle
d4d2734dab
ignore exports dir
2024-01-14 14:14:20 +11:00
Hugh Rundle
62cc6c298f
oops
...
- remove test export files
- check in emblackened files
2024-01-14 12:19:59 +11:00
Hugh Rundle
cbd08127ef
initial work on fixing user exports with s3
...
- custom storages
- tar.gz within bucket using s3_tar
- slightly changes export directory structure
- major problems still outstanding re delivering s3 files to end users
2024-01-14 12:14:44 +11:00
Adeodato Simó
eb13eb9882
Invalidate active_shelf
when switching editions
2024-01-13 19:00:57 +01:00
Adeodato Simó
9a487b0442
Ensure dev-tools uses bookworm
...
In 1937177e1
("dev-tools: use apt source for Node instead of setup script"),
I introduced the use of `Signed-By` with a public key block, which is only
supported in bookworm (bullseye only supports fingerprints, TTBOMK).
Python's Docker images already use bookworm by default, but we explicitly
require it now to avoid build errors if someone has a very old image laying
around (see, e.g., #3190 ).
(This can be dropped after Debian 13 ‘trixie’ is released.)
2024-01-13 17:55:21 +01:00
Carlos Camara
854eb36618
Export bookshelves and review date
2024-01-13 16:47:51 +00:00
Hugh Rundle
b04ebe397b
Merge pull request #3189 from ccamara/2965_export_readthrough
...
Export ReadThrough in the csv export
2024-01-12 16:35:41 +11: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
a4599d0374
Merge pull request #3205 from bookwyrm-social/revert-3079-deleted_user_follow_request
...
Revert "Don't show notification for user follow request if the user is inactive"
2024-01-08 10:28:27 -08:00
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
Mouse Reeve
1966f1d9a3
Merge pull request #3199 from bookwyrm-social/dependabot/pip/pycryptodome-3.19.1
...
Bump pycryptodome from 3.16.0 to 3.19.1
2024-01-05 16:54:55 -08:00
dependabot[bot]
f267fc3235
Bump pycryptodome from 3.16.0 to 3.19.1
...
Bumps [pycryptodome](https://github.com/Legrandin/pycryptodome ) from 3.16.0 to 3.19.1.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases )
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst )
- [Commits](https://github.com/Legrandin/pycryptodome/compare/v3.16.0...v3.19.1 )
---
updated-dependencies:
- dependency-name: pycryptodome
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-05 17:42:04 +00: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
addfee0607
Merge pull request #3182 from bookwyrm-social/broken-migration
...
Removes part of migration causing upgrade issues
2024-01-02 10:50:35 -08:00
Mouse Reeve
2a85378456
Removes part of migration causing upgrade issues
2024-01-02 09:57:41 -08:00
Mouse Reeve
d9a640c809
Fixes version number
2024-01-02 08:36:42 -08:00
Mouse Reeve
0756c5ac5c
Merge pull request #3180 from bookwyrm-social/version-0-7-0
...
Version 0.7.0 miscellenea
2024-01-01 19:58:15 -08:00
Mouse Reeve
913a19c8f0
Formats migration file
2024-01-01 19:33:49 -08:00
Mouse Reeve
e2249f2515
Updates locales
2024-01-01 19:30:03 -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
45d33c37ea
Merge pull request #3175 from dato/prefer_nodesource
...
dev-tools: ensure we install Node from upstream
2024-01-01 19:12:02 -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
Mouse Reeve
5647477ba7
Merge pull request #3154 from bookwyrm-social/ukrainian
...
Adds Ukranian locale and updates locales
2024-01-01 18:54: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
Dato Simó
09b2dea995
dev-tools: ensure we install Node from upstream
...
Fixes : #3173 ("`bw-dev build` fails")
2024-01-01 09:01:21 -03:00
Mouse Reeve
3754718916
Updates locales again
2023-12-30 15:54:06 -08:00
Mouse Reeve
9b3f4933ac
Fixes language code for Ukrainian
2023-12-17 06:57:05 -08: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
Ross Chapman
44d21d1ba4
Updates view logic
2023-12-14 13:04:45 -08:00
Ross Chapman
bd3acdbf31
Puts string in template
2023-12-14 12:33:27 -08:00
Ross Chapman
4a4046a704
Shows message if empty and renames "search" to "filter"
2023-12-14 11:30:01 -08:00
Ross Chapman
7cca199a11
Merge branch 'main' into let-a-user-search-within-their-books
2023-12-14 10:25:05 -08:00
Hugh Rundle
1649457372
Merge pull request #3156 from hughrun/user-migration
...
fix upsert_statuses
2023-12-13 20:59:47 +11:00
Hugh Rundle
7fcadb1d4d
fix upsert_statuses
...
- remote_id is now updated on import of statuses
- statuses cannot be imported unless source has target listed in alsoKnownAs or movedTo
- add alert boxes to import and export screens advising of the above
- update tests accordingly
2023-12-13 20:55:38 +11:00
Mouse Reeve
5c0e159d43
Adds Ukranian locale and updates locales
2023-12-12 15:42:40 -08:00
Mouse Reeve
000e5e6145
Merge pull request #3152 from bookwyrm-social/fixes-typo-in-move-notice
...
Fixes incorrect translation and display of moved user page
2023-12-12 14:59:00 -08:00
Mouse Reeve
8bb5a664c5
Fixes incorrect translation and display of moved user page
2023-12-11 20:12:14 -08:00
Mouse Reeve
e032e5491d
Merge pull request #3144 from villasv/patch-1
...
Update page formatter on ordered collection
2023-12-11 19:54:24 -08:00
Mouse Reeve
4bfa1ca5b8
Merge pull request #3124 from hughrun/softblock
...
Allow removing followers and fix follow rejections
2023-12-11 19:49:45 -08:00
Adeodato Simó
13374917f3
Make get_representative() atomic
2023-12-11 20:48:32 -03:00
Mouse Reeve
799f842115
Merge pull request #3146 from dato/setup_test_data
...
Faster tests with setUpTestData
2023-12-11 15:45:40 -08:00
Adeodato Simó
aa67f598dd
Explicitly set doctype to html5 when invoking tidy_document()
...
Many tests break without this on newer versions of html-tidy.
2023-12-11 19:40:48 -03:00
Adeodato Simó
9d502f5ee2
Use setUpTestData() to speed up tests
...
Pylint's `bad-classmethod-argument` is disabled for each definition
to avoid rewriting the method bodies just to rename `self` → `cls`.
This can be done gradually, as the setUpTestData methods are modified
along the way.
2023-12-11 19:40:30 -03:00
Mouse Reeve
198c0037c6
Merge pull request #3121 from hughrun/413
...
Display custom page on 413 errors
2023-12-09 08:31:25 -08:00
Mouse Reeve
e5d292919c
Merge pull request #3143 from dato/test_ordered_collection_use_bulk_create
...
Use bulk_create to test ordered collections
2023-12-09 08:30:23 -08:00
Mouse Reeve
029b438355
Clarify import/export of book vs user
...
I think this wording is a little clearer
2023-12-09 08:18:31 -08:00
Mouse Reeve
dd72013225
Small fixes for notifications
...
Adds a link in the text of the notification, and fixes references to
notification type in the model
2023-12-09 08:09:22 -08:00
Sean Molenaar
5d09c54e57
Merge branch 'main' into feat/api/oauth
2023-12-07 15:38:19 +01:00
Ross Chapman
aac8aa1adf
Fixes formatting
2023-12-06 11:36:15 -08:00
Ross Chapman
0f6e567b21
Clean up
2023-12-05 19:49:38 -08:00
Ross Chapman
c65e165aeb
Hides filter if shelf empty
2023-12-05 19:37:29 -08:00
Ross Chapman
979162da10
Uses filters, fixes for any shelf
2023-12-05 19:33:59 -08:00
Ross Chapman
b27ed847d5
Fixes result set passed to template
2023-12-05 16:36:58 -08:00
Ross Chapman
d93da4e86d
Checkpoint
2023-12-05 15:46:08 -08:00
Victor Villas
8fd05004ea
Update page formatter on ordered collection
2023-12-03 20:03:33 -08:00
Adeodato Simó
5384e4c470
Use bulk_create to test ordered collections
2023-11-30 15:58:48 -03:00
Sean Molenaar
b7ba6f1a36
urls.py: fix style
2023-11-30 11:25:51 +01:00
Matt Lehrer
7f55495287
Merge branch 'move-ratings-and-reviews-when-switching-editions' of github.com:mattlehrer/bookwyrm into move-ratings-and-reviews-when-switching-editions
2023-11-30 11:15:33 +01:00
Matt Lehrer
31a78a5c9e
linted
2023-11-30 11:13:11 +01:00
Mouse Reeve
193a36390b
Merge pull request #3083 from hughrun/file-resubmit
...
use bw-file-resubmit to retain images during validation checks
2023-11-29 15:36:33 -08:00
Mouse Reeve
cf1afefc84
Merge pull request #3133 from dato/search_results_fix_work_order
...
Do not create a set for already-distinct query result
2023-11-29 15:27:57 -08:00
Mouse Reeve
b8bf3d5bd9
Merge pull request #3138 from bookwyrm-social/dependabot/pip/aiohttp-3.9.0
...
Bump aiohttp from 3.8.6 to 3.9.0
2023-11-27 17:33:18 -08:00
dependabot[bot]
58f149d889
Bump aiohttp from 3.8.6 to 3.9.0
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.8.6 to 3.9.0.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.6...v3.9.0 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-28 01:02:35 +00:00
Ross Chapman
90cc28986e
Merge branch 'main' into let-a-user-search-within-their-books
2023-11-27 11:40:57 -08:00
Adeodato Simó
d6eb390cee
Add test that forces book_authors_search_vector_trigger
to execute
2023-11-26 15:59:17 -03:00
Adeodato Simó
b5805accac
Minor improvements to bookwyrm_book trigger code
...
- do not COALESCE columns that cannot be NULL
- do not bring bookwyrm_book to author names JOIN
- add comments documenting the four steps
2023-11-25 21:49:15 -03:00
Adeodato Simó
bbfbd1e97a
Add tests for trigger code (i.e. how search_vector is computed)
2023-11-25 20:54:49 -03:00
Adeodato Simó
9bcb5b80ea
Further simplify bookwyrm_author trigger
2023-11-25 18:13:40 -03:00
Adeodato Simó
8df408e07e
Define search_vector_trigger
via Book.Meta.triggers
2023-11-25 17:02:54 -03:00
Adeodato Simó
bcb3a343d4
Fix JOIN in author_search_vector_trigger
, add missing WHERE clause
2023-11-25 16:23:21 -03:00
Adeodato Simó
416a6caf2d
Define author_search_vector_trigger
via Author.Meta.triggers
...
Previously, triggers lived only in a particular migration file. With
this change, code for the triggers resides in the model, and their
lifecycle is managed through normal Django migrations.
2023-11-25 16:17:51 -03:00
Adeodato Simó
44ef928c3c
Alter object row IDs to force test failure in original code
2023-11-25 16:11:01 -03:00
Adeodato Simó
e4d688665c
Remove index for author.search_vector
, which is never used
2023-11-24 22:43:12 -03:00
Adeodato Simó
0299f2e235
Add functional tests for search_vector triggers
...
As metadata changes, search continues to work.
2023-11-24 22:28:41 -03:00
Adeodato Simó
c997d2d44a
Add test to assert distinct() clause
...
Also, tweak other `search_title_author()` tests to verify ordering by
edition rank.
2023-11-24 02:28:27 -03:00
Adeodato Simó
e322d3cae1
Do not create a set for already-distinct query result
2023-11-23 23:01:56 -03:00
Hugh Rundle
48904fc60b
Merge pull request #3132 from hughrun/user-migration
...
notification type migration after merge
2023-11-24 06:51:51 +11:00
Hugh Rundle
99a9a64708
notification type migration after merge
2023-11-24 06:50:32 +11:00
Hugh Rundle
065e15e4db
Merge pull request #3131 from hughrun/user-migration
...
merge migrations and lint
2023-11-22 21:31:12 +11:00
Hugh Rundle
72c1c6ee3d
merge migrations and lint
2023-11-22 21:29:54 +11:00
Hugh Rundle
0276c15948
Merge branch 'main' into user-migration
2023-11-22 21:00:04 +11:00
Hugh Rundle
c6dea2523c
Merge branch 'main' into softblock
2023-11-22 20:06:02 +11:00
Hugh Rundle
6ba7418121
improve tests and minor cleanup
2023-11-22 20:04:17 +11:00
Hugh Rundle
8ed4a997f8
add comment back to bookwyrm.js
2023-11-21 20:20:11 +11:00
Hugh Rundle
2c9ebba5d7
fix reject PR
...
- rationalise activitypub.Reject and fix model being undefined
- fix not being able to follow users from followers page: 'delete' option now in user_options dropdown
- revert bookwyrm.js
- fix delete_follow_request deleting instead of rejecting
- add user id to 'remove-follow' path
2023-11-21 20:13:56 +11:00
Mouse Reeve
7c2de92df3
Merge pull request #3128 from bookwyrm-social/test-themes
...
Give admins option to test if a theme loads correctly
2023-11-20 12:26:09 -08:00
Mouse Reeve
b6325da9ab
Update bookwyrm/tests/views/admin/test_themes.py
...
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
2023-11-20 10:37:12 -08:00
Mouse Reeve
179dbd75aa
Adds tests
2023-11-20 10:23:59 -08:00
Mouse Reeve
b022b5a1b7
Merge pull request #3120 from hughrun/permission-required
...
403 handler
2023-11-20 10:06:24 -08:00
Mouse Reeve
c2742b4d80
Updates migrations
2023-11-20 10:02:49 -08:00
Mouse Reeve
cfe42305be
Merge branch 'main' into test-themes
2023-11-20 10:02:23 -08:00
Mouse Reeve
d828ba0bc6
Give admins option to test if a theme loads correctly
...
If a theme is uploaded incorrectly or has errors in it, users can still
select the theme but it will cause a 500 error on every page, making the
app unusable and also making it impossible for them to switch to a
functional theme.
A better fix would be to fail gracefully, but in lieu of that, this will
at least let admins confirm if a theme is broken safely.
2023-11-20 09:56:51 -08:00
Matt Lehrer
6933f70af3
Merge branch 'bookwyrm-social:main' into move-ratings-and-reviews-when-switching-editions
2023-11-20 09:31:45 +01:00
Mouse Reeve
d94b27b723
Merge branch 'main' into user-migration
2023-11-19 19:18:22 -08:00
Mouse Reeve
3d9f339bd5
Merge pull request #3059 from dato/stable_dates_v2
...
Partial, stable dates with automatic precision field
2023-11-19 19:17:49 -08:00
Mouse Reeve
1d5cc83347
Merge branch 'main' into permission-required
2023-11-19 19:12:32 -08:00
Mouse Reeve
d8018cb937
Merge pull request #3125 from hughrun/instance-actor
...
hide instance actor from users
2023-11-19 19:11:17 -08:00
Mouse Reeve
4da96d937e
Merge pull request #3126 from hughrun/savedlist-pagination
...
fix saved list pagination
2023-11-19 18:57:57 -08:00
Hugh Rundle
446854ccf0
fix saved list pagination
...
The SavedLists view was passing through an incorrect "path" value. Now it's not.
2023-11-20 12:45:39 +11:00
Hugh Rundle
f011f2bce9
hide instance actor from users
...
The Instance Actor is required for signing http GET requests but is not a "user" and should not be otherwise interacted with.
- hides instance actor profile page, returning a 404
- excludes instance actor from search results and suggestions including in Getting Started
- replaces link to user profile in user admin page with a brief message box
- replaces panel in user admin page that allows for user to be suspended or removed with a message explaining why that is a very bad idea
fixes #3119
2023-11-20 12:17:52 +11:00
Adeodato Simó
ff1f239a57
Use typing_extensions.Self instead of TypeVar
2023-11-19 15:10:14 -03:00
Adeodato Simó
6aaff28c13
Accept argument in naturalday_partial, downcast format if necessary
2023-11-19 15:10:14 -03:00
Adeodato Simó
aaea1b1b9e
Add tests for naturalday_partial tag
2023-11-19 15:10:13 -03:00
Adeodato Simó
8dbfba17d6
Merge from 'main' into stable_dates
2023-11-19 15:09:52 -03:00
Hugh Rundle
2ba0e3d7ff
Allow removing followers and fix follow rejections
...
* adds the ability to remove a user from your followers list
* fixes verbs.Reject to process reject activities for previously accepted follows in both directions
fixes #2635
2023-11-19 20:03:48 +11:00
Hugh Rundle
a7fcd898c2
middleware for displaying 413 page
...
When a RequestDataTooBig exception is thrown, users are largely in the dark about what happened and how it can be fixed.
This commit resolves this by inserting middleware to redirect the request to a custom 413 error page.
This exception is thrown when DATA_UPLOAD_MAX_MEMORY_SIZE is exceeded. The default value is 2.5MB.
Fixes #2340
Fixes #2633
2023-11-18 22:10:36 +11:00
Hugh Rundle
97757fa1ee
fix blocktrans
2023-11-18 15:58:01 +11:00
Hugh Rundle
a56ba0ce1c
always return 403 to POST requests
...
- POST requests need to receive a 403 error code
- minor wording updates
2023-11-18 13:41:52 +11:00
Hugh Rundle
8ddafafa84
make naming consistent
2023-11-18 12:40:36 +11:00
Hugh Rundle
d620bd7350
add handler for 403s
...
fixes #3104
2023-11-18 12:36:03 +11:00
Ross Chapman
68f54cf5a4
Initial commit to create PR
2023-11-16 17:20:23 -08:00
Matt Lehrer
f4da9fbf34
remove unnecessary loop.
...
ReviewRatings are a subclass and are included in the models.Review block
2023-11-16 20:37:46 +01:00
Matt Lehrer
bf81192d73
Merge branch 'main' into move-ratings-and-reviews-when-switching-editions
2023-11-16 10:49:05 +01:00
Sean Molenaar
e144ce19fa
fix: add include import from django.urls
2023-11-16 10:48:06 +01:00
Matt Lehrer
bd920a4630
move reviews to new edition
2023-11-16 10:38:45 +01:00
Matt Lehrer
7684101f15
move ratings to new edition
2023-11-16 10:38:41 +01:00
Mouse Reeve
06568aab88
Merge pull request #3105 from dato/notify_invitation_request
...
Create notifications for incoming invite requests
2023-11-15 17:27:34 -08:00
Mouse Reeve
5bf27d4fb2
Merge pull request #3115 from bookwyrm-social/dependabot/pip/aiohttp-3.8.6
...
Bump aiohttp from 3.8.5 to 3.8.6
2023-11-15 17:12:59 -08:00
Mouse Reeve
1a7a843dea
Re-creates migrations and removes failing test
...
I think the test was failing because it was extremely brittle, not
because of anything wrong with the code itself.
2023-11-15 17:08:15 -08:00
Mouse Reeve
62f985edb8
Merge branch 'main' into user-migration
2023-11-15 16:46:18 -08:00
Hugh Rundle
54ec5e2ae0
Fix migrations properly ( #3116 )
...
* Revert "fix migrations and linting"
This reverts commit 53e410627f
.
* really fix migrations
2023-11-15 19:54:16 +11:00
dependabot[bot]
63530294d4
Bump aiohttp from 3.8.5 to 3.8.6
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.8.5 to 3.8.6.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.5...v3.8.6 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 23:35:55 +00:00
Sean Molenaar
da4214ad61
feat: add OAuth authentication
...
Issue GH-2292
2023-11-14 14:18:35 +01:00
Adeodato Simó
01d4381898
Create notifications for incoming invite requests
...
Closes : #2066
2023-11-14 07:09:04 -03:00
Mouse Reeve
ab9cea1742
Merge pull request #3112 from dato/makemigrations_check
...
Check no missing migrations in django-tests workflow
2023-11-13 15:21:44 -08:00
Adeodato Simó
b81170c149
Add missing migration from #3099
2023-11-13 19:56:00 -03:00
Adeodato Simó
a884825b3c
Check no missing migrations in django-tests workflow
2023-11-13 19:56:00 -03:00
Hugh Rundle
bbc78f03ae
fix DB migrations ( #3111 )
...
fix migrations and linting
2023-11-14 07:21:27 +11:00
Hugh Rundle
d5762f1d52
Merge branch 'main' into user-migration
2023-11-13 21:17:07 +11:00
Hugh Rundle
891b72c79c
update user export file to use ActivityPub objects where possible. ( #3109 )
...
* add more context to user export page
* fix BookData fields wrong for files
* use to_activity and to_model where possible
* fixes for import and export
- use AP JSON where possible
- minor template wording updates
* import fixes and updates tests
* minor cleanup
* remove todo for mastodon
2023-11-13 21:14:03 +11:00
Mouse Reeve
ddf94f8714
Merge pull request #3097 from Tak/fix-initdb
...
Fix `bw-dev initdb`
2023-11-12 09:37:42 -08:00
Mouse Reeve
43324cf43a
Merge pull request #3099 from dato/notification_type_top_level
...
Create NotificationType as class, not through API
2023-11-12 09:34:28 -08:00
Hugh Rundle
1bedcdaebd
Merge branch 'main' into file-resubmit
2023-11-11 13:14:52 +11:00
Hugh Rundle
f3fc5f6179
add file_resubmit to DUMMY caches settings
2023-11-11 12:45:04 +11:00
Adeodato Simó
99a9dbe5f4
Create NotificationType as class, not through API
...
This way, we need not list every value again to create the enum.
N.B.: enum values are now accessed as `models.NotificationType.FOO`,
instead of `models.Notification.FOO`.
2023-11-09 22:43:36 -03:00
Adeodato Simó
be9d92b1c2
Remove last references to "seal" in partial_date.py and migration
2023-11-09 14:00:45 -03:00
Adeodato Simó
edfa6b18a1
Rename utils.sealed_date module (and tests) to utils.partial_date
2023-11-09 14:00:44 -03:00
Adeodato Simó
fa80aa54a9
SealedDate renames, pt. 2
...
• SealedDate -> PartialDate
• MonthSeal -> MonthParts
• YearSeal -> YearParts
2023-11-09 14:00:44 -03:00
Adeodato Simó
0e4c5ed439
SealedDate renames, pt. 1
...
• SealedDateField -> PartialDateModel
• SealedDateFormField -> PartialDateFormField
• SealedDateDescriptor -> PartialDateDescriptor
2023-11-09 14:00:44 -03:00
Adeodato Simó
c120fa8c87
Rename: templatetags/{sealed_dates => date_ext}.py
2023-11-09 14:00:44 -03:00
Adeodato Simó
2bb7652dfe
Update partial date migration to latest main
2023-11-09 14:00:22 -03:00
Adeodato Simó
e928027e16
Merge from main for up-to-date migrations
2023-11-09 14:00:14 -03:00
Adeodato Simó
dccac11527
PartialDateField: allow incoming dates without timezone
2023-11-09 13:04:09 -03:00
Levi Bard
ebcacfc6c5
Fix bw-dev initdb
2023-11-09 12:57:45 +01:00
Mouse Reeve
44b14f4933
Fixes workflow errors
2023-11-08 16:00:10 -08:00
Mouse Reeve
774b1095a3
Merge pull request #3094 from hughrun/activitypub-files
...
fix missing types in `BookData` file fields
2023-11-08 15:27:40 -08:00
Mouse Reeve
0bb4b0d71d
Changes to how images are serialized
...
I'm just going to see if any tests fail?
2023-11-08 15:24:47 -08:00
Hugh Rundle
2248206a66
fix missing types in BookData file fields
...
activitypub.BookData includes fields for 'files' and 'fileLinks'.
This is a problem because BookData is inherited by Book and Author, neither of which have 'files' as a field in the main model.
Additionally, Author doesn't have a value for 'file_links'.
When serializing to JSON, BookData therefore throws 'TypeError: Object of type _MISSING_TYPE is not JSON serializable'
This fixes the problem by removing links and moving fileLinks to activitypub.Book.
2023-11-08 18:30:49 +11:00
Hugh Rundle
0a5e1048ce
Add more info to user export page ( #3093 )
...
- match page title to menu
- change description on IMPORT page from 'readthroughs' to 'reading history'
- provide more information on export page about what is and is not included.
2023-11-07 12:09:06 +11:00
Mouse Reeve
9ddd631549
Merge pull request #3089 from bookwyrm-social/notification-and-download-links
...
UI changes for notification and download link in import/export flow
2023-11-06 16:31:09 -08:00
Mouse Reeve
1b958a9b31
Merge pull request #3091 from hughrun/notification-and-download-links
...
show filesize on user downloads page
2023-11-06 16:27:14 -08:00
Hugh Rundle
282f7dd8d6
show filesize on user downloads page
...
- add column to user download page to display filesize
- adds a filter to display file sizes
- don't download the user downloads page from notifications ;)
2023-11-07 11:04:11 +11:00
Mouse Reeve
e152b625fa
Merge pull request #3090 from bookwyrm-social/user-migration-instructions
...
User migration instructions
2023-11-06 14:34:52 -08:00
Mouse Reeve
ee88c3b914
Merge pull request #3081 from bookwyrm-social/handle-isbn-error
...
Fix error produced when an unexpected ISBN format is used
2023-11-06 11:06:46 -08:00
Mouse Reeve
8663e204c7
Merge pull request #3079 from bookwyrm-social/deleted_user_follow_request
...
Don't show notification for user follow request if the user is inactive
2023-11-06 11:05:50 -08:00
Mouse Reeve
e7a1572450
Merge pull request #3086 from bookwyrm-social/user-deletion
...
Erase user data and statuses on account deletion
2023-11-06 09:49:06 -08:00
Mouse Reeve
3f038b4d67
Moves if to the right place
2023-11-06 09:42:58 -08:00
Mouse Reeve
06d822d9e0
Alternative format for user import guide
2023-11-06 09:35:04 -08:00
Mouse Reeve
85d1760b97
Changes recent exports table
...
I thought both dates seemed less necessary (happy to be told otherwise)
and the download link should be more explicit
2023-11-06 08:41:36 -08:00
Mouse Reeve
716e64de68
Changes notification links for user import/export
...
I found it unexpected that the export notification linked me directly to
the file, and wanted the import link to lead me to the import page
2023-11-06 08:27:30 -08:00
Hugh Rundle
15b7b7eaa7
Merge pull request #3088 from hughrun/user-migration
...
User migration fixes
2023-11-06 16:06:39 +11:00
Hugh Rundle
d34b70cb7b
remove pointless viewer_aware
2023-11-06 16:01:34 +11:00
Mouse Reeve
ee6e3ed7eb
Adds a database field for is_deleted on user
2023-11-05 20:28:23 -08:00
Hugh Rundle
2d185dfb8a
remove unnecessary test data files
2023-11-06 14:51:52 +11:00
Mouse Reeve
27d99a0094
Removes failsafe that was overzealous
2023-11-05 19:47:32 -08:00
Hugh Rundle
93a32f4e15
update import/export user templates
...
- always explain what export file can be used for
- provide more information about overwrite vs upsert when importing
2023-11-06 14:40:19 +11:00
Hugh Rundle
8d3c2d9bd2
Merge pull request #3085 from bookwyrm-social/migration-explicit-imports
...
Uses explicit imports to avoid circular import in migrations code
2023-11-06 12:11:59 +11:00
Hugh Rundle
7a6b60772c
Merge pull request #3087 from hughrun/migration-explicit-imports
...
update references to bookwyrm models in export job
2023-11-06 12:10:47 +11:00
Hugh Rundle
d2f06e804f
update references to bookwyrm models in export job
2023-11-06 12:07:40 +11:00
Hugh Rundle
a93519ec3e
Merge pull request #3027 from dato/find_links_wrapped_punct
...
Fix parsing of punctuation in format_links()
fixes #2993
fixes #3049
2023-11-06 09:42:57 +11:00
Hugh Rundle
1190ea7e69
Merge pull request #3078 from bookwyrm-social/tour-fixes
...
Update tour to reflect changes in #2201
2023-11-06 09:20:44 +11:00
Mouse Reeve
c17a2ec55b
Creates snippet for user tag in admin view
...
The existing display wasn't showing the correct colors and was repeating
code unnecessarily
2023-11-05 10:18:04 -08:00
Mouse Reeve
d3668e413d
Removes updates fields that was causing problems
2023-11-05 09:59:49 -08:00
Mouse Reeve
f353b49d36
Another linting issues
2023-11-05 09:53:57 -08:00
Mouse Reeve
47953c84d7
Fixes linting errors
...
Apparently I didn't have a linter working!
2023-11-05 09:49:38 -08:00
Mouse Reeve
4de9907456
Adds migration tests
2023-11-05 09:26:49 -08:00
Mouse Reeve
61caeed5a3
Adds migration and more tests
2023-11-05 08:51:42 -08:00
Mouse Reeve
5e42afd85a
Pass args and kwargs through status deletion
2023-11-05 08:10:03 -08:00
Mouse Reeve
d0c652f0f5
Merge pull request #3084 from bookwyrm-social/find_existing_tests
...
Adds a couple more tests for find_existing
2023-11-05 08:06:15 -08:00
Mouse Reeve
93a7dd9cf3
Erase user data and statuses on account deletion
2023-11-05 08:00:29 -08:00
Mouse Reeve
9e9e9a9f85
Uses explicit imports to avoid circular import in migrations code
2023-11-05 07:04:05 -08:00
Mouse Reeve
ff2bb513ed
Adds migration for notification types
2023-11-05 06:56:10 -08:00
Mouse Reeve
89b87db1c8
Adds merge migration
2023-11-05 06:54:29 -08:00
Mouse Reeve
67822d3cb0
Merge branch 'main' into user-migration
2023-11-05 06:52:48 -08:00
Mouse Reeve
10e0f2224a
Adds a couple more tests for find_existing
2023-11-05 06:44:39 -08:00
Mouse Reeve
7104e775d8
Updates working of header tour
2023-11-05 06:36:43 -08:00
Hugh Rundle
d682e55812
swap out django-file-resubmit
...
- we decided to fork it, so this now uses the inaugural RC release of bw-file-resubmit (will need to be adjusted once we're confident it's ok to push a full release)
- I was accidentally using the wrong widget lol
2023-11-05 16:34:24 +11:00
Adeodato Simó
afad39bf80
Use $ instead of \Z for end of string
...
They're identical here, since re.M is not used, and the better-known
should be used, for readability.
2023-11-03 19:38:24 -03:00
Adeodato Simó
954a02126e
format_links: parse punctuation inside brackets
...
Also, consolidate all punctuation tests into a single table-driven one.
2023-11-03 19:38:24 -03:00
Adeodato Simó
7d13cbb10b
Add failing tests for reported bugs in format_links()
2023-11-03 19:38:23 -03:00
Adeodato Simó
294788aa1a
format_links: refactor; support multiple punctuation
2023-11-03 19:38:23 -03:00
Mouse Reeve
116a838eef
Fixes typo that confuses isbn 10 and 13
2023-11-02 19:37:58 -07:00
Mouse Reeve
f839038c8f
Add test for normalizing isbns in book model
...
Turns out this was actually working as expected
2023-11-02 19:12:46 -07:00
Mouse Reeve
285c513211
Adds test for invalid isbns and handle isbns with dashes
2023-11-02 19:03:15 -07:00
Mouse Reeve
95ba38524b
Merge pull request #3080 from bookwyrm-social/dependabot/pip/django-3.2.23
...
Bump django from 3.2.20 to 3.2.23
2023-11-02 18:48:30 -07:00
dependabot[bot]
68f1a69b6a
Bump django from 3.2.20 to 3.2.23
...
Bumps [django](https://github.com/django/django ) from 3.2.20 to 3.2.23.
- [Commits](https://github.com/django/django/compare/3.2.20...3.2.23 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 22:13:52 +00:00
Mouse Reeve
8c950237a4
Merge pull request #3077 from bookwyrm-social/locales
...
Fixes plural string, "URL", and updates locales
2023-11-02 15:06:34 -07:00
Mouse Reeve
e1217f2054
Don't show notification for user follow request if the user is inactive
2023-11-02 15:04:03 -07:00
Mouse Reeve
ae51dcec63
Merge pull request #3039 from dato/ap_image_url
...
Fix creation of covers for ActivityPub imports
2023-11-02 14:44:44 -07:00
Mouse Reeve
22554f85ad
Updates tour to reflect changes in #2201
2023-11-02 14:37:14 -07:00
Mouse Reeve
c1a7e4d9eb
Merge pull request #2201 from bookwyrm-social/header-links
...
Adds "Your Books" to the header and removed "Feed"
2023-11-02 14:34:47 -07:00
Mouse Reeve
416bbd4d9e
Fixes plural string, "URL", and updates locales
2023-11-02 14:33:38 -07:00
Mouse Reeve
45fc10e3bf
Merge pull request #3067 from hughrun/2989
...
add defaults of None to optional AWS values
2023-11-02 14:24:58 -07:00
Mouse Reeve
0502f6ba42
Merge pull request #3076 from bookwyrm-social/move
...
Add Move activity for user migration (with small change)
2023-11-01 18:19:56 -07:00
Mouse Reeve
86fd62a09e
Merge pull request #3075 from bookwyrm-social/small-migration-fix
...
Adds reverse migration for populate sort title
2023-11-01 18:19:34 -07:00
Mouse Reeve
2137737d9b
Small changes to get blocktrans to work as expected in move code
2023-11-01 17:19:57 -07:00
Mouse Reeve
621cfa7ed2
Merge pull request #2970 from hughrun/move
...
Add `Move` activity for user migration
2023-11-01 17:14:34 -07:00
Mouse Reeve
6f9c7f39fb
Adds reverse migration for populate sort title
...
This doesn't impact much, it just allows you to reverse the migration,
which you would probably (hopefully) only want ot do in development.
2023-11-01 16:24:47 -07:00
Hugh Rundle
c486b9c37e
pylint fixes
2023-10-30 21:47:19 +11:00
Hugh Rundle
df43a8e2c5
Use django-file-resubmit plugin
...
- save cover images to cache when checking author and work for existing records
- fixes #2760
2023-10-30 19:43:39 +11:00
Mouse Reeve
941efb3f72
Merge pull request #3068 from hughrun/3066
...
make options consistent in celery
2023-10-29 17:30:40 -07:00
Hugh Rundle
d2b2cc0521
make options consistent in celery
...
- changes 'broadcasts' to 'broadcast' in Celery page in admin section
- re-orders celery queues on admin page to be in English alphabetical order (other than priority levels) - this makes them consistent with the Flower interface
- fixes #3066
2023-10-29 11:55:06 +11:00
Hugh Rundle
853b5f28a4
add defaults of None to optional AWS values
...
fixes #2989
2023-10-29 11:29:49 +11:00
Hugh Rundle
935779b5e3
Merge pull request #3064 from hughrun/user-migrate
...
stop pylint constantly whining in user-migration branch
2023-10-28 06:53:25 +11:00
Hugh Rundle
25a2615d5f
stop pylint constantly whining
2023-10-28 06:51:26 +11:00
Hugh Rundle
50ac691126
add alt tag
2023-10-28 06:28:43 +11:00
Hugh Rundle
4d35fd45df
template and migration fixes
2023-10-27 22:22:58 +11:00
Hugh Rundle
6f3b1b565f
fixes to move layout and notifs
...
- make Move notifications less complicated
- moved users cannot do anything other than unmove or log out
- refactor translations for moved users
2023-10-27 22:00:04 +11:00
Adeodato Simó
1952bb6ddc
fix mypy issues
...
The three "ignore" directives are:
- avoid unreadable boilerplate from inherited `Field` methods; and:
- https://github.com/typeddjango/django-stubs/issues/285#issuecomment-600029858
2023-10-24 18:14:05 -03:00
Adeodato Simó
170d1fe205
fix pylint issues (minus no-else-return
)
2023-10-24 17:41:07 -03:00
Adeodato Simó
737ac8e908
Implement PartialDateField using SealedDate and a custom descriptor
2023-10-24 17:30:15 -03:00
Adeodato Simó
9752819bdb
Add support for parsing partial isoformats back
2023-10-24 17:30:13 -03:00
Adeodato Simó
4b47646e28
Fix typing hints in sealed_date module
...
In particular, SealedDate's class methods always return an instance
of the class they're invoked through (i.e., `SealedDate.from_date_parts`
intentionally never returns `MonthSeal` or `YearSeal`).
To propertly annotate this, a type variable is needed (or the much
simpler `Self` in Python 3.11).
2023-10-24 17:29:04 -03:00
Adeodato Simó
5f619d7a39
Implement SealedDateFormField to preserves partial dates
...
Note that Django forms _already_ have suppport for partial date data; we
just need to extend it when converting to Python (using SealedDate instead
of returning an error).
2023-10-24 17:29:00 -03:00
Adeodato Simó
777c8b4549
naturalday_partial filter for working with SealedDate
2023-10-24 04:32:27 -03:00
Adeodato Simó
46d80d56a5
Rename SealedDate.__str__ to partial_isoformat
...
Django uses `str(date)` for backends other than PostgreSQL, so do not
break "YYYY-MM-DD" formatting, just in case.
2023-10-24 04:32:27 -03:00
Adeodato Simó
a9c605ea97
Add SealedDate class for globally-stable, maybe-incomplete dates
2023-10-24 04:32:27 -03:00
Adeodato Simó
52a979da2d
Add failing test case for "January 1st" offset bug
2023-10-24 04:32:27 -03:00
Hugh Rundle
5592a8e08b
Merge pull request #3061 from hughrun/user-migrate
...
minor pylint and mypy fixes
2023-10-23 21:32:36 +11:00
Hugh Rundle
f30555be0f
minor pylint and mypy fixes
2023-10-23 21:30:17 +11:00
Hugh Rundle
f662e4e049
Merge pull request #3060 from hughrun/user-migrate
...
Fix texts & linting plus minor bugfixes
2023-10-23 20:54:41 +11:00
Hugh Rundle
e29c93a1e9
complete jobs more sensibly
...
- fix tuple in tar export I accidentally broke by following pylint blindly
- just use job.set_status to complete jobs since it does everything we need
- fix/avoid Celery "not JSON deserializable" error by not saving whole job including user value
2023-10-23 20:44:52 +11:00
Hugh Rundle
ddec2dbaa9
fix tar types notification docstring
2023-10-23 20:43:49 +11:00
Hugh Rundle
b8fc5c9b7a
fix tests
2023-10-23 20:42:56 +11:00
Hugh Rundle
8477d0b89d
Merge branch 'main' into user-migration
2023-10-22 18:47:41 +11:00
Hugh Rundle
afb5c01947
Merge pull request #3058 from hughrun/user-migrate
...
oops import Any
2023-10-22 17:57:57 +11:00
Hugh Rundle
2b6852e7a0
oops import Any
2023-10-22 17:56:46 +11:00
Hugh Rundle
d05cf8e59b
Merge pull request #3057 from hughrun/user-migrate
...
once more into the linting breach!
2023-10-22 17:50:58 +11:00
Hugh Rundle
b6b55b2e65
once more into the linting breach!
2023-10-22 17:49:26 +11:00
Hugh Rundle
c5e536aeaa
Merge pull request #3056 from hughrun/user-migrate
...
fix tests and linting
2023-10-22 17:27:57 +11:00
Hugh Rundle
07ef12ce8e
fix tests and linting
2023-10-22 17:26:27 +11:00
Hugh Rundle
0c846ca31f
Merge pull request #3055 from hughrun/user-migrate
...
formatting and linting fixes
2023-10-22 16:56:20 +11:00
Hugh Rundle
0a2efeb5aa
Merge branch 'user-migration' into user-migrate
2023-10-22 16:55:00 +11:00
Hugh Rundle
6222088f15
Merge branch 'user-migrate' of github.com:hughrun/bookwyrm into user-migrate
2023-10-22 16:53:32 +11:00
Hugh Rundle
fd1ebf5f71
formatting and pylint fixes
2023-10-22 16:52:29 +11:00
Hugh Rundle
11a726b40b
Merge pull request #3037 from hughrun/user-migrate
...
complete most outstanding user migrate tasks
2023-10-22 15:40:22 +11:00
Hugh Rundle
c0a5e55f7f
Merge branch 'user-migration' into user-migrate
2023-10-22 15:38:06 +11:00
Hugh Rundle
b34a491172
run black
2023-10-22 15:34:25 +11:00
Hugh Rundle
a27c652501
admin view for user imports
...
- makes user_import_time_limit a site setting rather than a value in settings.py (note this applies to exports as well as imports)
- admins can change user_import_time_limit from UI
- admins can cancel stuck user imports
- disabling new imports also disables user imports
2023-10-22 15:07:49 +11:00
Hugh Rundle
836127f369
cooldown period for user exports
...
add USER_EXPORT_COOLDOWN_HOURS setting for controlling user exports and imports
2023-10-22 10:49:13 +11:00
Hugh Rundle
20114b0059
add notifs and error handling for user export/import
2023-10-22 09:03:28 +11:00
Jascha Ezra Urbach
c9e6dcc2d9
Merge pull request #3053 from bookwyrm-social/develop
...
Release 0.7.0
2023-10-21 18:30:45 +02:00
Jascha Ezra Urbach
00bf2903bc
Bumped version number to 0.7.0 ( #3052 )
2023-10-21 18:29:45 +02:00
Adeodato Simó
698e74a496
Minor vocabulary fixes and structured data improvements ( #3036 )
...
* Remove duplicate Review object under `rating` property
This was preventing validation, since `rating` is not a valid property
(`review` is, which is created from book.html already).
* Drop `bestRating` property in ratings, since it defaults to 5
See <https://schema.org/bestRating > ("If bestRating is omitted,
5 is assumed").
* Create Rating object (and its enclosing Review) in book/rating.html
* Use `position` property for Book objects in a series
`volumeNumber`, previously used, is only valid for objects of type
PublicationVolume (which series members are not).
* Give URL of book series when setting of `isPartOf`
* series.html: Add empty BookSeries object
---------
Co-authored-by: Adeodato Simó <dato@users.noreply.github.com>
2023-10-21 17:53:24 +02:00
Jascha Ezra Urbach
695c67a714
Merge pull request #3051 from bookwyrm-social/jaschaurbach-patch-1
...
Update bump-version.sh
2023-10-21 17:28:55 +02:00
Jascha Ezra Urbach
abb6bcd199
Update bump-version.sh
...
just a little fix
2023-10-21 17:28:44 +02:00
Jascha Ezra Urbach
4e16800b52
Merge pull request #3050 from bookwyrm-social/bump-version-script
...
Create bump-version.sh
2023-10-21 17:18:31 +02:00
Jascha Urbach
4a9d80268a
Create bump-version.sh
...
This scripts reads VERSION (should be semantic version), automatically
suggest a "minor" version update, and ask for input to use either suggestion, or a new value.
creates a pull request with updated VERSION and creates a tag for the new version.
2023-10-21 17:16:55 +02:00
Hugh Rundle
781b01a007
add error handling and status for user exports
...
* fix Safari not downloading with the correct filename
* add FAILED status
* don't provide download link for stopped jobs
2023-10-21 19:43:44 +11:00
Jascha Ezra Urbach
1685ac1953
Move version out of settings ( #3045 )
...
This removes the content of VERSION from settings.py and moves it into a seperate file which makes it easier to update versionnumbers via script in the future.
2023-10-19 11:29:59 +02:00
Mouse Reeve
2237a7eb9e
Merge pull request #3008 from dato/author_in_citation
...
Cite author in quotations and alt text
2023-10-18 17:31:55 -07:00
Mouse Reeve
caa31de685
Merge pull request #3046 from dato/stylelint-fix
...
Remaining CSS lints and npm exec cleanup
2023-10-18 17:05:52 -07:00
Adeodato Simó
f88a0f8229
Run stylelint to fix remaining issues
...
Including deletion of two duplicate stanzas introduced in 33c13608a8
("Refixing
light and dark themes").
2023-10-18 20:39:12 -03:00
Adeodato Simó
b78d51410b
bw-dev: drop use of npm exec
by setting PATH in Docker image
2023-10-18 20:37:13 -03:00
Adeodato Simó
6392a8e01d
Merge pull request #2032 from viviicat/bw-dev-npm-fix
...
Conflicts:
bw-dev
dev-tools/Dockerfile
bookwyrm/static/css/bookwyrm/_all.scss
bookwyrm/static/css/themes/bookwyrm-dark.scss
bookwyrm/static/css/themes/bookwyrm-light.scss
2023-10-18 18:54:53 -03:00
Jascha Ezra Urbach
912269303e
Merge pull request #2960 from hbrunn/main-systemd-sandboxing
...
Add sandboxing to systemd examples
2023-10-18 21:00:20 +02:00
Jascha Ezra Urbach
abebf82042
Merge pull request #3029 from skmanohar/show-hide-password
...
Show/Hide password icon
2023-10-18 20:34:12 +02:00
Sidharth
25e8b259f7
Show/Hide password icon
2023-10-18 21:33:37 +05:30
Mouse Reeve
3624763073
Merge pull request #3043 from dato/prettier_rerun_final
...
Final prettier re-run
2023-10-17 14:28:48 -07:00
Adeodato Simó
d55e0b6ba3
Final JS update to match 'es5' trailing comma style
...
This is follow-up to cd247a668
("Update .prettierrc").
2023-10-17 17:11:59 -03:00
Jascha Ezra Urbach
06923c64c1
Merge pull request #3003 from dato/book_info_first_pub_date
...
Fallback to showing first published date
2023-10-17 20:16:06 +02:00
Jascha Ezra Urbach
3ade72b90d
Merge pull request #3038 from dato/parsed_date_defaults
...
Stable defaults for incomplete parsed dates
2023-10-17 20:08:04 +02:00
Jascha Ezra Urbach
67f6c0a5a7
Merge pull request #3042 from bookwyrm-social/fix-prettierrc
...
Update .prettierrc
2023-10-17 19:52:10 +02:00
Jascha Urbach
cd247a6689
Update .prettierrc
...
Forgot to change the file pre-merch
2023-10-17 19:49:32 +02:00
Jascha Ezra Urbach
b97dafc303
Merge pull request #3034 from bookwyrm-social/prettier-trailing-comma
...
introduce .prettierrc
2023-10-17 19:32:04 +02:00
Jascha Ezra Urbach
4d352faae3
Merge branch 'main' into prettier-trailing-comma
2023-10-17 19:31:24 +02:00
Jascha Ezra Urbach
f02faa1b74
Merge pull request #3040 from dato/update-node-installation
...
dev-tools: use apt source for Node instead of setup script
2023-10-17 19:13:41 +02:00
Adeodato Simó
1937177e1a
dev-tools: use apt source for Node instead of setup script
...
Extra bits:
- use a single RUN instruction
- silence upgrade notices from pip and npm
2023-10-17 02:26:22 -03:00
Adeodato Simó
3251ef0bf5
Fix creation of covers for ActivityPub imports
...
`cover` comes as a JSON dict, but the code was looking for URL as
an attribute.
(This commit leaves the attribute access in place, just in case
`cover` is updated to serialize as Document proper.)
2023-10-16 17:43:04 -03:00
Adeodato Simó
8afcb9b6d3
Fix tests warning: ImportJob.updated_date received a naive datetime
2023-10-15 22:03:45 -03:00
Adeodato Simó
c02306a66b
Default to Jan 1st too on incomplete dates received from ActivityPub
2023-10-15 19:59:51 -03:00
Adeodato Simó
c066d11eb1
Bugfix: default missing date components to 1, not today's
...
Fixes : #2660 .
2023-10-15 19:49:00 -03:00
Adeodato Simó
8f0f3e6ace
ImportItem: preserve parsed timezones in date_started, date_read
...
This is a follow-up to b564e514f
("Handle parsed dates that already
have a timezone on import"), which was applied to `date_added` only.
(Appart from consistency, this will allow to apply future parsing fixes
more easily.)
2023-10-15 19:48:02 -03:00
Hugh Rundle
f07d730e03
Merge pull request #2980 from CSDUMMI/upstream2
...
Complete Migrations of Bookwyrm Accounts across instances
Merging this into `user-migration` branch to enable final work on this within the main Bookwyrm repository. We will pull in the final PR from there into `main` when ready.
Thanks to @CSDUMMI and the crew for this huge job.
2023-10-15 15:19:01 +11:00
Hugh Rundle
a4bfcb34d5
fix tests and clean up
...
* cleans up some test logging
* cleans up some commented-out code
* adds export_job model tests
* reconsiders some tests in export user view tests
2023-10-15 15:09:19 +11:00
Hugh Rundle
6667178703
Merge pull request #2981 from rg-wood/installable-pwa
...
Add: installable as PWA
Resolves #2558
2023-10-15 09:06:24 +11:00
Hugh Rundle
c946e7dd82
Merge branch 'main' into installable-pwa
2023-10-15 08:42:17 +11:00
Jascha Urbach
0f79aea36f
introduce .prettierrc
...
With this pullrequest I introduce .prettierrc with one rule:
'trailingComma': 'none'
2023-10-14 17:52:58 +02:00
Jascha Ezra Urbach
66f62566d6
Merge pull request #3033 from bookwyrm-social/fix-eslint-warning
...
Fix eslint warning
2023-10-14 17:22:30 +02:00
Jascha Urbach
97adf2f7fd
I changed my own comments to get rid of this warning which I could have better written in the first place.
2023-10-14 17:21:15 +02:00
Jascha Ezra Urbach
0452e8698d
Merge branch 'main' into installable-pwa
2023-10-14 13:57:59 +02:00
Jascha Ezra Urbach
16b7db4639
Merge pull request #3022 from dato/drop_duplicate_isfdb_link
...
Drop duplicate author link to ISFDB
2023-10-14 13:57:08 +02:00
Jascha Ezra Urbach
d7ba0e3a8a
Merge pull request #3023 from dato/series_name_urlencode
...
URL-encode book series name when linking to it
2023-10-14 13:56:38 +02:00
Adeodato Simó
17d741039c
Remove duplicate test
...
(Test case already part of test_format_links_simple_url.)
2023-10-09 21:37:39 -03:00
Adeodato Simó
0043329cc1
Simplify literals in _wrapped
2023-10-09 21:09:52 -03:00
Adeodato Simó
c3c22022f6
Check for punctuation before checking for wrapping parenthesis
...
This allows to parse `(URL).` correctly, which was not detected
as URL before.
2023-10-09 21:09:51 -03:00
Adeodato Simó
1778c56be0
URL-encode book series name when linking to it
...
Closes : #3021 .
2023-10-09 04:24:05 -03:00
Adeodato Simó
55eb81dbf9
Drop duplicate author link to ISFDB
...
Closes : #3018 .
2023-10-09 01:16:32 -03:00
R.G. Wood
a7e427efc2
Merge branch 'main' into installable-pwa
2023-10-07 13:34:35 +01:00
R.G. Wood
1798abfc3e
Display site name and description for PWA manifest
2023-10-07 13:32:49 +01:00
R.G. Wood
34d5c557d8
Fix syntax styling
2023-10-07 13:32:18 +01:00
Mouse Reeve
3d123bc2f2
Merge pull request #3017 from bookwyrm-social/dependabot/pip/pillow-10.0.1
...
Bump pillow from 9.4.0 to 10.0.1
2023-10-04 19:00:21 -07:00
dependabot[bot]
7cae5879c8
Bump pillow from 9.4.0 to 10.0.1
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 9.4.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/9.4.0...10.0.1 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 01:09:41 +00:00
Mouse Reeve
bcfd4d2efa
Merge pull request #3016 from bookwyrm-social/release-changes
...
Updates locales and version number for release
2023-10-02 10:22:05 -07:00
Mouse Reeve
e4ba09178f
Merge pull request #2949 from bookwyrm-social/user-search
...
Allow searching for local users when logged out
2023-10-02 10:21:08 -07:00
Mouse Reeve
703a56940c
Merge pull request #2953 from phildini/add-spanish-articles
...
Add spanish articles
2023-10-02 10:20:51 -07:00
Mouse Reeve
3deddf6355
Merge pull request #2912 from categulario/fix-form-labels
...
fix ids of labels in invite request form in admin
2023-10-02 10:04:34 -07:00
Mouse Reeve
b3bfcf8665
Updates test for new logic
2023-10-02 10:02:42 -07:00
Mouse Reeve
458b258ad5
Merge pull request #3007 from hughrun/signed-get
...
create instance user on instance creation
2023-10-02 09:52:59 -07:00
Mouse Reeve
fcfe34f2f6
Updates locales and version number for release
2023-10-02 09:42:22 -07:00
Hugh Rundle
e34fe9a059
Merge pull request #2917 from jderuiter/mypy-utils
...
Type annotations for utils
2023-10-01 10:29:52 +11:00
Joeri de Ruiter
d4088ac854
Merge branch 'main' into mypy-utils
2023-09-28 09:43:40 +02:00
Mouse Reeve
33e179e44b
Merge pull request #3010 from bookwyrm-social/locales
...
Updates locales
2023-09-27 16:52:36 -07:00
Mouse Reeve
2a08170fb5
Updates locales
2023-09-26 18:14:24 -07:00
Hugh Rundle
088b9ab555
Merge branch 'main' into move
2023-09-26 08:10:18 +10:00
Hugh Rundle
3e38fecd55
id_to_username cleanup
2023-09-26 07:45:45 +10:00
Adeodato Simó
7cfdf235bc
Include author in cover image alt text
2023-09-25 16:03:16 -03:00
Adeodato Simó
80a1180090
Include author name when serializing Quotation
2023-09-25 16:03:16 -03:00
Hugh Rundle
b05f2e99e8
undo moves
...
also cleans up some templates
2023-09-25 22:05:43 +10:00
Hugh Rundle
4fd5e2094a
hopefully fix template
2023-09-25 16:35:02 +10:00
Hugh Rundle
9547edf845
oops close div
2023-09-25 16:21:19 +10:00
Hugh Rundle
d67903fd4b
fix tests and templates
2023-09-25 15:49:25 +10:00
Hugh Rundle
01a56540d0
cleanup
2023-09-25 15:29:01 +10:00
Hugh Rundle
c95f160216
fix MoveUser errors and clean up
...
- minor template fixes
- notification logic fixes
- don't dedupe on moved_to or also_known_as
- add migration
2023-09-25 15:14:21 +10:00
Hugh Rundle
fe4bc28f37
fix tests
2023-09-24 15:58:52 +10:00
Hugh Rundle
b69031c01a
formatting
2023-09-24 12:31:01 +10:00
Mouse Reeve
bab28a8fc9
Merge pull request #3000 from dato/position_serialization
...
Minor improvements to Quotation pure content
2023-09-23 17:47:27 -07:00
Adeodato Simó
ec2c5cb546
Only use first publish date if publisher is unknown
2023-09-23 18:23:15 -03:00
Adeodato Simó
2c968e94cb
Fallback to first published date if published date not present
2023-09-23 18:22:02 -03:00
Adeodato Simó
fadf30b942
Also use italics for book title in editions.html template
2023-09-23 17:49:38 -03:00
Adeodato Simó
cc05cabcb5
Note content: use italics for book titles + em-dash for Quotation
2023-09-23 17:49:38 -03:00
Mouse Reeve
ef582f1bc2
Merge pull request #2986 from NetspherePub/2985
...
Correct EPUB spelling
2023-09-22 17:04:18 -07:00
Mouse Reeve
b75b5cb165
Merge pull request #2987 from JJimenez71/main
...
Pinned versions of docker containers
2023-09-22 17:03:39 -07:00
Mouse Reeve
0a029e6e01
Merge pull request #2992 from jderuiter/new-edition-issues
...
parent_work was not always included when needed
2023-09-22 17:00:40 -07:00
Mouse Reeve
85b647b7ab
Merge pull request #3002 from dato/django_serve_static_debug
...
Serve static files in debug mode
2023-09-22 16:17:58 -07:00
Adeodato Simó
1e495684af
Serve static files in debug mode
2023-09-18 19:01:22 -03:00
Hugh Rundle
5b051631ec
Move MVP
...
* update User model to allow for moved_to and also_known_as values
* allow users to add aliases (also_known_as) in UI
* allow users to move account to another one (moved_to)
* redirect webfinger to the new account after a move
* present notification to followers inviting to follow at new account
Note: unlike Mastodon we're not running any unfollow/autofollow action here: users can decide for themselves
This makes undoing moves easier.
TODO
There is still a bug with incoming Moves, at least from Mastodon.
This seems to be something to do with Update activities (rather than Move, strictly).
2023-09-18 21:21:04 +10:00
Adeodato Simó
ce3885d4f6
Use endposition
when serializing Quotation
2023-09-17 15:18:48 -03:00
Adeodato Simó
1322a0c693
Substitute “p.” for “page” in page progress serialization
2023-09-17 15:18:21 -03:00
Adeodato Simó
25fd7276ea
pure_content()
refactor: shorter conditionals
2023-09-17 15:01:04 -03:00
Joeri de Ruiter
af5f71f5ac
Revert return type for get_or_set
2023-09-13 10:21:30 +02:00
Joeri de Ruiter
05f8bd0d3c
parent_work was not always included in work when needed
2023-09-13 09:46:31 +02:00
Joeri de Ruiter
a5cf912ae8
Fix some annotations
2023-09-13 09:22:53 +02:00
Joeri de Ruiter
a5ede835b2
Dump dependencies related to typing
2023-09-13 09:09:43 +02:00
FoW
d8ba1f4309
Correct EPUB spelling
2023-09-08 22:52:11 +09:00
Joeri de Ruiter
6e9f64262c
Merge branch 'main' into mypy-utils
2023-09-08 08:53:38 +02:00
JJimenez71
2260e14868
Pinned versions of docker containers
2023-09-07 19:30:29 -06:00
CSDUMMI
688978369f
Implement self-contained archives to import and export entire users between instances ( #38 )
...
Co-authored-by: Daniel Burgess <developerdannymate@gmail.com>
Co-authored-by: Hugh Rundle <hugh@hughrundle.net>
Co-authored-by: dannymate <dannymate@noreply.codeberg.org>
Co-authored-by: hughrun <hughrun@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/GuildAlpha/bookwyrm/pulls/38
Co-authored-by: CSDUMMI <csdummi.misquality@simplelogin.co>
Co-committed-by: CSDUMMI <csdummi.misquality@simplelogin.co>
2023-09-07 22:37:28 +02:00
R.G. Wood
b9851d665e
Add: installable as PWA
2023-09-07 13:41:31 +01:00
Mouse Reeve
a09b2ab45c
Merge pull request #2964 from bookwyrm-social/delete-announcement-view
...
Makes the delete announcement view post-only
2023-09-05 16:43:31 -07:00
Mouse Reeve
bc870a305f
Merge pull request #2962 from jderuiter/mypy-isbn
...
Type annotations and tests for isbn
2023-09-01 17:05:01 -07:00
Mouse Reeve
c2196fb704
Merge pull request #2948 from bookwyrm-social/populate-sort-title
...
Pre-populate sort title in edit book form if not provided
2023-09-01 17:01:41 -07:00
Mouse Reeve
47e8f3c3e6
Merge pull request #2967 from 0x29a/version-bump
...
chore: bump version to match the latest tag
2023-09-01 17:01:04 -07:00
Mouse Reeve
b0601a0958
Makes deleting announcements only work via POST
2023-09-01 16:59:56 -07:00
Mouse Reeve
4e999657cc
Merge pull request #2972 from hughrun/opensearch
...
fix opensearch template
2023-09-01 16:57:10 -07:00
Hugh Rundle
d560a6baef
fix opensearch template
...
* "method" is not a valid attribute of the `Url` element
* "ShortName" cannot be empty - fixed site_name being used before it was assigned
2023-08-30 20:15:20 +10:00
Hugh Rundle
e7ba6a3141
initial work to add 'Move' activity
2023-08-29 21:07:41 +10:00
Holger Brunn
0a9ef9e047
Add sandboxing to systemd examples
2023-08-28 07:29:42 +02:00
Abraham Toriz
4c526dfcaa
Don't rely on ids to target inputs from labels
2023-08-25 13:33:55 -06:00
Abraham Toriz
dfa935bd72
fix pointed ids of labels in invite request form
2023-08-25 13:29:26 -06:00
0x29a
1c9da7b84b
chore: bump version to match the latest tag
2023-08-25 14:11:29 +02:00
Joeri de Ruiter
5eae123668
Merge branch 'main' into mypy-isbn
2023-08-22 11:41:34 +02:00
Joeri de Ruiter
567c103e59
Merge branch 'main' into mypy-utils
2023-08-22 11:40:48 +02:00
Mouse Reeve
e5f8e4babc
Merge pull request #2963 from jderuiter/mypy-importers
...
Type annotations for bookwyrm.importers
2023-08-21 20:39:32 -07:00
Joeri de Ruiter
0686926048
Type annotations for bookwyrm.importers
2023-08-21 16:58:16 +02:00
Joeri de Ruiter
f6d8786179
Type annotations for bookwyrm.isbn
2023-08-21 15:46:50 +02:00
Joeri de Ruiter
3760e3b45c
Tests for ISBN hyphenation
2023-08-21 15:46:24 +02:00
Joeri de Ruiter
2e88e73509
Remove returned None to make pylint happy
2023-08-21 14:00:09 +02:00
Joeri de Ruiter
0f2c0c034d
Removed TODOs. When data is invalid return None.
2023-08-21 13:28:08 +02:00
Joeri de Ruiter
767cd14639
Stricter checks for bookwyrm.utils
2023-08-21 13:10:12 +02:00
Joeri de Ruiter
8f8587f79d
Set **kwargs type to Any for ActivityObject.__init__
2023-08-21 13:09:42 +02:00
Joeri de Ruiter
ff8e4597e5
Type annotations for utils
2023-08-21 12:56:32 +02:00
Mouse Reeve
0f8da5b738
Merge pull request #2957 from hughrun/redisfix
...
fix illegal values in redis jobs
2023-08-19 16:41:50 -07:00
Mouse Reeve
c6aaa80c62
Merge pull request #2947 from bookwyrm-social/small-ui-fixes
...
Small UI fixes
2023-08-19 15:09:12 -07:00
Mouse Reeve
1e0fe6d7c8
Remove duplicate if statement
2023-08-19 15:06:57 -07:00
Hugh Rundle
5ed1441ddb
fix illegal values in redis jobs
...
1. populate_streams_get_audience
This tries to set status_reply_parent_privacy as None if there is no status.reply_parent, but None is not a valid value for privacy.
This doesn't appear to be breaking anything but does result in a lot of error messages in the logs.
I have set this to equal the original status.privacy - this won't realy have any effect since it only happens when there is no parent,
however we could set this to "direct" if we want to be highly cautious.
2. rerank_user_task
Again, this doesn't seem to caused major issues, but is throwing errors if the user in question no longer exists for some reason.
This commit checks whether 'user' exists before attempting to rerank.
2023-08-19 08:34:03 +10:00
Margaret Fero
d7adada29c
Add Spanish Articles
...
Added articles for spanish language to list of articles in settings
2023-08-15 22:53:43 -07:00
Philip James
2826e184d2
Merge pull request #7 from bookwyrm-social/main
...
Update to main
2023-08-15 21:58:38 -07:00
Mouse Reeve
63b60ad62c
Removes "all books" link from profile when there are none
2023-08-06 19:40:59 -07:00
Mouse Reeve
185486c6fc
Uses {% empty %} instead of if statements
2023-08-06 19:35:50 -07:00
Mouse Reeve
53c8085207
Merge pull request #2946 from bookwyrm-social/followers-page-breadcrumbs
...
Adds breadcrumbs and better titles to followers/following pages
2023-08-06 19:13:35 -07:00
Mouse Reeve
a05942fe15
Allow searching for local users when logged out
2023-08-06 18:23:57 -07:00
Mouse Reeve
d9f6449767
Pre-populate sort title in edit book form if not provided
...
It's confusing to edit a book when this isn't set, so this provides the
best-guess version of the sort title if there isn't one provided, and
allows the user to change it as needed.
2023-08-06 17:57:57 -07:00
Mouse Reeve
15e82ece07
Merge pull request #2854 from bookwyrm-social/report-actions
...
Record report actions
2023-08-06 16:52:24 -07:00
Mouse Reeve
861d3b1500
Merge pull request #2935 from jderuiter/markdown-import
...
Convert description from Markdown when importing from Open Library
2023-08-06 16:14:25 -07:00
Mouse Reeve
518f87ef62
Adds merge migration
2023-08-06 16:02:28 -07:00
Mouse Reeve
a166af9990
Merge branch 'main' into report-actions
2023-08-06 16:00:59 -07:00
Mouse Reeve
e76b44fc8f
Merge pull request #2921 from axiomizer/isbn-hyphenation
...
Isbn hyphenation
2023-08-06 15:59:19 -07:00
Mouse Reeve
b7e7867b9b
Merge pull request #2938 from jderuiter/redirect-referer
...
On readthrough, progressupdate or status delete return to previous page
2023-08-06 15:41:26 -07:00
Mouse Reeve
e8949bbffd
Make sure defaults are set on directory filters
2023-08-06 15:37:26 -07:00
Mouse Reeve
27c40ccf20
Uses comma formatting on user follower/following display values
2023-08-06 15:37:26 -07:00
Mouse Reeve
66250e0dd8
Consistent null states and page titles in user profile views
2023-08-06 15:36:56 -07:00
Mouse Reeve
0e43cc4274
Adds breadcrumbs and better titles to followers/following pages
2023-08-06 15:09:45 -07:00
Mouse Reeve
013c726869
Merge pull request #2918 from jderuiter/dutch
...
Include Dutch locale
2023-08-05 14:34:05 -07:00
axiomizer
83ad45644b
Make hyphenated ISBN a property on the book model
2023-08-03 18:01:02 -04:00
Joeri de Ruiter
2dddb2e3da
Revert change to redirect when deleting status
2023-08-03 13:18:35 +02:00
Joeri de Ruiter
a901014e48
Change import of clean
2023-08-02 19:37:52 +02:00
Joeri de Ruiter
ae5c27f3bb
Sanitise description from Open Library
2023-08-02 19:30:40 +02:00
Joeri de Ruiter
f4a4b59a14
Merge branch 'main' into markdown-import
2023-08-02 19:19:07 +02:00
Mouse Reeve
0be5cf31dc
Merge branch 'main' into isbn-hyphenation
2023-08-01 21:10:10 -07:00
Mouse Reeve
9d69f2fb3e
Merge pull request #2905 from bookwyrm-social/broken-editions
...
Adds management command to repair editions in bad state
2023-08-01 21:08:43 -07:00
Mouse Reeve
73f1484025
Merge pull request #2915 from axiomizer/main
...
Add copy button for ISBN
2023-08-01 20:55:12 -07:00
Mouse Reeve
455b0c82ea
Fixes typo and outdated comment
2023-08-01 20:53:06 -07:00
Mouse Reeve
acafa0b417
Merge pull request #2925 from jderuiter/mypy-connectors
...
Type annotations and related changes for connectors
2023-08-01 20:46:56 -07:00
axiomizer
3ca36fef4d
Make copy button screen reader friendly
...
revert last commit because prettier was run with the wrong version
This reverts commit 5d3883c9a0
.
2023-08-01 22:56:05 -04:00
Mouse Reeve
173d0b77ac
Merge pull request #2937 from jderuiter/create-book-fixes
...
Fixes for create-book
2023-08-01 19:02:33 -07:00
Mouse Reeve
211b60bba2
Merge pull request #2934 from bookwyrm-social/reduce-status-tasks
...
Only trigger add_status_task when status is first created
2023-08-01 08:30:43 -07:00
Joeri de Ruiter
d1bad521e9
When deleting readthrough, progressupdate or status, return to referer instead of main page
2023-08-01 17:19:10 +02:00
axiomizer
8565367993
Fix pylint issues and failing unit tests
2023-08-01 09:45:13 -04:00
Joeri de Ruiter
220cad8661
Only show author confirmation if new authors are added, show suggestions for parent work and set it correctly.
2023-08-01 15:12:50 +02:00
axiomizer
5d3883c9a0
run prettier on bookwyrm.js
2023-08-01 08:09:10 -04:00
Joeri de Ruiter
1a733746f2
Only remove surrounding p tags if there are no other p tags
2023-08-01 12:17:57 +02:00
Joeri de Ruiter
1a215e9b9e
Convert description from Markdown to HTML when importing from Open Library
2023-08-01 11:45:46 +02:00
Mouse Reeve
2f8cf941af
Merge pull request #2933 from joachimesque/remove-links-trailing-punctuation
...
Remove links trailing punctuation
2023-07-31 18:58:39 -07:00
Mouse Reeve
3336fd0f11
Updates test
2023-07-31 17:48:09 -07:00
Mouse Reeve
f6fba19ac4
Only trigger add_status_task when status is first created
...
I think the reason I didn't do this initially was so that related users
and books, which are added necessarily after the model instance is
crated, will be part of the object when the task runs, but I have
investigated this and because of the transaction.atomic statement in the
to_model method in bookwyrm/activitypub/base_activity.py and in the
status view (added in this commit), this is not an issue.
2023-07-31 17:23:57 -07:00
Joachim
928d56b566
Fix function docstring
2023-07-31 22:15:09 +02:00
Joachim
e37ed8ea5e
Remove links trailing punctuation
2023-07-31 22:12:37 +02:00
Hugh Rundle
c29ca5ad32
Merge pull request #2922 from tararoshan/wip-edit-post-and-save
...
fix button text when editing posts
Resolves #2642
2023-07-31 16:44:30 +10:00
Hugh Rundle
390f61ff3b
Merge branch 'main' into wip-edit-post-and-save
2023-07-31 16:25:04 +10:00
Hugh Rundle
61283b3d4f
Merge pull request #2929 from joachimesque/search-disable-spellcheck
...
Disable Spellcheck on header search inputs
2023-07-31 14:42:30 +10:00
Mouse Reeve
588ec80b4c
Merge pull request #2927 from bookwyrm-social/streams-queue
...
Reduce activity in streams queue from boost tasks
2023-07-30 18:37:49 -07:00
Joachim
6a81f91902
Disable Spellcheck on header search inputs
2023-07-30 22:33:08 +02:00
Mouse Reeve
71dc05f894
Reduce activity in streams queue from boost tasks
2023-07-30 13:07:12 -07:00
Mouse Reeve
30f025dbcd
Merge pull request #2923 from jderuiter/hashtag-naming
...
Remove '@' from the beginning of hashtag names in activity
2023-07-30 06:27:51 -07:00
Joeri de Ruiter
2920973961
Some small improvements to annotations
2023-07-28 20:54:03 +02:00
Joeri de Ruiter
f07d7b02f1
Type annotations and related changes for bookwyrm.connectors
2023-07-28 17:43:32 +02:00
Joeri de Ruiter
8736f2c6ef
Remove '@' from the beginning of hashtag names in activity
2023-07-28 11:20:08 +02:00
Tara Sophia Roshan
c721e17aa0
Change wording from 'Save' to 'Update'
...
I think this wording is more clear.
2023-07-27 17:45:06 -05:00
Tara Sophia Roshan
9cd599dee3
Indicate edited post is saved
...
Should close #2642 and #2671 . Gives a minimal solution to #2668 .
2023-07-27 00:22:12 -05:00
axiomizer
2293c1c5a8
Revert part of "Hyphenate ISBN numbers and add copy button" related to copy button
...
This partially reverts commit d2c4785af1
.
2023-07-25 08:54:49 -04:00
axiomizer
bd26da351a
Hyphenate ISBN numbers and add copy button
2023-07-25 08:54:49 -04:00
Joeri de Ruiter
fec6f39e4e
Migration to include Dutch in user.preferred_language
2023-07-23 21:34:28 +02:00
Joeri de Ruiter
308dfd1be0
Include Dutch locale
2023-07-23 21:27:42 +02:00
Joeri de Ruiter
0354e53eea
Type annotations for utils
2023-07-23 20:50:44 +02:00
axiomizer
9a30a3656a
satisfy js linter
2023-07-22 22:34:10 -04:00
Mouse Reeve
07aca2f62c
Merge pull request #2916 from jderuiter/mypy-integration
...
mypy integration
2023-07-22 18:14:10 -07:00
axiomizer
1bda8a5d9d
Revert part of "Hyphenate ISBN numbers and add copy button" related to hyphenation
...
This partially reverts commit d2c4785af1
.
2023-07-22 14:25:58 -04:00
Joeri de Ruiter
75f37d7361
Added mypy to scripts and workflow, and some first annotations for celerywyrm
2023-07-22 13:27:43 +02:00
axiomizer
d2c4785af1
Hyphenate ISBN numbers and add copy button
2023-07-21 21:27:46 -04:00
Mouse Reeve
eae06602a9
Fixes test data
2023-07-21 14:38:28 -07:00
Mouse Reeve
9c5b5d0ac1
Updates version
2023-07-20 19:08:47 -07:00
Mouse Reeve
c4d72829e9
Merge pull request #2879 from bookwyrm-social/reactivation-bug
...
Don't allow invalid account reactivation
2023-07-20 19:07:18 -07:00
Mouse Reeve
c947360da8
Merge pull request #2910 from WesleyAC/no-unauthed-remote-profile-view
...
Don't show remote profiles to unauthenticated users
2023-07-20 19:06:50 -07:00
Mouse Reeve
2f2dae074b
Merge pull request #2908 from WesleyAC/celery-functional-queues
...
Switch from priority queues to function-based queues
2023-07-20 19:05:55 -07:00
Mouse Reeve
9d531fcb62
Merge pull request #2909 from bookwyrm-social/dependabot/pip/aiohttp-3.8.5
...
build(deps): bump aiohttp from 3.8.3 to 3.8.5
2023-07-20 18:56:25 -07:00
Wesley Aptekar-Cassels
aae1d10eea
Don't show remote profiles to unauthenticated users
2023-07-20 20:29:08 -04:00
Wesley Aptekar-Cassels
3e78e398c0
Switch from priority queues to function-based queues
...
Fixes : #2907
2023-07-20 12:25:30 -04:00
dependabot[bot]
7d1f3deaca
build(deps): bump aiohttp from 3.8.3 to 3.8.5
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.8.3 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.3...v3.8.5 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 15:55:55 +00:00
Mouse Reeve
ccf3a4c5c1
Skip trying to match editions
...
It's rare that it will be useful, and it was a huge hassle.
2023-07-18 19:33:39 -07:00
Mouse Reeve
8b88de624d
Adds test and fixes logic errors
2023-07-17 20:00:45 -07:00
Mouse Reeve
eee4e30e25
Adds managment command to repair editions in bad state
2023-07-17 11:22:59 -07:00
Mouse Reeve
fbb9d75cc8
Avoid server error when encountering broken edition
...
If an edition is missing its work, this change allows the page to still
load without a server error; this is important because otherwise the
book will break every page it appears on, including the feed page.
2023-07-17 07:07:01 -07:00
Mouse Reeve
107f5b38ca
Merge pull request #2904 from bookwyrm-social/updating-pluralization-error
...
Fixes plural display on import admin page
2023-07-17 06:40:15 -07:00
Mouse Reeve
ac4276f212
Merge pull request #2834 from zachflanders/2678
...
Add support for title sort to ignore initial article
2023-07-17 06:04:25 -07:00
Mouse Reeve
6778046906
Formats large numbers
2023-07-17 05:53:23 -07:00
Mouse Reeve
fbb6c41035
Joins entire sentence in import pluralization string
2023-07-17 05:49:40 -07:00
Mouse Reeve
815e788245
Merge pull request #2631 from rritik772/pluralization-error
...
fixed singularisation/pluralisation
2023-07-17 05:46:34 -07:00
Mouse Reeve
3bd20e3ff8
Set batch size to 1,000
...
Updated as per the comments on the PR so this is ready to merge
2023-07-17 05:42:17 -07:00
Mouse Reeve
f39a1fd580
Merge pull request #2894 from bookwyrm-social/dependabot/pip/django-3.2.20
...
build(deps): bump django from 3.2.19 to 3.2.20
2023-07-16 07:15:39 -07:00
Mouse Reeve
0818d5aabb
Merge branch 'main' into report-actions
2023-07-16 07:13:42 -07:00
Mouse Reeve
0832a2fa8e
Merge branch 'main' into reactivation-bug
2023-07-16 07:13:34 -07:00
Mouse Reeve
c2a7b9a77b
Merge pull request #2903 from bookwyrm-social/prettier-update
...
Fixes prettier JS complaints
2023-07-16 07:13:23 -07:00
Mouse Reeve
245ae35a81
Pin prettier version in github workflow
2023-07-16 06:57:31 -07:00
Mouse Reeve
d56b9f14a2
Handles changing user perms from report
2023-07-16 06:36:32 -07:00
Mouse Reeve
040dca0c31
Places first item of report history at top
2023-07-16 06:11:26 -07:00
Mouse Reeve
a7e6919b96
Fixes confirm email slow and adds test
2023-07-16 05:55:38 -07:00
Mouse Reeve
61037cf38a
Merge pull request #2883 from hughrun/modal-fix
...
Ensure report button triggers modal
2023-07-15 19:58:36 -07:00
dependabot[bot]
7f3a8f27ab
build(deps): bump django from 3.2.19 to 3.2.20
...
Bumps [django](https://github.com/django/django ) from 3.2.19 to 3.2.20.
- [Commits](https://github.com/django/django/compare/3.2.19...3.2.20 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 23:27:36 +00:00
Hugh Rundle
dd92c53410
Merge pull request #2887 from hughrun/federation
...
add `FEDERATION.md` so other app maintainers understand how BookWyrm behaves in the fediverse.
2023-07-03 09:21:40 +10:00
Hugh Rundle
fad1eb8952
clean up and add stopped-reading shelf type
2023-07-03 08:38:53 +10:00
Hugh Rundle
c875b18e34
complete FEDERATION.md initial file
2023-07-01 14:23:02 +10:00
Hugh Rundle
1841d196ff
Ensure report button triggers modal
...
Clicking on "report" in any context closed the dropdown menu and required a second click on the dropdown to trigger the modal.
With this change, the modal opens as expected.
Reverses part of #2322
2023-06-26 12:22:14 +10:00
Hugh Rundle
e783c90693
add FEDERATION info
2023-06-26 08:27:14 +10:00
Mouse Reeve
6a949c24e2
Typo fix
2023-06-21 15:52:32 -07:00
Mouse Reeve
11f1a4662e
Don't allow invalid account reactivation
2023-06-21 15:47:20 -07:00
Mouse Reeve
4f6a235d77
Reverses order of report action list
2023-06-21 15:05:02 -07:00
Jascha Ezra Urbach
a601be4708
Merge branch 'main' into 2678
2023-06-01 16:53:28 +02:00
Mouse Reeve
65e3a31354
Merge pull request #2864 from bookwyrm-social/locales
...
Update locales
2023-05-30 11:37:01 -07:00
Mouse Reeve
c6d23ba26a
Record statuses deleted in reports
2023-05-30 11:35:47 -07:00
Mouse Reeve
0bb0537215
Updates version number
2023-05-30 11:00:12 -07:00
Mouse Reeve
ca3054fdac
Merge pull request #2827 from hughrun/2571
...
Retain subjects and authors when new book form fails validation
2023-05-30 10:51:52 -07:00
Mouse Reeve
9056a5d9e7
Merge pull request #2842 from bookwyrm-social/set-remote-server
...
Set remote servers synchonously where possible
2023-05-30 10:51:39 -07:00
Mouse Reeve
a1b3fc1a79
Update locales
2023-05-30 10:50:09 -07:00
Mouse Reeve
d251f4201b
Merge pull request #2857 from bpeel/no-rating
...
Show “no rating” instead of blank stars if the review has no rating
2023-05-30 10:42:09 -07:00
Mouse Reeve
aec99ba173
Merge pull request #2862 from kvibber/rssdate
...
Add dates to RSS feeds and sort by most recent first
2023-05-30 10:36:01 -07:00
Mouse Reeve
bf0225fe93
Merge pull request #2858 from bookwyrm-social/dependabot/pip/requests-2.31.0
...
build(deps): bump requests from 2.28.2 to 2.31.0
2023-05-29 19:54:48 -07:00
Mouse Reeve
a4ccd45537
Merge pull request #2812 from hughrun/gts
...
Fix federation with GoToSocial and inconsistent KeyId in headers
2023-05-29 19:54:00 -07:00
Kelson Vibber
70679856bd
apply linter
2023-05-28 22:42:37 -07:00
Kelson Vibber
c21d580fd8
sort feed by most recent
2023-05-28 22:38:53 -07:00
Kelson Vibber
98f5cd9393
apply linting
2023-05-28 22:25:01 -07:00
Kelson Vibber
637e0376d4
rss dates
2023-05-28 21:55:26 -07:00
Philip James
9ff28d97b1
Merge pull request #6 from bookwyrm-social/main
...
Update to upstream
2023-05-24 23:42:35 -07:00
dependabot[bot]
76fc0dfcc4
build(deps): bump requests from 2.28.2 to 2.31.0
...
Bumps [requests](https://github.com/psf/requests ) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0 )
---
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 05:59:52 +00:00
Neil Roberts
603b2d9502
Show “no rating” instead of stars if the review has no rating
...
The stars.html template now outputs a span containing “no rating” when
the stars represent a non-existent or zero rating. This text is already
translated because it was previously added as a invisible text only for
screen readers. The span is given a special CSS class so that it can be
styled as italic in the stylesheet.
There is now also an extra span in book.html to group the stars with the
“(2 reviews)” text. This is needed because the outer div is using a flex
layout and it eats the spacing between the two parts otherwise.
Fixes #2856
2023-05-22 15:40:18 +02:00
Mouse Reeve
affaf3d0ba
Fixes tests and incorrect class method reference
2023-05-22 06:39:23 -07:00
Mouse Reeve
b3a519c082
Converts report "comments" into broader "actions" table
...
This table will now track all actions taken on a report, like resolving
it, re-opening it, suspending the reported user, et cetera, in addition
to comments. When there are multiple admins, this change will make it
easier to understand what actions have been taken by whom on a report.
2023-05-16 11:00:33 -07:00
Mouse Reeve
ab146f652a
Adds action types to report comments table
2023-05-16 09:02:43 -07:00
Mouse Reeve
ee1dd612fb
Merge pull request #2853 from bookwyrm-social/locales
...
Updates locales
2023-05-15 13:46:18 -07:00
Mouse Reeve
aae8b1ac14
Updates locales
2023-05-15 11:52:36 -07:00
Mouse Reeve
24d59315df
Merge pull request #2843 from bookwyrm-social/user-reports-link
...
Show all (not just open) reports when linked from user admin
2023-05-15 06:04:42 -07:00
Mouse Reeve
d6a321dda9
Merge pull request #2839 from WesleyAC/optimize-get-audience-user-id-only
...
Optimize get_audience by only fetching IDs
2023-05-15 06:03:40 -07:00
Mouse Reeve
120a0f1882
Merge pull request #2852 from bpeel/remove-from-translate-shelf-name
...
Use the translated shelf name in the “remove from” shelf button
2023-05-15 05:43:13 -07:00
Mouse Reeve
3a5ddf33a9
Merge pull request #2850 from bpeel/other-edition-translate-shelf
...
Use the translated shelf name in the message for when another edition is shelved
2023-05-15 05:39:13 -07:00
Mouse Reeve
0e0d9d2d08
Updates ignore html error list
2023-05-15 05:31:07 -07:00
Neil Roberts
666f09c576
Use the translated shelf name in the “remove from” shelf button
...
The button to remove a book from a shelf when looking at the book’s page
wasn’t using the translated shelf name. It was also concatenating
strings instead of using a placeholder, which is difficult to translate
in some languages. This fixes it to use the translate_shelf_name
function and use the same placeholder string as in other places.
2023-05-15 11:26:12 +02:00
Neil Roberts
a4ea4082e6
Use the translated shelf name in message when another edition is shelved
...
In the page for an edition, if the user has a different edition of the
same work on a shelf then a message is shown. Previously the name of the
status shelves wasn’t being translated.
2023-05-12 15:33:51 +02:00
Jascha Ezra Urbach
70a5153271
Merge pull request #2838 from bpeel/merge-works-command
...
Add a management command to merge works
2023-05-11 16:29:58 +02:00
Jascha Ezra Urbach
45127c9648
Merge pull request #2847 from bookwyrm-social/dependabot/pip/django-3.2.19
...
build(deps): bump django from 3.2.18 to 3.2.19
2023-05-11 16:27:19 +02:00
dependabot[bot]
1139d214a0
build(deps): bump django from 3.2.18 to 3.2.19
...
Bumps [django](https://github.com/django/django ) from 3.2.18 to 3.2.19.
- [Commits](https://github.com/django/django/compare/3.2.18...3.2.19 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 22:15:37 +00:00
Mouse Reeve
379db26300
Fixes user model tests for new param
2023-05-07 10:01:33 -07:00
Mouse Reeve
912e92bacd
Show all (not just open) reports when linked from user admin
2023-05-07 09:50:24 -07:00
Mouse Reeve
bfb29c0d74
Set remote servers synchonously where possible
2023-05-07 09:24:45 -07:00
Zach Flanders
ad1ddf2bff
Fixing batch size
2023-04-29 09:48:01 -05:00
Zach Flanders
490064cdf8
updating sort title migration
2023-04-29 09:43:55 -05:00
Hugh Rundle
5c9b962639
retain additional authors on form failure when editing book
2023-04-29 09:42:57 +10:00
Wesley Aptekar-Cassels
097cd3ed72
Optimize get_audience by only fetching IDs
...
Looking at the tracing data from this function in prod, only ~500ms is
spent in the database. My best guess for the rest of the time is
transferring and creating the user objects, which we don't use, since we
simply need the ID.
2023-04-28 12:51:44 -04:00
Zach Flanders
a1df116c58
Adding batch processing to the sort title migration
2023-04-27 15:30:52 -05:00
Zach Flanders
a6e5939ad2
adding sort title to edit book form
2023-04-26 23:05:03 -05:00
Neil Roberts
d80cefd416
Add a management command to merge works
2023-04-26 15:54:37 +02:00
Mouse Reeve
7211906697
Merge pull request #2837 from bookwyrm-social/revert-2798-celery-increase-ping-timeout
...
Revert "Increase Celery ping timeout for monitoring page"
2023-04-26 06:13:03 -07:00
Zach Flanders
3f205f1b10
Merge branch '2678' of https://github.com/zachflanders/bookwyrm into 2678
2023-04-25 21:06:13 -05:00
Zach Flanders
858a93e98a
fixing migration
2023-04-25 21:05:11 -05:00
Zach Flanders
f43d7f8c70
fixing test and other checks
2023-04-25 21:00:16 -05:00
Mouse Reeve
7bd9623b68
Revert "Increase Celery ping timeout for monitoring page"
2023-04-25 18:24:23 -07:00
Zach Flanders
1985c2d284
Merge branch 'main' into 2678
2023-04-25 19:47:07 -05:00
Zach Flanders
575e1bac4c
responding to review comments
2023-04-25 19:46:38 -05:00
Mouse Reeve
b77ae9e783
Ticks version number
2023-04-25 17:42:32 -07:00
Mouse Reeve
b92836ee7b
Merge pull request #2836 from bookwyrm-social/locales
...
Updates locales
2023-04-25 17:41:51 -07:00
Mouse Reeve
4e025b5105
Updates locales
2023-04-25 17:21:54 -07:00
Mouse Reeve
8fa89f5ece
Merge pull request #2821 from bpeel/merge-commands
...
Add management commands to merge a pair of editions or authors
2023-04-25 16:27:12 -07:00
Mouse Reeve
ac48457748
Merge pull request #2770 from bookwyrm-social/import-rating-parser
...
Catch value errors when parsing imported ratings
2023-04-25 16:21:25 -07:00
Mouse Reeve
cbb027c56c
Merge pull request #2778 from ranok/upstream_pr
...
Move the search request logic into the AbstractConnector
2023-04-25 16:20:24 -07:00
Zach Flanders
6b39052fcc
Adding test for sort_title population
2023-04-25 07:17:23 -05:00
Zach Flanders
a3013c6224
updating list view
2023-04-25 00:20:54 -05:00
Zach Flanders
21d9cb5fe5
updating shelf view
2023-04-25 00:15:58 -05:00
Zach Flanders
a94a4732ec
add support for title sort to ignore initial article
2023-04-24 23:29:55 -05:00
Mouse Reeve
718939834a
Fixes check on isbn list length in LT importer
2023-04-18 10:04:20 -07:00
Jacob Torrey
84834eb5d3
Run bw-dev black to fix formatting
...
Signed-off-by: Jacob Torrey <jacob@jacobtorrey.com>
2023-04-17 15:06:41 +00:00
Mouse Reeve
ed5471c7ab
Merge pull request #2832 from bookwyrm-social/fix-api/instance
...
Fix language constant to show correct lang in API
2023-04-16 19:10:38 -07:00
Jascha Urbach
0cae89b2b6
Update wellknown.py
...
./bw-dev black
2023-04-16 17:30:27 +02:00
Jascha Urbach
f3b1b1d8e4
Fix language constant to show correct lang in API
...
api/v1/instance had "en" hardcoded as language. This fix takes LANGUAGE_CODE from settings.py/.env and takes the first two letters as response.
2023-04-16 17:28:05 +02:00
Hugh Rundle
5f5886edea
Actually fix ensure_transient_values_persist call
...
oops
2023-04-16 19:58:53 +10:00
Hugh Rundle
6f025af99f
fix ensure_transient_values_persist call
2023-04-16 19:06:04 +10:00
Hugh Rundle
74f08323d1
Merge branch 'main' into 2571
2023-04-16 18:11:39 +10:00
Hugh Rundle
fb3cb229e9
Fixes #2571
...
Persist book.subjects and add_author when form validation fails.
This does not resolve the problem of cover image uploads being dropped because this is a broader problem and is covered separately in #2760
(we should investigate the plugin ` django-file-resubmit`)
2023-04-16 17:58:03 +10:00
Mouse Reeve
290b740392
Merge pull request #2805 from WesleyAC/stop-ignoring-task-results
...
Stop ignoring task results
2023-04-15 09:03:43 -07:00
Jascha Ezra Urbach
c918617a6a
Merge branch 'main' into import-rating-parser
2023-04-15 17:21:27 +02:00
Jascha Ezra Urbach
fadbc76aaa
Merge pull request #2789 from bpeel/translatable-shelf-name
...
Fix two places where the reading status shelf name wasn’t translated
2023-04-15 16:59:59 +02:00
Jascha Ezra Urbach
d788105eeb
Merge pull request #2814 from WesleyAC/bw-dev-pick-docker-compose-command
...
Choose installed docker compose command in bw-dev
2023-04-15 16:52:38 +02:00
Jascha Ezra Urbach
dfcc61a3e1
Merge pull request #2816 from bpeel/missing-translatable-strings
...
Fix a few strings that weren’t marked as translatable
2023-04-15 16:51:51 +02:00
Jascha Urbach
e28562949b
./bw.-dev black
...
get rid of the black error.
2023-04-15 16:31:15 +02:00
Neil Roberts
bd893e29de
Add management commands to merge editions and authors
2023-04-15 11:59:40 +02:00
Neil Roberts
71e2486d01
Move the merging code from deduplicate code to common module
...
That way it can be used in a new command to merge individual items.
2023-04-15 11:59:40 +02:00
Neil Roberts
2bbc9a16ad
Fix deduplicating books that are on a shelf or in a list
...
Previously when the deduplicate_book_data script tried to merge an
edition that was on a shelf or in a list then it would fail because when
the canonical book was added to the shelf or the list then it wouldn’t
set the extra fields of the linking table for the “through” model of the
field. These would end up defaulting to NULL, but that is not valid for
some of the fields in ShelfItem and ListItem so postgres wouldn’t accept
it.
To fix that, this patch makes it skip updating fields that have a
non-autogenerated linking table. The linking table would appear as a
separate model anyway so the book will be moved via that instead.
Fixes : #2817
2023-04-15 11:59:12 +02:00
Neil Roberts
3619d8960b
Mark two strings as translatable in the getting started questionnaire
2023-04-14 16:49:00 +02:00
Neil Roberts
f520d1b7f8
Make the text on the search button translatable
2023-04-14 16:40:50 +02:00
Hugh Rundle
a0b7112c9c
Merge branch 'main' into gts
2023-04-14 18:24:02 +10:00
Hugh Rundle
98726585f6
oops black
2023-04-14 18:20:06 +10:00
Hugh Rundle
8a8af4e909
fix tests and make pylint happier
2023-04-14 18:03:51 +10:00
Hugh Rundle
123628c66a
fix tests and formatting
2023-04-13 22:33:54 +10:00
Hugh Rundle
56a062d01f
pylint fixes
2023-04-13 20:21:35 +10:00
Hugh Rundle
c7adb62831
make get_legacy_key more DRY
2023-04-13 19:48:20 +10:00
Hugh Rundle
a6676718cb
formatting
2023-04-13 13:27:51 +10:00
Hugh Rundle
e3261c6b88
fix incoming GTS mentions and DMs
...
GoToSocial sends 'tag' values as a single object if there is only one
user mentioned, rather than an array with an object inside it.
This causes Bookwyrm to reject the tag since it comes through as a
dict rather than a list.
This commit fixes this at the point the incoming AP object is transformed
so that "mention" tags are turned into a mention_user.
2023-04-13 13:21:05 +10:00
Wesley Aptekar-Cassels
43b34610a6
Choose installed docker compose command in bw-dev
...
Docker is removing support for docker-compose, and it doesn't appear to
be possible to install it anymore. Instead, it has been replaced with
compose V2 which is a docker plugin called with 'docker compose' (no
hyphen). See https://docs.docker.com/compose/compose-v2/
Thanks to @Neriderc for noticing this in #2781 .
2023-04-11 21:51:31 -04:00
Wesley Aptekar-Cassels
8e25ae34d6
Merge pull request #2782 from ranok/list_fix
...
Small quality of life improvements to list handling
2023-04-11 12:31:58 -04:00
Wesley Aptekar-Cassels
843147e16b
Merge pull request #2808 from bpeel/series-no-author
...
Don't show the series as a link if the book has no author
2023-04-11 12:25:52 -04:00
Hugh Rundle
c450947eee
update comment to identify bug
2023-04-11 18:57:55 +10:00
Hugh Rundle
279fa3851b
add comment
2023-04-11 16:49:11 +10:00
Hugh Rundle
03f21b0f35
Use correct keyId with legacy fallback
...
Bookwyrm keyIds are at `userpath/#main-key`, however when signing AP objects we have claimed in the headers that the keyId is at `userpath#main-key`.
This is incorrect, and makes GoToSocial's strict checking break.
Simply updating the signatures to use the correct KeyId breaks legacy Bookwyrm's signature checks, becuase it assumes that the keyId path is the same as the user path plus a fragment.
This commit allows for either option, by sending the request a second time with the incorrect keyId if sending with the correct one causes an error.
2023-04-11 15:45:06 +10:00
Hugh Rundle
c9dcd4f7ad
Include initial '@' in mention tag name
...
GoToSocial expects the 'name' value of a mention tag to have an initial '@' symbol. Mastodon doesn't seem to mind either way.
2023-04-10 20:38:20 +10:00
Hugh Rundle
ef85394a16
Allow for tag value to be object
...
Previously the 'tag' value in an activitypub object was assumed to be a List (array).
Some AP software sends 'tag' as a Dict (object) if there is only a single tag value.
It's somewhat debatable whether this is spec compliant but we should aim to be robust.
This commit puts an individual mention tag inside a list if necessary.
2023-04-10 20:35:13 +10:00
Hugh Rundle
e112718d2d
clean up troubleshooting comment
2023-04-10 20:34:45 +10:00
Hugh Rundle
49758f2383
formatting fixes
2023-04-10 17:50:25 +10:00
Hugh Rundle
632e3844b9
Don't assume user id is key id minus fragment
...
Fixes #2801
Related to #2794
It is legitimate to use any url for the user's key id. We have been assuming this id is the user id plus a fragment (#key-id) but this is not always the case, notably in the case of GoToSocial it is at /key-id. This commit instead checks the remote user's information to see if the key id listed matches the key id of the message allegedly received from them.
Whilst troubleshooting this it also became apparent that there is a mismatch between Bookwyrm users' keyId and the KeyId we claim to be using in signed requests (there is a forward slash missing). Since everything after the slash is a fragment, this usually slips through but we should be consistent so I updated that.
2023-04-10 17:32:49 +10:00
Neil Roberts
41633090ba
Don't show the series as a link if the book has no author
...
The series link needs an author so if it doesn't have one, instead of
showing a server error let's just show the series details as plain text
without a link.
Fixes : #2797
2023-04-08 17:13:34 +02:00
Wesley Aptekar-Cassels
e9f26b7d50
Merge pull request #2800 from WesleyAC/fix-activitypub-request-accept-header
...
Fix Accept header for requesting ActivityPub objects
2023-04-08 11:02:27 -04:00
Wesley Aptekar-Cassels
1048638e30
Stop ignoring task results
...
This is essentially a revert of 9cbff312a
. The commit was at the advice
of the Celery docs for optimization, but I've since decided that the
downsides in terms of making things harder to debug (it makes Flower
nearly useless, for instance) are bigger than the upsides in performance
gain (which seem extremely small in practice, given how long our tasks
take, and the number of tasks we have).
2023-04-07 21:51:44 -04:00
Mouse Reeve
7272ca2564
Merge pull request #2785 from WesleyAC/optimize-get-audience
...
Optimize get_audience
2023-04-07 13:27:00 -07:00
Wesley Aptekar-Cassels
07b50a1453
Optimize get_audience
...
This avoids filtering for the user that made the post in the same query
as we use for other things, which should allow for better use of indices
in all cases. Previously, #2723 did some work on this that only worked
for some cases in HomeStream, but this code should work for all cases.
Related: #2720
2023-04-07 10:38:14 -04:00
Wesley Aptekar-Cassels
77264493eb
Override get_audience instead of _get_audience in LocalStream
...
I suspect this will make some future work simpler.
2023-04-07 10:37:02 -04:00
Mouse Reeve
5272786fbb
Merge pull request #2779 from WesleyAC/get_audience_more_telemetry
...
Add more information to get_audience telemetry
2023-04-07 07:12:41 -07:00
Mouse Reeve
4e3513bd41
Merge pull request #2784 from WesleyAC/add-status-cache-get-audience
...
Only call get_audience once in add_status
2023-04-07 06:43:04 -07:00
Mouse Reeve
035ca6fec2
Merge pull request #2795 from WesleyAC/add-postgres-instrumentation
...
Add automatic instrumentation to Postgres queries
2023-04-07 06:39:47 -07:00
Mouse Reeve
10f53d9809
Merge branch 'main' into get_audience_more_telemetry
2023-04-07 06:30:59 -07:00
Mouse Reeve
d033848d3f
Merge pull request #2780 from jsoref/spelling
...
Spelling
2023-04-07 06:30:16 -07:00
Mouse Reeve
22dc4cbcb8
Merge pull request #2791 from WesleyAC/add-rerank-users-telemetry
...
Add telemetry for SuggestedUsers rerank_user_task
2023-04-07 06:29:44 -07:00
Mouse Reeve
5bcd294f47
Merge pull request #2793 from WesleyAC/ignore-activity-allow-external-connections
...
Pass allow_external_connections through ignore_activity
2023-04-07 06:23:26 -07:00
Mouse Reeve
5895524a25
Merge pull request #2787 from WesleyAC/celery-clear-queues-form
...
Add form to remove tasks from Celery
2023-04-07 06:17:50 -07:00
Mouse Reeve
d11bb17698
Merge pull request #2798 from WesleyAC/celery-increase-ping-timeout
...
Increase Celery ping timeout for monitoring page
2023-04-07 06:13:07 -07:00
Mouse Reeve
206698238d
Merge pull request #2799 from WesleyAC/suggested-users-check-is-active
...
Don't include deleted users in suggested users query
2023-04-07 06:12:38 -07:00
Mouse Reeve
af3957d76b
Merge pull request #2786 from WesleyAC/celery-raise-network-timeout
...
Increase network timeout in Celery tasks
2023-04-07 06:09:16 -07:00
Mouse Reeve
a8235fc3a2
Moves the stray "e" back to "mobile"
2023-04-07 06:04:47 -07:00
Wesley Aptekar-Cassels
912d0a0149
Fix Accept header for requesting ActivityPub objects
...
This is the header described in the ActivityPub spec, which should fix
some federation problems with GoToSocial and potentially other picky
services.
Related: #2794 , superseriousbusiness/gotosocial#1676
2023-04-07 05:57:13 -04:00
Wesley Aptekar-Cassels
c89da1bd66
Don't include deleted users in suggested users query
...
Related: #2727
2023-04-07 04:18:36 -04:00
Wesley Aptekar-Cassels
3709f5c7a9
Increase Celery ping timeout for monitoring page
...
This should prevent some transient alerts.
2023-04-07 03:18:43 -04:00
Wesley Aptekar-Cassels
6986fc9025
Add form to remove tasks from Celery
2023-04-07 03:16:14 -04:00
Wesley Aptekar-Cassels
61453d48e6
Add automatic instrumentation to Postgres queries
...
This enables automatic instrumentation of Postgres queries when
OpenTelemetry instrumentation is enabled, which will help with debugging
performance problems.
2023-04-07 01:58:49 -04:00
Wesley Aptekar-Cassels
b574a12fff
Pass allow_external_connections through ignore_activity
...
Previously, ignore_activity could unexpectedly make a outgoing HTTP
connection, leading to unwanted latency, particularly when called via
ActivityObject.to_model, which had the allow_external_connections
parameter already.
Related: #2717
2023-04-06 23:37:49 -04:00
Wesley Aptekar-Cassels
4e09391b2e
Add telemetry for SuggestedUsers rerank_user_task
...
Related: #2727
2023-04-06 12:22:39 -04:00
Neil Roberts
9092c9c80c
Add a translatable name for the "stopped-reading" status shelf
2023-04-06 16:03:35 +02:00
Neil Roberts
b0f90d05f2
Move the shelf names to a dict instead of a chain of if statements
...
The main reason to do this is that if we try to add another name then
pylint will complain that there are too many return statements. It might
be slightly faster too.
If I understand correctly it doesn’t matter that the _ function is being
called at module load time because it is mapped to gettext_lazy so the
actual translation will be done when the string is used.
2023-04-06 16:02:24 +02:00
Neil Roberts
36c14655ec
Use the translated shelf name in a book’s shelf list
...
Previously in the list of shelves on the page for a book it was always
using the English name of the shelf for the shelf of the reading status.
2023-04-06 15:58:20 +02:00
Mouse Reeve
4b1012b185
Merge pull request #2788 from WesleyAC/fix-bw-dev-down-help-text
...
Fix help text for `bw-dev down`
2023-04-06 06:09:23 -07:00
Wesley Aptekar-Cassels
29ac34cb92
Fix help text for bw-dev down
2023-04-06 05:57:21 -04:00
Wesley Aptekar-Cassels
f91fcd518a
Increase network timeout in Celery tasks
...
Since Celery tasks don't affect interactive latency, we should have a
more generous timeout. This also allows admins to set the timeout for
Celery and the web frontend separately, without breaking backwards
compatibility with the previous environment variable.
2023-04-06 01:21:27 -04:00
Wesley Aptekar-Cassels
776c5526c8
Remove ActivityStream.get_stores_for_object
...
I think this makes the code somewhat more understandable.
2023-04-05 23:20:47 -04:00
Wesley Aptekar-Cassels
7a93b5c315
Only call get_audience once in add_status
...
This is by far the most expensive part of this task, so this should
double the speed in the increment_unread case.
Related: #2720
2023-04-05 22:11:49 -04:00
Wesley Aptekar-Cassels
78607a0c3e
Remove get_stores_for_object abstract method
...
The implementations still have and use this, we've just removed this
concept from the RedisStore abstraction, which simplifies things
somewhat.
2023-04-05 22:07:38 -04:00
Wesley Aptekar-Cassels
68c6a9e748
Rename remove_object_from_related_stores
...
This makes the stores argument required, making it simpler to change the
code.
2023-04-05 22:06:09 -04:00
Wesley Aptekar-Cassels
8053f49acc
Always pass stores to remove_object_from_related_stores
2023-04-05 21:48:24 -04:00
Wesley Aptekar-Cassels
93bd66ad3e
Refactor to delete add_object_to_related_stores
...
This is working towards some optimizations.
2023-04-05 21:48:22 -04:00
Wesley Aptekar-Cassels
9c54030b61
Add add_object_to_stores function
...
This should enable some useful refactoring to allow us to cache some
results of expensive queries better.
2023-04-05 21:44:59 -04:00
Jacob Torrey
011844b7ac
Small quality of life improvements to list handling
...
Signed-off-by: Jacob Torrey <jacob@jacobtorrey.com>
2023-04-05 16:17:28 +00:00
Josh Soref
359228127d
spelling: wyrm
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
ba7f0fce71
spelling: whenever
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
2a914f98b7
spelling: versions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
dfae27ca32
spelling: updated
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
459b74294d
spelling: uniqueness
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7170e8972d
spelling: uneventfully
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
42e78b14e9
spelling: translation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
2d4a42ceba
spelling: suggestions
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
63dbb6a291
spelling: successfully
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
ffd035f25a
spelling: stores
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9dc3cdca5d
spelling: statuses
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
e4677eb6fa
spelling: someone
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
4607d30cad
spelling: signatures
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
18fcea35da
spelling: should
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
35f1d043f4
spelling: separate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7a6e249614
spelling: sensitivity
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
02bf018271
spelling: search
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
2fb771f0de
spelling: sanitize
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
4c9408d772
spelling: revoke
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
e5663f97c5
spelling: remove
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
182a722a55
spelling: recurring
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
e7d8692836
spelling: receiving
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
0b14d3fddf
spelling: receive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
55b6d63774
spelling: quotation
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3526d9fd19
spelling: progress
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
764bc0c204
spelling: produce
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
27f025bc39
spelling: presence
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
1fdf5a7a39
spelling: physical
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
44b4b10eb8
spelling: password
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9cddea11c7
spelling: paginate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7b59f38cc8
spelling: owner
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
c009f6e4df
spelling: overridden
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
56f38c178c
spelling: ordered
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
d9a305a0f2
spelling: optimizequality
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
d640bc9b1c
spelling: nonexistent
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
40632b2486
spelling: multiple
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
0b30373bd3
spelling: mention'd
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
c216937dc4
spelling: massively
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
1320108703
spelling: markdown
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
e8894b159f
spelling: irrelevant
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
649c782782
spelling: inheritance
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
d2d087dcb7
spelling: identifiername
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7ec56505ea
spelling: having a
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
cee2de41ca
spelling: handling
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7f8279fe54
spelling: format
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
802a150c76
spelling: flex
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9c5d588630
spelling: fields
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
050cd583df
spelling: expiration
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3b9828c0fc
spelling: existing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
445cb60f2c
spelling: example
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
b949259c57
spelling: embedded
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3850183e95
spelling: doesn't
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
8d4b69927b
spelling: directly
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
f6a6cb281b
spelling: different
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
c92cdec36e
spelling: default
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
45a1457a4f
spelling: deduplications
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9cad11b2b3
spelling: deduplication
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
c2022acf67
spelling: deduplicate
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9ea5a3b89c
spelling: data
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
cfe388896b
spelling: dashboard
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
6b0e51caf4
spelling: currently
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
be31a4b576
spelling: creating
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
72c292d2c3
spelling: breakpoints
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
fb74c1977e
spelling: because
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
54285e4bcd
spelling: auxiliary
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
b3edeca295
spelling: associated
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
319be60c80
spelling: assigning
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
06fa1adc27
spelling: arbitrary
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
94c573b469
spelling: appear
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:47 -04:00
Wesley Aptekar-Cassels
118b5bfda7
Add more information to get_audience telemetry
...
This will assist with debugging #2720 , by letting us see which kinds of
requests take the longest.
2023-04-04 14:23:15 -04:00
Jacob Torrey
f9c75a43ae
Fixing pylint issues
...
Signed-off-by: Jacob Torrey <jacob@jacobtorrey.com>
2023-04-04 16:46:32 +00:00
Jascha Ezra Urbach
e909cbfd4a
Merge pull request #2774 from fwalloe/fwalloe-patch-1
2023-04-04 18:38:56 +02:00
Jacob Torrey
797d339132
Move the search request logic into the AbstractConnector to allow for more flexibility
...
Signed-off-by: Jacob Torrey <jacob@jacobtorrey.com>
2023-04-04 16:03:37 +00:00
Josh Soref
def58a3e18
spelling: activity
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 11:14:03 -04:00
Fredrik Walløe
ac17876cb6
Merge branch 'main' into fwalloe-patch-1
2023-04-04 12:15:52 +02:00
Fredrik Walløe
0495da07a4
Update bw-dev
...
Added 'down' to list of of commands
2023-04-04 12:08:39 +02:00
Mouse Reeve
6e427cf372
Update version number
2023-04-03 21:31:41 -07:00
Fredrik Walløe
b1962ef75d
Added command 'down', to bring down containers
...
Added the command 'down', which can be used to bring down the docker containers. Equivalent to running 'docker-compose down'
2023-04-01 11:23:27 +02:00
Jascha Ezra Urbach
d35b1d91ba
Merge pull request #2766 from bookwyrm-social/redirect-in-admin
...
Uses referer redirect for some admin views
2023-04-01 11:06:42 +02:00
Hugh Rundle
499ff58a65
Merge pull request #2698 from rkmdCodes/main
...
Improving Feed link UI colours
2023-04-01 14:27:04 +11:00
Jascha Ezra Urbach
a68f58e48c
Merge pull request #2773 from bookwyrm-social/dependabot/pip/redis-4.5.4
...
Bump redis from 4.5.3 to 4.5.4
2023-03-31 16:42:12 +02:00
dependabot[bot]
282f41bdb8
Bump redis from 4.5.3 to 4.5.4
...
Bumps [redis](https://github.com/redis/redis-py ) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-31 14:28:59 +00:00
Mouse Reeve
c77436fc12
Catch value errors when parsing imported ratings
2023-03-29 20:15:09 -07:00
Mouse Reeve
74df7511e7
Merge pull request #2768 from bookwyrm-social/grammar
...
Fixes effect/affect error
2023-03-29 18:46:14 -07:00
Mouse Reeve
b5d6c94885
Merge pull request #2767 from bookwyrm-social/link-mention-clash
...
Clashes between links and mentions
2023-03-29 17:06:11 -07:00
Mouse Reeve
b76da26c98
Fixes iteration over mentions dict
2023-03-29 10:13:44 -07:00
Mouse Reeve
f1640399e3
Python formatting
2023-03-29 10:13:44 -07:00
Mouse Reeve
f2ab8c2fe2
Fixes effect/affect error
2023-03-29 10:04:23 -07:00
Mouse Reeve
8cf7c5c392
Merge pull request #2750 from WesleyAC/get-audience-telemetry
...
Add more detailed telemetry for get_audience
2023-03-29 09:29:05 -07:00
Mouse Reeve
5ed46abcee
Merge branch 'main' into link-mention-clash
2023-03-29 09:25:34 -07:00
Mouse Reeve
935f8b0197
Merge pull request #2763 from bookwyrm-social/esperanto
...
Adds Esperanto locale
2023-03-29 09:24:32 -07:00
Mouse Reeve
fe856bcf2c
Updates regex on mentions and hashtags
2023-03-29 09:20:58 -07:00
Mouse Reeve
4fcb01805e
Fixes test comparison string
2023-03-29 09:14:30 -07:00
Mouse Reeve
8a0e88db83
Adds test for links with # symbols
2023-03-29 08:39:41 -07:00
Mouse Reeve
42dd199084
Unit test that identifies clashes between links and mentions
2023-03-29 08:28:45 -07:00
Mouse Reeve
1d383cecff
Compiles locales
2023-03-29 07:59:42 -07:00
Rajat Dwivedi
38e3f2e1b8
Merge branch 'main' into main
2023-03-29 16:37:57 +05:30
Rajat Dwivedi
33c13608a8
Refixing light and dark themes
2023-03-29 10:56:08 +00:00
Mouse Reeve
56cc0eb80f
Adds Esperanto locale
2023-03-28 15:03:40 -07:00
Mouse Reeve
ab1f08b39d
Merge pull request #2761 from bookwyrm-social/dependabot/pip/redis-4.5.3
...
Bump redis from 3.4.1 to 4.5.3
2023-03-27 18:58:40 -07:00
dependabot[bot]
e9526ecaea
Bump redis from 3.4.1 to 4.5.3
...
Bumps [redis](https://github.com/redis/redis-py ) from 3.4.1 to 4.5.3.
- [Release notes](https://github.com/redis/redis-py/releases )
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES )
- [Commits](https://github.com/redis/redis-py/compare/3.4.1...v4.5.3 )
---
updated-dependencies:
- dependency-name: redis
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 21:57:11 +00:00
Mouse Reeve
b2801d44a5
Merge pull request #2752 from lostfictions/patch-1
...
Add message about shelf privacy in user settings
2023-03-27 06:21:33 -07:00
Mouse Reeve
30a3096b25
Merge pull request #2749 from bookwyrm-social/redirects
...
Add helper to refer views back to http referers safely
2023-03-27 06:20:26 -07:00
Jascha Ezra Urbach
bbed08e182
Merge branch 'main' into main
2023-03-21 05:49:52 +01:00
s
a70417a07f
Add message about shelf privacy in user settings
2023-03-20 22:10:50 -04:00
Wesley Aptekar-Cassels
7efbdb1865
Add more detailed telemetry for get_audience
...
This is still slow in some cases, despite #2723 , so this information
should give useful data about how it could be optimized more.
This also adds some abstraction around getting the tracer, just to
follow the advice in the OpenTelemetry documentation not to use __name__
directly to set the tracer name. The advice is ignored in most of their
examples, so it probably doesn't matter, but IDK, seems reasonable to
try to follow it.
Related: #2720
2023-03-20 20:51:20 -04:00
Wesley Aptekar-Cassels
ef64fedbd9
Only enable OTLP exporter when configured
...
This wasn't a problem in the past, since we only enabled automatic
instrumentation when this was set up, but it does cause errors when
trying to add manual instrumentation.
2023-03-20 20:51:20 -04:00
Mouse Reeve
e9d08e7424
Merge pull request #2744 from WesleyAC/opentelemetry-console-exporter
...
Add OpenTelemetry console exporter option
2023-03-20 14:26:24 -07:00
Mouse Reeve
89bb541bef
Merge pull request #2704 from tebriel/azure-support
...
Enable Azure BlobStorage as an alternative to AWS S3
2023-03-20 14:12:57 -07:00
Mouse Reeve
6f1e80be60
Merge pull request #2741 from WesleyAC/optimize-csv-export-query
...
Optimize CSV export query
2023-03-20 14:11:46 -07:00
Mouse Reeve
018cadf0cc
Merge pull request #2746 from WesleyAC/env-var-improvements
...
Env var improvements
2023-03-20 14:04:11 -07:00
Mouse Reeve
05e154f93e
Uses referer redirect for some admin views
2023-03-20 13:58:20 -07:00
Mouse Reeve
0cebc4388c
Adds unit tests for referer helper
2023-03-20 12:47:21 -07:00
Mouse Reeve
219f78755f
Fixes args in list view redirect
2023-03-20 11:15:27 -07:00
Mouse Reeve
4e9fad2091
Updates views that currently use the validator to use the redirect
...
helper
2023-03-20 10:27:52 -07:00
Mouse Reeve
2de115fc1e
Add helper to refer views back to http referers safely
...
In most cases, we want to return back to where we came from after
performing an action. It's not safe to return to an arbitrary referer,
so this streamlines using the util validator to verify the redirect and
fall back on regular redirect params if the referer is outside our
domain.
2023-03-20 10:25:38 -07:00
Rajat Dwivedi
349c61f698
Updated the _tabs.scss file
2023-03-20 04:11:44 +00:00
Wesley Aptekar-Cassels
63ab3abe67
Add setting for OpenTelemetry console exporter
...
This is primarily useful for debugging changes to the OpenTelemetry
setup.
2023-03-18 15:47:30 -04:00
Wesley Aptekar-Cassels
fea3b67a55
Raise error if using default SECRET_KEY in production
2023-03-18 15:44:20 -04:00
Wesley Aptekar-Cassels
5bb5d120f0
Set default FLOWER_PORT
2023-03-18 15:35:41 -04:00
Wesley Aptekar-Cassels
b3d3de5374
Use typecasting env functions
...
Many of these environment variables were probably not actually usable,
since they would be strings if set in the env file. Using the
typecasting functions fixes this, and generally shows the intention of
the code more clearly.
2023-03-18 15:35:08 -04:00
Philip James
6b6ed23e25
Merge pull request #5 from bookwyrm-social/main
...
Update from upstream
2023-03-16 17:18:01 -07:00
Wesley Aptekar-Cassels
7bb4e21a36
Bump opentelemetry versions
...
This isn't actually required for anything, just good practice to keep
things up to date.
2023-03-16 13:57:19 -04:00
Wesley Aptekar-Cassels
60fee54da9
Optimize CSV export query
...
Splitting this into five separate queries avoids the large join that
prevents us from using indexes, and requires materializing to disk.
Fixes : #2157 (hopefully)
2023-03-13 15:45:21 -04:00
Mouse Reeve
ded3f469ef
Merge pull request #2738 from bookwyrm-social/update-version
...
Update version number and js cachebuster
2023-03-13 08:16:24 -07:00
Mouse Reeve
177131f53f
Merge pull request #2739 from bookwyrm-social/locales
...
Updates locales
2023-03-13 08:16:12 -07:00
Mouse Reeve
ae164ee6e1
Updates locales
2023-03-13 07:56:25 -07:00
Mouse Reeve
9c1aaadab3
Update verison number and js cachebuster
2023-03-13 07:52:28 -07:00
Mouse Reeve
a73a461867
Merge pull request #2737 from WesleyAC/fix-500-page-css
...
Use context processor for 500 page
2023-03-13 07:43:29 -07:00
Wesley Aptekar-Cassels
0b9e4d617e
Use context processor for 500 page
...
By default, Django doesn't run any context processors for server errors,
to make the error path as simple as possible. However, this has the
downside that our template does not load correctly. To fix this, I added
a custom 500 error handler, which will run the context processor.
Fixes : #2736
2023-03-13 03:47:23 -04:00
Mouse Reeve
cca20f4834
Merge pull request #2735 from bookwyrm-social/migration
...
Adds merge migration
2023-03-12 17:34:17 -07:00
Mouse Reeve
7ffe5b9440
Adds merge migration
2023-03-12 16:43:06 -07:00
Mouse Reeve
12af5992a3
Merge pull request #2524 from chdorner/feature/tag-support
...
Initial hashtag support
2023-03-12 16:37:39 -07:00
Mouse Reeve
48889ee6c4
Merge pull request #2695 from chdorner/book-edit-form-validation-notification
...
Show notification banner on top of form when book failed to update
2023-03-12 16:33:34 -07:00
Mouse Reeve
2e7eb0f3ce
Merge pull request #2702 from Ryuno-Ki/lazyload-images
...
Add attributes to images to hint async load
2023-03-12 16:31:27 -07:00
Mouse Reeve
d253a61f02
Merge pull request #2708 from WesleyAC/portable-hashbangs
...
Use more portable hashbang for dev scripts.
2023-03-12 16:29:10 -07:00
Mouse Reeve
863ec1602a
Merge pull request #2710 from WesleyAC/celery-env-vars
...
Add env vars for celery concurrency and time limit
2023-03-12 16:27:02 -07:00
Mouse Reeve
6345beb90d
Merge pull request #2714 from WesleyAC/celery-ignore-results
...
Ignore Celery task results
2023-03-12 16:26:20 -07:00
Mouse Reeve
84b8a5c433
Merge pull request #2713 from WesleyAC/buffer-csv-export
...
Change CSV export to buffer instead of streaming
2023-03-12 16:17:53 -07:00
Mouse Reeve
d17190fae3
Merge pull request #2718 from WesleyAC/broaden-dashboard-http-except
...
Broaden except section for HTTP request in dashboard
2023-03-12 16:10:01 -07:00
Mouse Reeve
600340771a
Merge pull request #2723 from WesleyAC/get-audience-perf
...
Improve `HomeStream.get_audience` performance
2023-03-12 16:08:54 -07:00
Mouse Reeve
352ba972c5
Merge pull request #2724 from WesleyAC/fix-bw-dev-dbshell
...
Fix dbshell command
2023-03-12 15:45:45 -07:00
Mouse Reeve
c28d523e6f
Merge branch 'main' into get-audience-perf
2023-03-12 15:40:53 -07:00
Mouse Reeve
efe3cb9461
Merge pull request #2726 from WesleyAC/optimize-add-remove-book-statuses-task
...
Optimize add/remove book statuses task queries
2023-03-12 15:36:27 -07:00
Wesley Aptekar-Cassels
2a5f722f6e
Optimize add/remove book statuses task queries
...
The queries as they previously existed required joining together 12
different tables, which is extremely expensive. Splitting it into four
queries means that the individual queries can effectively use the
indexes we have, and should be very fast no matter how many statuses are
in the database.
Removing the .distinct() call is fine, since we're adding them to a set
in Redis anyways, which will take care of the duplicates.
It's a bit ugly that we now make four separate calls to Redis (this
might result in things being slightly slower in cases where there are an
extremely small number of statuses), but doing things differently would
result in significantly more surgery to the existing code, so I've opted
to avoid that for the moment.
Fixes : #2725
2023-03-09 15:26:03 -05:00
Wesley Aptekar-Cassels
cc610372ca
Fix dbshell command
...
dbshell needs to be run in a already-running container, thus exec rather
than run is the correct docker-compose command.
2023-03-09 02:02:56 -05:00
Wesley Aptekar-Cassels
56243f6529
Optimize HomeStream.get_audience
...
This splits HomeStream.get_audience into two separate database queries,
in order to more effectively take advantage of the indexes we have.
Combining the user ID query and the user following query means that
Postgres isn't able to use the index we have on the userfollows table.
The query planner claims that the userfollows query should be about 20
times faster than it was previously, and the id query should take a
negligible amount of time, since it's selecting a single item by primary
key.
We don't need to worry about duplicates, since there is a constraint
preventing a user from following themself.
Fixes : #2720
2023-03-09 00:50:24 -05:00
Wesley Aptekar-Cassels
23698dafe5
Change get_audience to return list of user IDs
...
This will make it simpler to implement various optimizations.
2023-03-09 00:50:24 -05:00
Wesley Aptekar-Cassels
41e14bdfaf
Change unread_by_status_type_id to take user ID
...
Same reason as in prior commit.
2023-03-09 00:50:24 -05:00
Wesley Aptekar-Cassels
653e8ee81b
Change unread_id to take user ID
...
Same reason as described in the prior commit.
2023-03-09 00:50:24 -05:00
Wesley Aptekar-Cassels
5446869c38
Change stream_id to take user ID
...
Anywhere we have a user object, we can easily get the user ID in the
caller, and this will allow us more flexibility in the future to
implement optimizations that involve knowing a user ID without querying
the database for the user object.
2023-03-09 00:50:16 -05:00
Mouse Reeve
e4edef03c5
Merge pull request #2721 from verymilan/verymilan-patch-1
...
fix typo in systemd example
2023-03-08 18:39:05 -08:00
Wesley Aptekar-Cassels
50a81bdfdd
Change CSV export to buffer instead of streaming
...
The idea behind a streaming CSV export was to reduce the amount of
memory used, by avoiding building the entire CSV file in memory before
sending it to the client. However, it didn't work out this way in
practice: the query objects that were created to represent each line
caused Postgres to generate a very large (~200MB on bookwyrm.social)
temp file, not to mention the memory being used by the Query object
likely being similar to, if not larger than that used by the finalized
CSV row.
While we should in the long term run our CSV exports as a Celery task,
this change should allow CSV exports to work on large servers without
causing disk-space problems.
Fixes : #2157
2023-03-08 21:37:56 -05:00
Mouse Reeve
5c109a2566
Merge branch 'main' into celery-env-vars
2023-03-08 18:37:03 -08:00
Mouse Reeve
2f737efeff
Merge pull request #2709 from WesleyAC/improve-polling-backoff
...
Improve polling algorithm
2023-03-08 18:36:19 -08:00
Wesley Aptekar-Cassels
4af4f30cde
Broaden except section for HTTP request in dashboard
...
get_data can return exceptions other than ConnectorException, and when
it does, we want to simply not show the update section, rather than
crashing.
Related: #2717
2023-03-08 21:32:41 -05:00
Chris Moultrie
86675ee944
Example Settings and run black
2023-03-08 14:48:04 -05:00
Milan
a6bc53a936
fix typo in systemd example
...
...which prevented imports from running
2023-03-08 19:58:58 +01:00
Wesley Aptekar-Cassels
9cbff312a5
Ignore Celery task results
...
Since we don't use the results of our Celery tasks (all of them return
None implicitly), it's prudent to set the ignore_result flag, for a
potential performance improvement. See the Celery docs for details [1].
We could do this with the global CELERY_IGNORE_RESULT setting, but it
offers more flexibility if we want to use task results in the future to
set it on a per-task basis.
[1]: https://docs.celeryq.dev/en/stable/userguide/tasks.html#ignore-results-you-don-t-want
2023-03-08 02:12:13 -05:00
Mouse Reeve
c3109f1238
Merge branch 'main' into improve-polling-backoff
2023-03-07 13:57:00 -08:00
Mouse Reeve
3c57797852
Merge branch 'main' into portable-hashbangs
2023-03-07 13:56:44 -08:00
Mouse Reeve
1350e91971
Merge branch 'main' into book-edit-form-validation-notification
2023-03-07 13:56:23 -08:00
Mouse Reeve
00666c4f52
Merge pull request #2711 from bookwyrm-social/fix/reorder-head-migration
...
Reorder head migration
2023-03-07 13:56:04 -08:00
Christof Dorner
ee0a89faf2
Reorder head migration
2023-03-07 22:31:58 +01:00
Christof Dorner
bc0b291d36
Show notification banner on top of form when book failed to update
2023-03-07 21:58:12 +01:00
Wesley Aptekar-Cassels
26e34ddffa
Add env vars for celery concurrency and time limit
2023-03-07 13:52:02 -05:00
Wesley Aptekar-Cassels
abb5dc857e
Use more portable shebang for dev scripts
...
/bin/bash, while common, is not part of the unix standard, and does not
exist on some operating systems (such as NixOS). /usr/bin/env, on the
other hand, is standardized, and thus should exist on all systems.
2023-03-07 13:39:18 -05:00
Wesley Aptekar-Cassels
43ad3d0c15
Improve polling algorithm
...
The existing polling code had a few problems:
* It started the timer for a new request when the first request was
sent, rather than when a response was received.
* It increased the delay regardless of whether the response was a
success or a failure.
This commit changes it to a more standard exponential backoff system,
where it starts with a 5 minute ± 30 second delay, and uses that same
delay until it hits an error, at which point the delay is increased by
10%. Once it receives a successful response again, the delay is reset to
the default.
I suspect this should be nicer on the server, since it avoids the
initial sending of many requests. After about half an hour of leaving
the page open, the request rate for this new code will be higher than
that of the old code, so it's possible that this may cause problems, but
I think that a five-minute request frequency should be pretty reasonable.
2023-03-07 13:15:52 -05:00
Mouse Reeve
05a303ea18
Merge pull request #2690 from bookwyrm-social/link-domain-notifications
...
Create notifications for link domains that need approval
2023-03-07 08:43:14 -08:00
Mouse Reeve
1612217eaa
Merge pull request #2696 from bookwyrm-social/chronological-pagination
...
Only use chronological pagination sometimes
2023-03-07 08:42:43 -08:00
Christof Dorner
9ca9883e0b
Enable finding existing hashtags case-insensitive
...
We should store hashtags case-sensitive, but ensures that an existing
hashtag with different case are found and re-used. for example,
an existing #BookWyrm hashtag will be found and used even if the
status content is using #bookwyrm.
2023-03-07 13:16:45 +01:00
Christof Dorner
f3334b1550
Render hashtag links with data-mention="hashtag" attribute
2023-03-07 13:16:45 +01:00
Christof Dorner
276b255f32
Post-process status.content field to change hashtag URLs
...
Since the status content already contains rendered HTML when we receive an
ActivityPub inbox message it contains links to the mentioned hashtags on the
originating instance.
To fix this on the receiving instance we need to post-process the status content
after successfully storing the status and its many-to-many fields (the one we're
is the `mention_hashtags`). Post-processing means that we run a regex against the
content to find the anchor tags linking to the originating hashtag and replace the
`href` attribute with the URL to the hashtag page on the receiving (local) instance.
2023-03-07 13:16:45 +01:00
Christof Dorner
0fd49d2aea
Mark Hashtag.name field as deduplication field
...
This ensures that when an existing hashtag comes in through ActivityPub federation,
it correctly finds the local one, instead of creating duplicate hashtags.
2023-03-07 13:11:27 +01:00
Christof Dorner
e8a306437f
Reorder migrations to add hashtag one at the end
2023-03-07 13:11:27 +01:00
Christof Dorner
824d4207dc
Try and fix a flaky test
...
Same case as with #2496 , for some reason the URL to the cover just ends with `test.jpg`
2023-03-07 12:59:32 +01:00
Christof Dorner
499aace9fb
Add basic view listing activities from a given hashtag
2023-03-07 12:59:32 +01:00
Christof Dorner
11640f986e
Import hashtags from activitypub statuses
2023-03-07 12:59:31 +01:00
Christof Dorner
ba0fcccfc5
Link hashtags in status content
2023-03-07 12:55:36 +01:00
Christof Dorner
c68304a99b
Parse hashtags and store them in CreateStatus view
2023-03-07 12:55:36 +01:00
Philip James
c878e11913
Merge pull request #4 from bookwyrm-social/main
...
Merge Updates from Upstream
2023-03-06 20:39:50 -08:00
Mouse Reeve
c402433587
Merge pull request #2683 from bookwyrm-social/resolve-local-tasks-synchronously
...
Attempt to complete inbox requests synchronously
2023-03-06 19:20:16 -08:00
Chris Moultrie
f8e60f4a89
Enable Azure BlobStorage as an alternative to AWS S3
...
This adds a new storage backend for Azure BlobStorage, I'm running this patch in Azure Kubernetes
hosting all my assets in Azure BlobStorage and it's been stable enough I thought I should commit
this back upstream.
2023-03-05 12:08:16 -05:00
André Jaenisch
9c92ba1698
Add attributes to images to hint async load
...
This was suggested on Matrix a while ago but I only found the time now to move forward with it.
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2023-03-01 14:14:42 +01:00
Rajat Dwivedi
7caa60dba5
Improving Feed link UI colours
2023-02-27 20:14:32 +05:30
Hugh Rundle
66ce298001
Merge pull request #2657 from chris-y/totp-window
...
Expand TOTP validity window
This changes the default window to allow 2 codes (60 seconds) on either side. Admins can change this by setting a different `TWO_FACTOR_LOGIN_VALIDITY_WINDOW` value in `.env`
2023-02-27 18:46:53 +11:00
Hugh Rundle
bba0d09fa4
Merge branch 'main' into totp-window
2023-02-27 18:21:39 +11:00
Hugh Rundle
3a67727a9a
Merge pull request #2638 from Giebisch/page-range
...
Page Range
2023-02-27 17:39:42 +11:00
Christof Dorner
d1110630db
Use chronological pagination on user profile activity lists
2023-02-26 11:24:00 +01:00
Mouse Reeve
99fc2b7a36
Only use chronological pagination sometimes
...
The timeline uses chronological buttons, but other paginated pages do
not (by default). This also reversed the chronology.
2023-02-25 15:56:58 -08:00
Christof Dorner
233cf809dd
Merge pull request #2694 from kangangi/replace_next_previous
...
Replace Next and Previous with Older and Newer
2023-02-25 22:34:05 +01:00
wanjiku
b4e388a975
Replace Next and Previous with Older and Newer
2023-02-24 11:11:55 +03:00
Giebisch
43fe433133
Quotation same start and endposition
2023-02-23 18:40:20 +01:00
Mouse Reeve
268946a77c
Adds missing template and migration files
2023-02-22 10:46:01 -08:00
Mouse Reeve
2470a0fd1c
Create notifications for link domains that need approval
2023-02-22 10:20:07 -08:00
Mouse Reeve
e59b650ff9
Merge pull request #2689 from bookwyrm-social/discover-page-test
...
Improves discover page test so it catches errors
2023-02-22 09:39:15 -08:00
Mouse Reeve
46fe65c3bb
Merge branch 'main' into discover-page-test
2023-02-22 09:19:20 -08:00
Mouse Reeve
fad8e8bdb8
Merge pull request #2687 from chdorner/configurable-csp
...
Add config variable for additional CSP hosts
2023-02-22 08:57:56 -08:00
Mouse Reeve
d57ebe43af
Merge pull request #2688 from 0x29a/fix-discovery-page
...
fix: missing expand variable
2023-02-22 08:53:36 -08:00
Mouse Reeve
0a07607240
Improves discover page test so it catches errors
...
Without `select_subclasses` in the mock, it wasn't actually collecting
any statuses to display, so errors on that view weren't caught in this
test.
2023-02-22 08:43:13 -08:00
0x29a
9b94c1c288
fix: missing expand variable
2023-02-22 17:25:11 +01:00
Mouse Reeve
d2e590a3c2
Merge pull request #2685 from bookwyrm-social/broadcast-queue
...
Use a separate queue for broadcasts
2023-02-22 08:20:33 -08:00
Christof Dorner
3814cb5b58
Add config variable for additional CSP hosts
2023-02-21 22:02:52 +01:00
Christof Dorner
5df0ead776
Merge pull request #1753 from nycterent/security/key-size
...
increasing rsa key size
2023-02-20 22:37:02 +01:00
Mouse Reeve
b167364c5c
Use a separate queue for broadcasts
...
I think this will go a long way to solve the federation delay problems
we're seeing on b.s. I'm not sure at what point adding more queues will
create more problems than it solves, but I do think in this case the
queues are out of balance and moving broadcasts (which are the most
common type of `medium_priority` task at the moment) to their own queue
will be an improvement.
2023-02-20 12:58:41 -08:00
Martynas Sklizmantas
2093c4760b
increasing rsa key size
2023-02-20 21:51:50 +01:00
Mouse Reeve
216be2aeea
Fixes pylint complaints
...
"fixes" as in silences, sorry
2023-02-20 12:24:53 -08:00
Mouse Reeve
12ed0f46f3
Fixes mocks for tests
2023-02-20 12:23:18 -08:00
Mouse Reeve
0211dee0ff
Avoid unnecessary errors when a remote re-sends an Accept
2023-02-20 11:09:42 -08:00
Mouse Reeve
779d2b0694
Attempt to complete inbox requests synchronously
...
When an inbox activity comes in from another fediverse instance, the
behavior prior to this commit was always to immediately give a 200
response to the external server and then create a celery activity
(usually in the MEDIUM_PRIORITY queue) to complete it.
Instead, this would receive a request and try to complete it without
making any http requests (which would make the request take too long to
process). If an external request is required to complete the activity, a
task is created and added to the queue.
Ideally, this will cause some tasks to happen very promptly, and reduce
the load on celery, which would help queued tasks happen more quickly as
well.
One downside is that this will make completing http requests from
external servers slowing (since it's doing a bunch of thinking before
responding).
2023-02-20 11:05:18 -08:00
Mouse Reeve
db207065ce
Update version number
2023-02-20 09:15:38 -08:00
Christof Dorner
4b3849e4e0
Merge pull request #2681 from chdorner/fix/sitesettings-ondelete
2023-02-18 20:24:41 +01:00
Christof Dorner
dc5b797796
Fix SiteSettings.default_user_auth_group
FK on_delete value
...
The migration uses `RESTRICT` instead of `PROTECT`, which is both more
correct, but also those values need to be identical, otherwise Django
thinks that there's a migration missing and will refuse to apply any
new migrations.
2023-02-18 19:33:25 +01:00
Chris Young
d123cc6b0c
Add default values if not in .env
2023-02-17 11:36:21 +00:00
Chris Young
9460553086
Read TOTP variables from .env
2023-02-17 09:40:31 +00:00
Hugh Rundle
702c79496b
Merge pull request #2652 from chdorner/fix/status-get-no-trim
...
Always expand content status on single status view
2023-02-17 15:18:05 +11:00
Christof Dorner
a5892fa531
Merge pull request #2667 from bookwyrm-social/dependabot/pip/django-3.2.18
...
chore(deps): bump django from 3.2.17 to 3.2.18
2023-02-16 10:25:58 +01:00
dependabot[bot]
173d7ba9bf
chore(deps): bump django from 3.2.17 to 3.2.18
...
Bumps [django](https://github.com/django/django ) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.17...3.2.18 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-15 19:45:09 +00:00
Chris Young
867b2ff542
Specify TOTP validity window in settings.py
2023-02-13 15:17:54 +00:00
Mouse Reeve
2c2daf5fdf
Merge pull request #2644 from rrgeorge/rrgeorge/csp
...
Add Content-Security-Policy headers and secure cookies
2023-02-10 16:37:39 -08:00
Mouse Reeve
cc9e94261c
Merge pull request #2637 from MeecoLabs/mobile/dropdown-larger-size
...
UI: larger dropdown size for mobile devices
2023-02-10 15:57:03 -08:00
Chris Young
5bae00b3fe
Expand TOTP validity window
2023-02-09 12:49:05 +00:00
Hugh Rundle
e88f1f0b8c
Merge pull request #2616 from MeecoLabs/book-series-v1
...
Book Series v1: a very simple version to link to book series by name\
Resolves #644
2023-02-08 21:14:51 +11:00
Dustin Steiner
d1f85e4317
fix: books can have non-decimal series numbers
2023-02-07 12:05:20 +00:00
Dustin
b20b52af7f
Merge branch 'main' into book-series-v1
2023-02-07 11:57:39 +00:00
Giebisch
21575fbf3f
Unused variable fix
2023-02-06 14:09:53 +01:00
Giebisch
248eab22ed
Merge branch 'main' into page-range
2023-02-06 14:02:05 +01:00
Giebisch
f65e0b7632
Add Quotation endposition test
2023-02-06 14:00:04 +01:00
Christof Dorner
6af1be28f3
Always expand content status on single status view
...
On the feed view along with other statuses, the body will be trimmed,
but on the single view, there's no need to trim it. This preserves the
logic for spoiler alerts.
2023-02-04 12:52:09 +01:00
Mouse Reeve
d94b9f9e30
Merge pull request #2648 from bookwyrm-social/dependabot/pip/django-3.2.17
...
Bump django from 3.2.16 to 3.2.17
2023-02-03 15:02:51 -08:00
dependabot[bot]
b43f1eab38
Bump django from 3.2.16 to 3.2.17
...
Bumps [django](https://github.com/django/django ) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.16...3.2.17 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 22:18:41 +00:00
Robert George
b82231202c
lint
2023-02-03 12:03:52 -08:00
Robert George
297738dbb1
Merge branch 'rrgeorge/csp' of github.com:rrgeorge/bookwyrm into rrgeorge/csp
2023-02-03 11:53:52 -08:00
Robert George
afe651cd6d
Added img-src * csp exception to search
2023-02-03 11:53:41 -08:00
Christof Dorner
f9a916db09
Merge pull request #2639 from bookwyrm-social/celery-ping
...
Celery ping
2023-02-03 09:40:25 +01:00
Mouse Reeve
fd59fea94e
Update bookwyrm/views/admin/celery_status.py
...
Co-authored-by: Christof Dorner <christof@chdorner.com>
2023-02-02 16:46:36 -08:00
Mouse Reeve
739c384715
Merge branch 'main' into rrgeorge/csp
2023-02-02 16:41:18 -08:00
Mouse Reeve
213984cd78
Merge pull request #2645 from chdorner/dev/black-versions
...
Pin black versions
2023-02-02 16:33:38 -08:00
Christof Dorner
5887a3e246
Merge pull request #2646 from 0x29a/improve-search
...
Improve search results
2023-02-02 22:11:12 +01:00
0x29a
22eeee7368
Urlencode search query
2023-02-02 21:02:57 +01:00
Christof Dorner
60a0075bf4
Pin Github Actions black to 22.12.0
2023-02-02 12:36:46 +01:00
Christof Dorner
aecd4d2a4f
Upgrade development black to 22.12.0
2023-02-02 12:36:34 +01:00
Robert George
6b97702cc4
Fix long line
2023-02-01 13:19:57 -08:00
Robert George
36605efd20
Added support for secure cookies and django-csp
2023-02-01 12:59:10 -08:00
Dustin Steiner
610a4e8a66
chore: run styling
2023-01-31 18:44:09 +00:00
Dustin Steiner
96097f3b58
chore: use bulma override for mobile dropdown instead of classes
2023-01-31 18:33:44 +00:00
Dustin Steiner
90f996ac90
chore: multi line comment for linter
2023-01-31 10:16:44 +00:00
Dustin Steiner
c2a81d88bb
Merge branch 'main' into book-series-v1
2023-01-31 10:06:07 +00:00
Dustin Steiner
d0ac65b931
chore: reset translation files
2023-01-31 10:05:03 +00:00
Dustin Steiner
f30a0ae714
chore: more dropdown resizes
2023-01-31 08:12:57 +00:00
Dustin Steiner
ed040cd3e4
Merge branch 'main' into mobile/dropdown-larger-size
2023-01-31 08:01:29 +00:00
Mouse Reeve
006ff697b9
Merge pull request #2636 from 0x29a/redundant-db-queries
...
Remove redundant DB queries
2023-01-30 09:03:18 -08:00
Mouse Reeve
686d5625ed
Merge pull request #2627 from MeecoLabs/admin-manually-activate-user
...
Button in admin view to manually activate pending user
2023-01-30 09:01:05 -08:00
Mouse Reeve
46607df7e5
Merge pull request #2628 from chdorner/fix/improve-federated-generatednotes-in-feed
...
Improve feed header for federated generated notes
2023-01-30 08:36:36 -08:00
Mouse Reeve
8f88b72620
Adds info about celery endpoint in admin view
2023-01-30 08:35:24 -08:00
Mouse Reeve
c1090703e2
Adds a ping-able celery url
...
This will let admins set up a check to notify you if celery is not
running.
2023-01-30 08:27:40 -08:00
Giebisch
f085315d70
Added Backend Part
2023-01-30 16:12:14 +01:00
Dustin Steiner
e0505722e1
chore: formatting
2023-01-30 14:45:30 +00:00
Dustin Steiner
f4cde843c0
chore: larger dropdown size for mobile devices
2023-01-30 14:40:33 +00:00
Dustin Steiner
59a8098517
chore: add translations
2023-01-30 08:26:59 +00:00
Dustin Steiner
1d0599d6d9
chore: make and compile messages
2023-01-30 08:23:06 +00:00
0x29a
5e87504b22
Remove duplicated editions request from book.html
2023-01-30 06:45:48 +01:00
0x29a
f2d7efe2ba
Remove duplicated readthrough request from comment.html
2023-01-30 06:45:48 +01:00
0x29a
6e1418c5d4
Remove duplicated mentions request from layout.html
2023-01-30 06:45:48 +01:00
0x29a
6ea2513790
Remove duplicated notifications request from layout.html
2023-01-30 06:45:48 +01:00
0x29a
3c52426a1c
Optimize get_suggested_books
2023-01-30 06:45:44 +01:00
Dustin Steiner
0628ccad41
chore: sort editions with series number before edition rank
2023-01-29 11:43:56 +00:00
Dustin
c0e541c7ed
Merge branch 'main' into admin-manually-activate-user
2023-01-29 11:21:31 +00:00
Dustin
23e04c2e62
Merge branch 'main' into book-series-v1
2023-01-29 09:36:52 +00:00
Dustin Steiner
4b64b70753
fix: sort series by float
2023-01-29 09:35:02 +00:00
Ritik Ranjan
adcf9310a0
Fixed Syntax of pluralisation
2023-01-28 21:23:08 +05:30
Ritik Ranjan
a12dc692ce
Merge remote-tracking branch 'origin/main' into pluralization-error
2023-01-28 21:16:36 +05:30
Ritik Ranjan
e5e9e807ca
Splited stirng into two then fixed pluralization error.
2023-01-28 21:11:20 +05:30
Mouse Reeve
d0a0851123
Merge pull request #2629 from 0x29a/performance-fixes
...
Minor performance improvements
2023-01-28 07:18:50 -08:00
Mouse Reeve
e3ce12671a
Merge pull request #2630 from hughrun/shepherd
...
fix sass compound selector extensions
2023-01-28 07:18:34 -08:00
Dustin Steiner
f2902e8de5
fix: sort series number as int
2023-01-28 08:38:57 +00:00
Dustin Steiner
952dd0dcdf
style: fix unused parameter linter error
2023-01-28 08:31:41 +00:00
Dustin Steiner
3fdbfe405b
fix: rename activate user form name
2023-01-28 08:31:16 +00:00
Ritik Ranjan
fc599f8b9a
fixed singularisation/pluralisation
...
edited two files
2023-01-28 12:10:06 +05:30
Hugh Rundle
2605b12ed0
fix sass compound selector extensions
...
Sass changed the way compound selectors can be extended, as outlined here:
https://sass-lang.com/documentation/breaking-changes/extend-compound
This commit aligns the styles in shepherd.scss to the nwe compound selector extension format.
2023-01-28 14:18:05 +11:00
0x29a
cbd75dc766
Minor performance improvements
2023-01-27 20:24:53 +01:00
Christof Dorner
46bfc184f5
Improve feed header for federated generated notes
...
This works for wants/started/finished reading generated notes, but not yet for "set a goal".
2023-01-27 17:49:48 +01:00
Dustin Steiner
54aea0654a
style: run linter
2023-01-27 15:47:22 +00:00
Dustin Steiner
3d29524e29
chore: reverse support for localhost domain
2023-01-27 15:45:43 +00:00
Dustin Steiner
07f4300176
feat: button in admin view to manually activate pending user
2023-01-27 15:43:34 +00:00
Dustin Steiner
94c28810f1
Merge branch 'main' into book-series-v1
2023-01-26 20:18:18 +00:00
Mouse Reeve
48ac90a984
Merge pull request #2624 from bookwyrm-social/update_locales
...
Updates locales
2023-01-26 09:06:31 -08:00
Mouse Reeve
a9142d9858
Updates locales
2023-01-26 08:55:52 -08:00
Dustin Steiner
264d32bf1b
Merge branch 'main' into book-series-v1
2023-01-26 16:43:53 +00:00
Mouse Reeve
90e3661636
Merge pull request #2623 from chdorner/fix/passwordless-redis
...
Fix passwordless redis connection string
2023-01-26 08:41:46 -08:00
Dustin Steiner
ba2ff7e7a5
Merge branch 'main' into book-series-v1
2023-01-26 16:40:32 +00:00
Dustin Steiner
5cc158e3be
Merge branch 'main' into book-series-v1
2023-01-26 16:36:19 +00:00
Mouse Reeve
d1d77ca9c3
Merge pull request #2622 from jaschaurbach/update-contrib
...
add "import" to celery worker
2023-01-26 08:33:42 -08:00
Christof Dorner
afab255c85
Allow empty broker and activity redis password
2023-01-26 17:24:20 +01:00
Jascha Urbach
c26387baea
add "import" to celery worker
...
import was missing in ExecStart for celery
2023-01-26 17:24:18 +01:00
Christof Dorner
80d3474cef
Quote redis activity password
...
Same as the broker password in celerywyrm/settings.py
2023-01-26 17:23:55 +01:00
Mouse Reeve
62d1c54b31
Merge pull request #2613 from hughrun/authorized-fetch
...
Enable communication with "authorized_fetch" Mastodon servers
2023-01-26 08:21:34 -08:00
Mouse Reeve
2553a083f5
Merge pull request #2621 from bookwyrm-social/expose-import-queue
...
Show import queue in Celery admin
2023-01-26 08:18:42 -08:00
Mouse Reeve
d12e755080
Merge pull request #2620 from jaschaurbach/update-requirements
...
Update requirements.txt
2023-01-26 08:13:50 -08:00
Mouse Reeve
ef48149844
Show import queue in Celery admin
2023-01-26 07:52:37 -08:00
Jascha Urbach
7c75c246d2
Update requirements.txt
...
Important bugfixes and performance updates.
did not touch opentelemetry or the dev dependencies.
No breaking changes.
2023-01-26 16:51:32 +01:00
Mouse Reeve
9c3c34834f
Update version number
2023-01-26 07:39:25 -08:00
Mouse Reeve
9be2f00064
Update test_signing.py
2023-01-26 07:19:53 -08:00
Mouse Reeve
e55e4429b1
Merge pull request #2604 from rrgeorge/redis-sockets
...
Add support to connecting to redis via unix socket
2023-01-26 06:39:15 -08:00
Mouse Reeve
f4de00088f
Merge branch 'main' into authorized-fetch
2023-01-26 06:22:03 -08:00
Mouse Reeve
8a65296c29
Merge pull request #2618 from hughrun/tests
...
use mocks for isni API calls
2023-01-26 06:06:05 -08:00
Mouse Reeve
4b6678903f
Merge pull request #2617 from bookwyrm-social/follow-priority
...
Make follow activities a high priority
2023-01-26 06:03:57 -08:00
Dustin
1d909ee8e1
Merge branch 'main' into book-series-v1
2023-01-26 06:50:22 +00:00
Dustin Steiner
eb4672ff18
style: format
2023-01-26 06:49:55 +00:00
Hugh Rundle
63dafd54d3
black
...
I can't even tell what it thinks it did, but Black likes to complain.
2023-01-26 17:24:51 +11:00
Hugh Rundle
821169251c
add more verbose comment to settings.py
2023-01-26 17:19:44 +11:00
Hugh Rundle
c86fdfbd40
black
2023-01-26 16:56:11 +11:00
Hugh Rundle
1fe6892d0a
pylint
2023-01-26 16:54:14 +11:00
Hugh Rundle
aa6eaccfbb
use mocks for isni API calls
...
- fixes a couple of tests making author ISNI calls
- notes a future TODO to remove some possibly useless code
2023-01-26 16:22:50 +11:00
Mouse Reeve
9b8c6d54f7
Merge pull request #2554 from chdorner/feat/registration-default-user-auth-group
...
Allow to set default user auth group
2023-01-25 18:22:37 -08:00
Mouse Reeve
9fdcc7debd
Fixes mocks in tests
2023-01-25 09:32:45 -08:00
Mouse Reeve
b89cab1ee5
Fixes args passed to inbox activity task
2023-01-25 07:39:43 -08:00
Hugh Rundle
578de27515
Merge pull request #2610 from Giebisch/rss-feed
...
Add RSS feed for reviews, quotes, comments only
2023-01-25 20:04:34 +11:00
Mouse Reeve
858bf70d62
Make follow activities a high priority
...
This should go a long way towards fixing the problems with follows not
going through to remote servers. All it does is move relationship
related activities from the medium priority queue, which gets
backlogged easily, to the high priority queue, which is less backlogged.
The risk here is that the high priority queue could end up getting
backlogged, so this isn't the last word on fixing this, but I think the
volume of activities that this will add to it will be manageable.
2023-01-24 08:46:29 -08:00
Dustin
aad934fa59
Merge branch 'main' into book-series-v1
2023-01-24 13:14:28 +00:00
Dustin Steiner
cd13e6f523
style: run linter
2023-01-24 13:14:06 +00:00
Dustin Steiner
35d30a41f3
feat: first version of a book series list by author
2023-01-24 13:00:18 +00:00
Giebisch
3d99908d27
Fixed Object Selection for RSS Feeds
2023-01-23 15:17:20 +01:00
Hugh Rundle
f0e1767bc9
black code
2023-01-22 16:10:30 +11:00
Hugh Rundle
803bba71a6
fix error handling
...
- when using raise_for_status we need to catch an HTTPError, not a ConnectionError
- simplify instance actor - use internal email address since it will never be used anyway, and make default username less likely to already be in use.
2023-01-22 15:59:19 +11:00
Christof Dorner
c991733c8d
Set default auth user group to editor on initdb
2023-01-21 17:04:32 +01:00
Christof Dorner
7ae983acdf
Use default user auth group from site settings
2023-01-21 17:04:32 +01:00
Christof Dorner
2c680cb365
Add default user auth group to registration settings
2023-01-21 17:04:32 +01:00
Giebisch
88ddee74ae
Sync main and fix user page
2023-01-21 00:22:00 +01:00
Giebisch
5d61003ce7
Merge branch 'main' into rss-feed
2023-01-20 23:29:33 +01:00
Giebisch
70f4d72322
Added Tests for several RSS Feeds
2023-01-20 23:28:50 +01:00
Hugh Rundle
317fa5cdfd
black
2023-01-20 20:05:14 +11:00
Hugh Rundle
e8452011f7
handle get_data exceptions better
...
Makes exception handling more precise, only raising status for 401s.
Also fixes a string pylint was complaining about.
2023-01-20 19:55:38 +11:00
Hugh Rundle
f8c9df4aff
pylint fixes
2023-01-20 18:20:18 +11:00
Hugh Rundle
4108238716
resolve SECURE_FETCH bugs
...
ERROR HANDLING FIXES
- use raise_for_status() to pass through response code
- handle exceptions where no response object is passed through
INSTANCE ACTOR
- models.User.objects.create_user function cannot take an ID
- allow instance admins to determine username and email for instance actor in settings.py
2023-01-20 16:32:17 +11:00
Hugh Rundle
0da5473b0c
black formatting
2023-01-20 16:31:27 +11:00
Hugh Rundle
0c614e828f
deal with missing digests in signatures
...
If no digest value is passed to make_signature and Exception was thrown.
Since digest is added to the signature headers if it is not None anyway, there is no need to assign the digest value before that check.
When signing a request _as the server_ for Mastodon's AUTHORIZED_FETCH there is no need to include a digest.
2023-01-20 08:24:46 +11:00
Mouse Reeve
6425e569c5
Merge pull request #2612 from bookwyrm-social/adds-merge-migration
...
Adds merge migration
2023-01-19 13:22:56 -08:00
Mouse Reeve
9ef5d53696
Python formatting
2023-01-19 13:06:58 -08:00
Hugh Rundle
d97d6acfa4
Merge pull request #2599 from asmaloney/opengraph-book-and-list
...
Improve Open Graph data for books and add it for lists
2023-01-20 07:58:34 +11:00
Mouse Reeve
a9f59ef8d5
Adds merge migration
2023-01-19 12:17:41 -08:00
Mouse Reeve
3e969bb349
Merge pull request #2606 from jaschaurbach/author_website
...
Add Website to author
2023-01-19 12:08:01 -08:00
Mouse Reeve
0594152f47
Merge pull request #2511 from Giebisch/import-limit
...
Added Import Limit
2023-01-19 11:16:58 -08:00
Hugh Rundle
9a0f8f9c2a
fix test_get_representative_not_existing params
2023-01-19 16:40:13 +11:00
Mouse Reeve
2ceea24763
Merge pull request #2608 from kvibber/rss-autodiscover
...
Enable RSS autodiscovery on user profile
2023-01-18 19:51:15 -08:00
Kelson Vibber
919c9a7585
Add site name to RSS autodiscovery title
2023-01-18 18:27:51 -08:00
Andy Maloney
89c1edac36
Improve Open Graph data for books and add it for lists
2023-01-18 10:30:26 -05:00
Mouse Reeve
7f3551bab8
Merge pull request #2605 from rrgeorge/fix-barcode-scanner
...
Fix barcode scanner
2023-01-18 05:55:20 -08:00
Hugh Rundle
d66e2fe861
merge in latest changes
2023-01-18 14:12:01 +11:00
Giebisch
18c786f63f
Added RSS API
2023-01-17 21:59:05 +01:00
Giebisch
bfc8856f66
Merge branch 'main' into rss-feed
2023-01-17 20:54:41 +01:00
Kelson Vibber
fd7dcb320e
fix mimetype on rss autodiscovery and add title
2023-01-16 22:30:15 -08:00
Kelson Vibber
78422ac35b
Add RSS autodiscover support to user profile page
2023-01-16 21:46:50 -08:00
Mouse Reeve
1b17b94a28
Merge pull request #2607 from cthos/fix-email-user-settings-page
...
Email Config View Has a Typo
2023-01-16 19:34:07 -08:00
Giebisch
5faf7f5e87
Fixed Import limit for retries
2023-01-17 01:07:10 +01:00
Alexander Ward
1f50a2dbfc
Email Config Has a Typo
...
There's an errant capital "E" preventing the SMTP user from appearing on the settings page.
2023-01-16 15:47:24 -08:00
Giebisch
d0adb370cd
Merge branch 'main' into import-limit
2023-01-16 02:05:18 +01:00
Jascha Urbach
54e0fdd5ae
Here we go again!
2023-01-15 09:41:39 +01:00
Robert George
95b66480c9
lint fixes
2023-01-14 18:20:37 -08:00
Mouse Reeve
10322cdff3
Merge pull request #2572 from chdorner/fix/create-edit-book-cover-url
...
Ensure transient `cover_url` field value gets persisted across form renders
2023-01-14 18:08:22 -08:00
Robert George
f362343dfa
style fixes
2023-01-14 15:44:10 -08:00
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
Mouse Reeve
788a33ee8a
Merge pull request #2600 from chdorner/fix/card-header
...
Fix generated note content checks in card header template
2023-01-12 15:41:52 -08:00
Christof Dorner
0291ffbcb1
Fix generated note content checks in card header template
2023-01-12 20:58:41 +01:00
Mouse Reeve
0f0da0bdbb
Merge pull request #2598 from bookwyrm-social/revert-2555-author_website
...
Revert "Add Website field to author"
2023-01-11 19:30:41 -08:00
Mouse Reeve
dd2b166382
Revert "Add Website field to author"
2023-01-11 19:21:40 -08:00
Mouse Reeve
60f3f8fcc0
Merge pull request #2596 from bookwyrm-social/commented-nginx
...
Re-comment nginx config
2023-01-11 17:07:00 -08:00
Mouse Reeve
8fa8d433aa
Re-comment nginx config
...
I thought this didn't need to be commented out but it does (if it isn't,
it tried to load the cert, which doesn't yet exist)
2023-01-11 16:56:31 -08:00
Mouse Reeve
b89060d5fc
Merge pull request #2594 from bookwyrm-social/locales
...
Updates locales
2023-01-11 15:02:15 -08:00
Mouse Reeve
71f5e5a688
Updates locales
2023-01-11 14:47:42 -08:00
Mouse Reeve
ba5d0f1b14
Merge pull request #2593 from asmaloney/opengraph
...
Move all opengraph (/twitter) metadata into one template
2023-01-11 14:44:15 -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
Mouse Reeve
bc276c4b3a
Merge pull request #2589 from asmaloney/spelling-aria
...
Fix two "aria-hidden" tags
2023-01-11 07:20:21 -08: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
917569ef0e
Merge pull request #2373 from codeurimpulsif/contrib-system
...
Add contrib directory with systemd service files for front, worker and scheduler
2023-01-09 20:26:02 -08: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
Mouse Reeve
9480318c5d
Merge pull request #2544 from joachimesque/redirect-after-shelving-book
...
Redirect back to the original page after shelving book
2023-01-09 20:05:13 -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
Mouse Reeve
2bd94b1332
Merge pull request #2563 from joachimesque/update-github-actions
...
Update github actions versions
2023-01-02 07:58:25 -07:00
Giebisch
7e7966987b
Merge branch 'main' into import-limit
2023-01-02 15:42:50 +01:00
Joachim
4b55b4c026
Update black
2023-01-01 21:09:25 +01:00
Joachim
3f6cdff363
Update github actions versions
2023-01-01 21:06:35 +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
Doctor
45aa397863
Add redis.service in After for bookwyrm and bookwyrm-scheduler services
2022-12-30 17:36:16 +01:00
Codimp
358a0e60a9
Add systemd service files for bookwyrm front, worker and scheduler
2022-12-30 17:36:16 +01:00
Codimp
1e0cbe776c
Add contrib directory with explanation
2022-12-30 17:36:16 +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
Mouse Reeve
ca89a6f098
Merge pull request #2543 from joachimesque/user-menu-mobile-align-right
...
User menu mobile align right
2022-12-30 07:20:23 -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
Joachim
5c92774a7f
Merge branch 'main' into redirect-after-shelving-book
2022-12-28 10:44:41 +01:00
Mouse Reeve
cfbd0b97fc
Merge pull request #2552 from chdorner/fix/example-env-redis
...
Add REDIS_BROKER_HOST to example env
2022-12-27 06:40:14 -08:00
Christof Dorner
31028e9573
Add REDIS_BROKER_HOST to example env
...
This might avoid future confusion when somebody wants to run
this dockerless for example, given that in the settings module
this gets the default value of `redis_broker` when not set.
2022-12-27 11:29:09 +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
5d63b48328
Fix postgres to version 13 in Docker compose
...
Helps to make tests reproducible, and avoids accidentally
relying on postgres:11 in which some tests fail.
2022-12-26 14:27:46 +01:00
Arie van Deursen
1c0a3a7829
Only test thumbnails if they're enabled in the settings
2022-12-26 14:26:23 +01:00
Arie van Deursen
8441314e7c
Enable thumbnail generation in example environment
...
This makes the example environment more similar to the
setting in the django-tests.yml GitHub workflow.
It also ensures thumbnail generation is tested by default.
2022-12-26 14:23:19 +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
8f3d702652
Merge pull request #2537 from chdorner/fix/admin-system-nav-items
...
Fix permissions check for System admin navigation section
2022-12-21 10:37:23 -08:00
Mouse Reeve
f2a52d4a18
Adds Basque language
2022-12-21 10:30:51 -08:00
Mouse Reeve
287cf75698
Merge pull request #2533 from bookwyrm-social/update_locals
...
Updates locales
2022-12-21 09:47:03 -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
9c03ba48fb
Updates locales
2022-12-19 20:20:21 -08: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
Mouse Reeve
fe29d30ab5
Merge pull request #2522 from joachimesque/disable-remote-users-preview-images
...
Disable remote users preview images generation
2022-12-19 14:36:52 -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
c57d8d14b3
Merge pull request #2526 from jaschaurbach/bump_requirements
...
bump some versions in requirements
2022-12-19 12:46:03 -08: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
Mouse Reeve
66dc070a26
Merge pull request #2527 from chdorner/fix/compile-scss
...
Disable sass processer when not in debug mode
2022-12-19 12:16:42 -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
8bb5c867eb
Add compile_themes to bw-dev
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
4549edb569
Bump Pillow minimum version
2022-12-17 18:43:48 +01:00
Joachim
e9abae9b7d
Add shell completion for remove_remote_user_preview_images command
2022-12-17 18:05:33 +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
e9ad1b4bf0
Merge pull request #2517 from bookwyrm-social/import-status
...
Don't mark imports as active until their job task runs
2022-12-16 14:50:23 -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
44941ffc9c
Merge pull request #2514 from bookwyrm-social/update-locales
...
Updates locales
2022-12-16 13:10:14 -08:00
Mouse Reeve
01524110a7
Updates locales
2022-12-16 12:53:40 -08:00
Mouse Reeve
1a2a5b8bd2
Merge pull request #2499 from bookwyrm-social/nginx-prod
...
Updates nginx production config
2022-12-16 12:48:05 -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
Mouse Reeve
09e4735ad9
Merge pull request #2512 from hueyy/fix/year_of_reading_no_page_data
...
Fix year of reading: phrasing when there are books without page data
2022-12-16 12:24:14 -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
c75bb1b4f8
Merge pull request #2504 from bookwyrm-social/version
...
Update version number and javascript cache buster
2022-12-11 13:57:23 -08: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
9ed2f7fc2b
Merge pull request #2502 from bookwyrm-social/locales
...
Updates locales
2022-12-11 13:43:18 -08:00
Mouse Reeve
a6604c197d
Updates tests
2022-12-11 13:19:26 -08:00
Mouse Reeve
6f8251a283
Updates locales
2022-12-11 13:10:48 -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
53ddaee3d9
Merge pull request #2501 from bookwyrm-social/book-keys-fix
...
Fixes new identifier fields in edit book form
2022-12-11 13:04:06 -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
3a0533b7fc
Updates nginx production config
...
This copies over the changes Trammell added to the development file. I
also realized that I think it's fine to only commend out the https
redirect, rather than commenting out the entire server block for
listening on port 443? If this works it makes the file a lot easier to
read.
Co-authored-by: Trammell Hudson <hudson@trmm.net>
2022-12-11 12:28:53 -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
d1774f0c99
Merge pull request #2497 from chdorner/add-bw-dev-eslint
...
Add eslint subcommand to bw-dev
2022-12-11 11:47:18 -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
Christof Dorner
08d4b2e063
Add eslint subcommand to bw-dev
2022-12-11 20:33:38 +01: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
Mouse Reeve
3b56c85a87
Merge pull request #2488 from jaschaurbach/goodreads-visibility
...
goodreads_key for books editable
2022-12-11 10:51:29 -08:00
Mouse Reeve
91f8b0e15e
Merge pull request #2465 from osresearch/nginx-caching
...
Enable nginx caching and optimizations.
2022-12-11 10:40:38 -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
309d5a535a
Merge pull request #2479 from bookwyrm-social/author-padding
...
Visually separate authors when creating book
2022-12-06 13:13:28 -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
Trammell Hudson
43b194d612
nginx: route /flower to the queue monitoring system.
...
This patch removes the exposed port for the flower
server and instead uses nginx to route urls /flower/*
to the queue monitoring system.
2022-12-06 13:01:40 +00:00
Trammell Hudson
5922e29369
Enable nginx caching and optimizations.
...
This patch enabled nginx caching of responses for non-logged in users
so that a boost by a popular mastodon user doesn't DDOS the bookwyrm site.
It also silences some of the nginx access logs so that static files are
not logged.
2022-12-06 13:01:40 +00: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
Mouse Reeve
d322da3faf
Merge pull request #2474 from bookwyrm-social/update-locales
...
Updates locales
2022-12-04 19:26:25 -08:00
Mouse Reeve
5a0985248d
Updates locales
2022-12-04 18:26:40 -08:00
Mouse Reeve
18d1adf24a
Merge pull request #2473 from bookwyrm-social/imports-bug
...
Fixes bug that caused imports to be disabled unexpectedly
2022-12-04 18:16:40 -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
117b86fdc0
Merge pull request #2471 from bookwyrm-social/impressum
...
Adds missing template
2022-12-04 13:24:07 -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
Mouse Reeve
d64dac6bbf
Merge pull request #2456 from viviicat/fix-invite-limit
...
registration answer not long enough client side, fixes #2377 for real
2022-11-26 13:06:51 -08:00
Mouse Reeve
3d35dc7c41
Merge pull request #2458 from viviicat/fix-fish-compilescss
...
Remove no-longer present `compilescss` from fish autocomplete config
2022-11-26 13:03:11 -08:00
Vivianne Langdon
d9ecd35024
Remove no-longer present compilescss
from fish autocomplete config
2022-11-26 12:36:52 -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
d8860f2a4d
Merge pull request #2443 from bookwyrm-social/edit-links
...
Fixes editing links
2022-11-25 08:56:19 -08:00
Mouse Reeve
748acc9a79
Merge pull request #2444 from bookwyrm-social/update-locales
...
Updates locales
2022-11-25 08:56:07 -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
be33fe6040
Updates locales
2022-11-25 08:32:10 -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
Mouse Reeve
2e882a447f
Merge pull request #2437 from cincodenada/fix/list-suggestions
...
Fix: Slice queryset in list suggestions before we resolve it
2022-11-23 21:47:05 -08:00
Mouse Reeve
4484d0baed
Merge pull request #2390 from jaschaurbach/fix-docker-compose
...
Quote ports in docker-compose
2022-11-23 17:44:43 -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
Mouse Reeve
bbd2dc75f8
Merge pull request #2414 from henryistaken/patch-1
...
Fix Quick Typo
2022-11-19 09:32:27 -08:00
Jascha Urbach
4e2324f06b
Add HTTP_X_FORWARDED_PROTO:false to Test
...
that it does not fail any more :)
2022-11-19 18:02:34 +01: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
Henry
c7ac936a9a
Fix Quick Typo
2022-11-18 23:24:18 -08: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
bfca5706ea
Merge pull request #2404 from bookwyrm-social/embed-css
...
Uses correct css paths in embeds
2022-11-17 15:00:16 -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
4ce51be827
Merge pull request #2401 from bookwyrm-social/resolve-remote-errors
...
Change log level to info for connector exceptions
2022-11-17 12:49:32 -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
d40cc21460
Merge pull request #2399 from bookwyrm-social/cache-fix
...
Fixes user follow cache
2022-11-17 11:36:20 -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
Mouse Reeve
39c5b0dc91
Merge pull request #2392 from jaschaurbach/Remove-dead-link-to-fediblock
...
Remove dead URL
2022-11-16 10:13:53 -08: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
55a603562c
Merge pull request #2387 from bookwyrm-social/admin-template
...
Adds unit test for failing view
2022-11-16 06:43:02 -08:00
Jascha Urbach
cb187c880e
Quote ports in docker-compose
...
Per sepcification in compose-file v3 ports are in quotes.
https://docs.docker.com/compose/compose-file/compose-file-v3/
2022-11-16 12:38:49 +01:00
Mouse Reeve
f95729a0c3
Adds unit test for failing view
2022-11-15 21:45:06 -08:00
Mouse Reeve
1a8580cdbc
Merge pull request #2385 from bookwyrm-social/search-improvements
...
Simplify title/author search logic
2022-11-15 20:21:45 -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
fb60ffa512
Merge pull request #2384 from bookwyrm-social/search-improvements
...
Simplify identifier searches
2022-11-15 20:07:16 -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
Mouse Reeve
c64914b41b
Merge pull request #2381 from jaschaurbach/deactivate-2fa-with-manage.py
...
Remove TFA from user
2022-11-15 15:03:16 -08:00
Mouse Reeve
e47d84267f
Merge pull request #2376 from bookwyrm-social/env-defaults
...
Updates default state of .env file
2022-11-15 14:59:38 -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
Mouse Reeve
ec4d9f6b63
Merge pull request #2380 from bookwyrm-social/status-activity-tasks
...
Generate fewer add_status_tasks
2022-11-15 14:41:10 -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
413bd33894
Updates default state of .env file
2022-11-15 12:31:47 -08:00
Mouse Reeve
f0b73c18c1
Merge pull request #2367 from bookwyrm-social/footer-links
...
Include privacy policy and code of conduct in footer
2022-11-14 18:58:50 -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
Mouse Reeve
e1f6110dc8
Merge branch 'main' into bw-dev-npm-fix
2022-11-14 09:11: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
Mouse Reeve
c29ce65c27
Merge pull request #2355 from Ryuno-Ki/task-queues
...
Use variable instead of string
2022-11-13 12:51:07 -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
dc14670a2c
Merge pull request #2346 from bookwyrm-social/async-broadcast
...
Use aiohttp for broadcasting
2022-11-10 17:33:10 -08:00
Mouse Reeve
ddcaf8e3b8
Use asyncio for broadcasting
2022-11-10 15:41:56 -08:00
Mouse Reeve
cbd14a69ea
Merge pull request #2345 from bookwyrm-social/import-time-tweak
...
Another tweak to how import wait times are calculated
2022-11-10 14:20:21 -08:00
Mouse Reeve
49d0590599
Another tweak to how import wait times are calculated
2022-11-10 13:59:27 -08:00
Mouse Reeve
26e185718f
Merge pull request #2344 from bookwyrm-social/locales
...
Updates locales
2022-11-10 13:55:00 -08:00
Mouse Reeve
a670b45a4b
Updates locales
2022-11-10 13:43:40 -08:00
Mouse Reeve
eae1866992
Allow users to temporarily deactivate their accounts ( #2324 )
2022-11-10 13:40:54 -08:00
Mouse Reeve
3ebd957d3d
Merge pull request #2341 from bookwyrm-social/import-time-estimate
...
Import time estimate fixes
2022-11-10 13:22:23 -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
Mouse Reeve
f0d3ceefa0
Cache import time
...
Also uses a type hint
2022-11-10 12:27:38 -08:00
Mouse Reeve
784dab3d41
Fixes to how import times are estimated
...
The wrong attr was being used to grab the number of seconds, and imports
that were stopped were being counted
2022-11-10 11:42:38 -08:00
Mouse Reeve
89a2109731
Merge pull request #2339 from bookwyrm-social/locales
...
Updates locales
2022-11-07 11:50:42 -08:00
Mouse Reeve
cc95c4d7b5
Merge pull request #2338 from bookwyrm-social/sort-admin-imports
...
Make the import admin table sortable
2022-11-07 11:41:58 -08:00
Mouse Reeve
9e0867af91
Make the import admin table sortable
2022-11-07 11:32:45 -08:00
Mouse Reeve
ab0655a997
Updates locales
2022-11-07 11:22:13 -08:00
Mouse Reeve
16c92a62c4
Merge pull request #2337 from bookwyrm-social/invite-table-scroll
...
Makes the invite request table side scroll for mobile
2022-11-07 10:55:39 -08:00
Mouse Reeve
eb7777c0a1
Merge pull request #2336 from bookwyrm-social/cancel-imports
...
Fixes duplicate notification on import
2022-11-07 10:47:38 -08:00
Mouse Reeve
4b01103f84
Makes the invite request table side scroll for mobile
...
Fixes #2335
2022-11-07 10:44:49 -08:00
Mouse Reeve
1f022496dd
Fixes duplicate notification on import
2022-11-07 10:36:31 -08:00
Mouse Reeve
4e1da6a759
Merge pull request #2333 from bookwyrm-social/cancel-imports
...
Let users and admins cancel imports
2022-11-07 10:35:37 -08:00
Mouse Reeve
b64f0511a5
Another mock
2022-11-07 10:07:37 -08:00
Mouse Reeve
141d3aa813
Updates mocks in tests
2022-11-07 09:50:05 -08:00
Mouse Reeve
493fd68af4
Merge branch 'main' into cancel-imports
2022-11-07 09:06:13 -08:00
Mouse Reeve
6e748c5476
Typo fix
2022-11-05 18:16:59 -07:00
Mouse Reeve
817047bdeb
Use stop functionality in import admin view
2022-11-05 15:44:00 -07:00
Mouse Reeve
76fb4c9280
Revoke tasks
2022-11-05 15:41:06 -07:00
Mouse Reeve
6792b3d7b8
adds button to stop job
2022-11-05 14:44:09 -07:00
Mouse Reeve
7a36de5ebe
Start and stop jobs from the model
2022-11-05 14:35:27 -07:00
Mouse Reeve
0399f9eb01
Merge pull request #2332 from bookwyrm-social/import-time-estimate
...
Show average run times for imports
2022-11-05 13:48:07 -07:00
Mouse Reeve
97513a43d6
Set import job status when job starts and finishes
2022-11-05 13:47:06 -07:00
Mouse Reeve
59fe9e4d3b
Show import status in table
2022-11-05 13:44:07 -07:00
Mouse Reeve
9cfcad20e0
Avoid divide by zero error
2022-11-05 13:33:57 -07:00
Mouse Reeve
24e5ea3295
Check if import is stopped and create import status field
2022-11-05 13:32:23 -07:00
Mouse Reeve
3c2f2c10bf
Show recent imports in a table
2022-11-05 13:12:23 -07:00
Mouse Reeve
4806a6273e
Show average run times for imports
...
This should give users a sense of when to start wondering if their
import isn't running after all.
2022-11-05 12:50:51 -07:00
Mouse Reeve
01d5274ebb
Merge pull request #2331 from bookwyrm-social/locales
...
Updates locales
2022-11-03 15:20:00 -07:00
Mouse Reeve
b439114932
Updates locales
2022-11-03 11:50:12 -07:00
Mouse Reeve
ccf091e42d
Merge pull request #2330 from bookwyrm-social/import-admin-table
...
Adds more fields to import admin table and ticks version
2022-11-03 11:49:57 -07:00
Mouse Reeve
40e9428b49
Adds more fields to import admin table and ticks version
2022-11-03 11:30:43 -07:00
Mouse Reeve
3f2f718878
Merge pull request #2329 from bookwyrm-social/import-admin-fixes
...
Import admin fixes
2022-11-03 11:06:29 -07:00
Mouse Reeve
14e61fa32d
Adds extremely basic tests file
2022-11-03 10:55:21 -07:00
Mouse Reeve
0ba4dbbc6f
Fixes pagination and user links on import admin
2022-11-03 10:54:59 -07:00
Mouse Reeve
91b935bc0a
Merge pull request #2327 from bookwyrm-social/imports-admin
...
Imports admin
2022-11-01 20:53:58 -07:00
Mouse Reeve
5af195de58
Python formatting
2022-11-01 20:43:27 -07:00
Mouse Reeve
a8424f61f2
Mark imports as complete
...
This will let the user debug the import, and should only be used when
the import is in a bad state (marked as incomplete but with no pending
tasks)
2022-11-01 19:26:23 -07:00
Mouse Reeve
6eab1fdd6d
Adds import admin view
2022-11-01 19:05:51 -07:00
Mouse Reeve
61c2d2a36a
Use elided page range on user admin view
2022-11-01 18:45:21 -07:00
Mouse Reeve
641fc325b4
Merge pull request #2326 from bookwyrm-social/synchronous-confirmation-emails
...
Send confirmation emails directly, rather than with celery
2022-11-01 18:43:53 -07:00
Mouse Reeve
881d5682e3
Updates test mock
2022-11-01 18:20:56 -07:00
Mouse Reeve
c16155aa41
Merge pull request #2325 from bookwyrm-social/author-page-editions
...
Only show editions with the author on the author page
2022-11-01 18:18:58 -07:00
Mouse Reeve
40ead41176
Fixes rate limiter
2022-11-01 18:17:37 -07:00
Mouse Reeve
1c949a5d71
Send confirmation emails directly, rather than with celery
...
Whenver bookwyrm has an influx of new users, celery gets delayed and
the emails don't get sent out promptly, which causes people to first
resend the email multiple times, and then to email me, both of which
just create more work and confusion for everyone involved.
2022-11-01 18:08:45 -07:00
Mouse Reeve
553f170f89
Only show editions with the author on the author page
2022-11-01 18:04:27 -07:00
Mouse Reeve
43202f5bb7
Merge pull request #2322 from obrenckle/menus_overlap
...
Close dropdown menu when opening one of its modal
2022-11-01 17:15:00 -07:00
Olivier Brencklé
cfaec434c0
🚸 Close dropdown when opening modal item
2022-10-28 13:15:53 +02:00
Olivier Brencklé
474b78dad2
💄 Set dropdown menu below modals on mobile
2022-10-24 19:34:25 +02:00
Mouse Reeve
54a056f582
Merge pull request #2321 from bookwyrm-social/dependabot/pip/django-3.2.16
...
Bump django from 3.2.15 to 3.2.16
2022-10-21 14:14:21 -07:00
Mouse Reeve
2a0a67de5f
Adds 2fa locales
2022-10-21 14:13:14 -07:00
Mouse Reeve
62a34c42a3
Merge branch 'main' into dependabot/pip/django-3.2.16
2022-10-20 20:57:05 -07:00
Mouse Reeve
eb07deadf2
Merge pull request #2320 from bookwyrm-social/announcement-size
...
Remove extra whitespace in announcements
2022-10-20 20:56:52 -07:00
Mouse Reeve
6fb21b9e4b
Disable wayward stylelint error
2022-10-20 20:44:27 -07:00
dependabot[bot]
09446def54
Bump django from 3.2.15 to 3.2.16
...
Bumps [django](https://github.com/django/django ) from 3.2.15 to 3.2.16.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.15...3.2.16 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 03:40:27 +00:00
Mouse Reeve
c375e842ad
Merge pull request #2294 from hughrun/otp
...
Enable optional 2FA
2022-10-20 20:40:00 -07:00
Mouse Reeve
b81a5faff7
Remove extra whitespace in announcements
2022-10-20 07:45:53 -07:00
Hugh Rundle
3d95916b55
handle 2fa user exception properly
2022-10-15 07:47:20 +11:00
Hugh Rundle
32e4f7718e
pylint is being pedantic
2022-10-15 07:47:20 +11:00
Hugh Rundle
cf1fae6af8
return Bad Request if 2fa user does not exist
2022-10-15 07:47:20 +11:00
Hugh Rundle
905aa66f38
add test_post_login_with_2fa
2022-10-15 07:47:20 +11:00
Hugh Rundle
a1c3f15d80
remove unused import
2022-10-15 07:47:20 +11:00
Hugh Rundle
f55adbadf4
fix 2fa tests
2022-10-15 07:47:20 +11:00
Hugh Rundle
cffbf82ddb
DRY footer for 2FA pages
2022-10-15 07:47:20 +11:00
Hugh Rundle
f3768c3d92
code formatting fix
2022-10-15 07:47:20 +11:00
Hugh Rundle
79b04c2240
various 2fa improvements
...
- cleaner code
- use TWO_FACTOR_LOGIN_MAX_SECONDS instead of hardcoded number
- render qrcode properly
- use nginx to rate limit login attempts
- do not throw error if session user is undefined
2022-10-15 07:47:20 +11:00
Hugh Rundle
aefc7a23bc
fix 2fa templates
...
- translate all strings
- do not embed svg element inside svg element
- fix sizing of input for confirming 2fa setup
2022-10-15 07:47:20 +11:00
Hugh Rundle
e1513bf98d
amend nginx rate limiting urls
2022-10-15 07:47:20 +11:00
Hugh Rundle
da613c9b26
ugh forgot to run black
2022-10-15 07:47:20 +11:00
Hugh Rundle
fda150fa0d
resolve migration conflict
2022-10-15 07:47:20 +11:00
Hugh Rundle
119b4bf2ff
clean up tests
...
- remove unnecessary crap
- add missing tests
2022-10-15 07:47:20 +11:00
Hugh Rundle
9d36722783
code formatting
2022-10-15 07:47:20 +11:00
Hugh Rundle
b63d4bec60
add tests for 2fa
2022-10-15 07:47:20 +11:00
Hugh Rundle
28329c1781
use string for datetime in session
...
It seemed to work when testing manually, but both pytest and the django documentation indicate that you can't pass datetimes around as session values.
2022-10-15 07:47:20 +11:00
Hugh Rundle
e1b1bb20dc
make password field less goofy in 2fa screen
2022-10-15 07:47:20 +11:00
Hugh Rundle
9b74c26742
backup codes
...
- add hotp_secret to user model
- view to create backup codes in user prefs
- check backup code if otp doesn't work
- increment hotp count if used
- show correct errors if code wrong
2022-10-15 07:47:20 +11:00
Hugh Rundle
9616abb6bd
clean up 2fa prompt page
2022-10-15 07:47:20 +11:00
Hugh Rundle
5b244f06d6
fix error messages when setting up 2FA
2022-10-15 07:47:20 +11:00
Hugh Rundle
6db4fb39ed
improve security and fix error msg
...
- Instead of passing the user as a hidden form element, we use a session variable.
- Introduces a 60 second limit on completing the login, and an exponentially increasing delay to attempt to login with 2FA if the code is entered incorrectly.
- use proper Django form error when incorrect otp value entered
2022-10-15 07:47:20 +11:00
Hugh Rundle
9d12b7caff
make pylint stop grumbling
2022-10-15 07:47:20 +11:00
Hugh Rundle
1d13f0ab4f
lint
2022-10-15 07:47:20 +11:00
Hugh Rundle
8837495ffd
redirect login to 2fa check if active
2022-10-15 07:47:20 +11:00
Hugh Rundle
2ec343c5db
new views for capturing user for 2fa check
2022-10-15 07:47:20 +11:00
Hugh Rundle
f26ac1ccde
2fa page templates
2022-10-15 07:47:20 +11:00
Hugh Rundle
0e1751eb57
prep for 2fa login check
...
- new 2fa checker page to be inserted between initial login and completion of login
- new views and forms for above
2022-10-15 07:47:20 +11:00
Hugh Rundle
514762c233
fix typo in new user fields
...
oopsie
2022-10-15 07:47:20 +11:00
Hugh Rundle
aca5c19f70
2fa templates
...
- new page templates for 2FA
- add 2FA to menu in user preferences
2022-10-15 07:47:20 +11:00
Hugh Rundle
54daade9f9
prepare for 2FA
...
- add and migrate User fields for 2FA
- add views for 2FA
- add new forms for 2FA
- update package list in requirements.txt
- add URLs for 2FA views
2022-10-15 07:47:20 +11:00
Mouse Reeve
fed6bcd375
Merge pull request #2314 from chambersh1129/2194-normalize-stored-ISNI
...
Closes #2194 Normalize stored ISNI
2022-10-14 12:20:07 -07:00
Mouse Reeve
b02ad2ec68
Merge pull request #2316 from redshiftss/bugfix/reading-status-future
...
Make it so that finishing a book cannot happen in the future
2022-10-14 12:17:42 -07:00
Mouse Reeve
b06c35b7dd
Update forms.py
2022-10-14 12:06:54 -07:00
Laura Pircalaboiu
f97b6f3da2
fix pylint complaint
2022-10-12 11:25:03 +02:00
x3005504
4423827c27
Merge branch 'bugfix/reading-status-future' of github.com:redshiftss/bookwyrm into bugfix/reading-status-future
2022-10-11 14:42:09 +02:00
Laura Pircalaboiu
4ab5e4b5d9
re-format code
2022-10-11 14:40:52 +02:00
Laura Pircalaboiu
b895fbd8f2
fix bug, can no longer finish a book in the future
2022-10-11 14:40:45 +02:00
Laura Pircalaboiu
aeeb2c3442
WIP: fix reading status ending in the future
2022-10-11 14:40:32 +02:00
x3005504
ec25ffe6ba
re-format code
2022-10-11 14:07:17 +02:00
x3005504
9a9a7821b7
fix bug, can no longer finish a book in the future
2022-10-11 14:05:20 +02:00
x3005504
68b9791d8c
WIP: fix reading status ending in the future
2022-10-11 13:41:07 +02:00
Hunter Chambers
32f68c3f62
remove trailing whitespace causing pylint/black errors
2022-10-10 14:13:57 -04:00
Hunter Chambers
02c7397eaf
Closes #2194 Normalize stored ISNI
2022-10-09 19:36:24 -04:00
Mouse Reeve
003c5c9c82
Merge pull request #2311 from bookwyrm-social/small-tests
...
Just adds a couple tests
2022-10-04 12:18:10 -07:00
Mouse Reeve
74b89b2d4a
That test didn't work
2022-10-04 12:09:05 -07:00
Mouse Reeve
5b5e15d48b
Just adds a couple tests
2022-10-04 11:40:01 -07:00
Mouse Reeve
f32eaad8ef
Merge pull request #2310 from bookwyrm-social/typo-fix
...
Typo fix
2022-10-04 11:22:35 -07:00
Mouse Reeve
520b1d2207
Updates locales
2022-10-04 11:04:36 -07:00
Mouse Reeve
78d36ebc39
Fixes typo in tour
2022-09-24 19:41:37 -07:00
Mouse Reeve
44ce12405b
Merge pull request #2301 from bookwyrm-social/annual-review-tests
...
Adds a couple tests to annual review views
2022-09-19 20:33:37 -07:00
Mouse Reeve
3a73ced5fa
Adds a couple tests to annual review views
...
Also I tweaked the save functions so they don't broadcast
2022-09-19 14:38:30 -07:00
Mouse Reeve
fdc477afdf
Merge pull request #2258 from bookwyrm-social/form-perms
...
Check permissions automatically on form save
2022-09-19 13:32:41 -07:00
Mouse Reeve
7d61cb55bc
Ignore pylint complaints about argument counts to form saves
2022-09-19 13:23:18 -07:00
Mouse Reeve
35aebacf70
Fixes theme form and adds view tests
2022-09-19 13:13:21 -07:00
Mouse Reeve
bf092ec44e
Small fixes
2022-09-19 12:10:27 -07:00
Mouse Reeve
d023f71058
Merge pull request #2300 from bookwyrm-social/notification
...
Fixes creating notifications for automod reports
2022-09-19 12:00:02 -07:00
Mouse Reeve
4c099afc63
Python formatting
2022-09-19 11:23:40 -07:00
Mouse Reeve
37dacaff6f
Fixes creating notifications for auto-moderation reports
2022-09-19 11:11:08 -07:00
Mouse Reeve
6947f3b787
Uses class method to get list of instance admins
...
Re-writing this query over and over is a bad approach
2022-09-19 10:43:52 -07:00
Mouse Reeve
9d8d85ebc1
Invite perms checks
2022-09-19 10:26:40 -07:00
Mouse Reeve
1e988cae6c
More edit book lines
2022-09-19 10:26:29 -07:00
Mouse Reeve
be480e40f0
Updates links form saves
2022-09-19 10:18:30 -07:00
Mouse Reeve
3fd573c0da
Check perms on site model form
2022-09-19 10:16:38 -07:00
Mouse Reeve
b0d8697006
Adds missing save in edit book view
2022-09-19 10:16:29 -07:00
Mouse Reeve
330be16516
Adds permissions checking for admin models
2022-09-19 10:12:47 -07:00
Mouse Reeve
e51980bc12
Use BookWyrmModel as parent for admin models
...
This will make them more internally consistent and give them built-in
permissions checking
2022-09-19 09:35:38 -07:00
Mouse Reeve
b0236b95bd
Merge branch 'main' into form-perms
2022-09-19 09:32:48 -07:00
Mouse Reeve
3f5eb6c682
Adds raise_not_editable to User model
...
This model doens't inherit from BookwyrmModel for various reasons, but
it still needs to editability check.
2022-09-19 09:26:01 -07:00
Mouse Reeve
aa67f23b03
Override raise_not_editable for report model
...
This model uses "reporter" as the field that represents the onwer of the
object, and "user" and the subject. In retrospect, maybe not the ideal
way to do it.
2022-09-19 09:20:44 -07:00
Mouse Reeve
ac7be43e82
Merge pull request #2299 from bookwyrm-social/locales
...
Adds new admin view to locales
2022-09-19 08:27:12 -07:00
Mouse Reeve
44f27ec132
Adds new admin view to locales
2022-09-19 08:05:11 -07:00
Mouse Reeve
d5c095ce6e
Merge pull request #2298 from bookwyrm-social/import-review-null-state
...
Adds celery status view
2022-09-15 11:20:16 -07:00
Mouse Reeve
81d5195d20
Adds test
2022-09-15 11:12:05 -07:00
Mouse Reeve
fcd96c332d
Null state
2022-09-15 11:09:07 -07:00
Mouse Reeve
d76eae358f
Show queues and runtime instead of start time
2022-09-15 10:53:08 -07:00
Mouse Reeve
3739bdbf81
Better comments
2022-09-15 09:49:58 -07:00
Mouse Reeve
0f55b76a93
Adds celery status view
2022-09-14 18:58:51 -07:00
Mouse Reeve
b62c78aa3f
Merge pull request #2297 from bookwyrm-social/import-review-null-state
...
Null state for review view during imports
2022-09-14 18:20:05 -07:00
Mouse Reeve
fcf796abe1
Null state for review view during imports
...
Without this, it will show an empty progress bar and no info about why
the table is empty.
2022-09-14 18:08:16 -07:00
Mouse Reeve
c6f4098334
Merge pull request #2295 from bookwyrm-social/dependabot/pip/flower-1.2.0
...
Bump flower from 1.0.0 to 1.2.0
2022-09-13 18:10:07 -07:00
dependabot[bot]
f9c608e728
Bump flower from 1.0.0 to 1.2.0
...
Bumps [flower](https://github.com/mher/flower ) from 1.0.0 to 1.2.0.
- [Release notes](https://github.com/mher/flower/releases )
- [Commits](https://github.com/mher/flower/compare/v1.0.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: flower
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-13 23:03:54 +00:00
Mouse Reeve
6e00d49f78
Merge pull request #2293 from hughrun/starfix
...
Fix star rating default and minimum
2022-09-09 17:51:26 -07:00
Hugh Rundle
aa18179dbc
add migration
2022-09-10 10:27:17 +10:00
Hugh Rundle
0ad3dc6245
allow 0.5 star ratings
2022-09-10 07:24:11 +10:00
Hugh Rundle
230d30abb8
sidebar review stars should default to zero
...
PR #2283 surfaced an existing formerly-hidden issue with star rating defaults in the sidebar of book pages.
This commit ensures the default rating is zero, not half a star.
Fixes #2291
2022-09-10 07:03:12 +10:00
Mouse Reeve
543d13af6e
Removes explicit calls to raise_not_editable from views
...
These raises are handled implicitly in the form, so they don't have to
be called outright.
2022-09-08 11:03:06 -07:00
Mouse Reeve
351292fcda
Catches places where form.save() needs the request
...
Thank you, tests.
2022-09-08 11:02:17 -07:00
Mouse Reeve
c71d133d2c
Merge pull request #2288 from mooseyboots/del-notifs-button
...
conditional display of notifs button
2022-09-08 10:16:07 -07:00
Mouse Reeve
834c7e9cd5
Merge pull request #2282 from hughrun/normalise-isbn
...
Normalise ISBNs for searching
2022-09-08 10:14:30 -07:00
marty hiatt
b4cc9f5753
conditional display of notifs button
2022-09-01 11:54:49 +02:00
Hugh Rundle
1ee2ff4811
normalise isbn on local book search
...
- uppercase ISBN before checking it's a number to account for trailing 'x'
- check maybe_isbn for search_identifiers search. Without this we are only searching external connectors, not locally!
2022-08-30 20:00:09 +10:00
Hugh Rundle
68d91086ed
add wonky ISBN test
2022-08-30 19:57:25 +10:00
Mouse Reeve
7ff8d85696
Merge pull request #2286 from bookwyrm-social/locales
...
Updates locales
2022-08-29 15:19:26 -07:00
Mouse Reeve
1f93dc9c62
Merge pull request #2260 from bookwyrm-social/mentions
...
Refactors how mentions are collected
2022-08-29 15:17:40 -07:00
Mouse Reeve
d2941d4396
Merge pull request #2287 from bookwyrm-social/search-remote
...
Fixes logic that displays search remote or manually add link
2022-08-29 14:53:48 -07:00
Mouse Reeve
e782b3f360
Fixes logic that displays search remote or manually add link
2022-08-29 14:03:47 -07:00
Mouse Reeve
35cf907f8b
Merge pull request #2285 from bookwyrm-social/isbn-url
...
Allow x in isbn path
2022-08-29 13:54:36 -07:00
Mouse Reeve
49c5feee99
Updates locales
2022-08-29 13:45:48 -07:00
Mouse Reeve
98562dc92f
Allow x in isbn path
2022-08-29 13:41:49 -07:00
Mouse Reeve
775ee6f590
Merge pull request #2283 from hughrun/halfstars
...
fix visibility of stars when editing a review
2022-08-29 13:39:47 -07:00
Mouse Reeve
e1ab81b86b
Merge pull request #2284 from bookwyrm-social/remote-follow-css
...
Uses theme in remote follow template
2022-08-29 09:38:39 -07:00
Mouse Reeve
f0effb9d3e
Uses theme in remote follow template
2022-08-29 07:10:36 -07:00
Hugh Rundle
252fe7fd6a
fix visibility of stars when editing a review
...
Previously the star rating appeared to be five stars when editing a review, regardless of what value was actually stored.
Now it will show the actual rating, including half stars.
Fixes #2213
2022-08-29 14:02:04 +10:00
Hugh Rundle
18d3d2f85d
linting
2022-08-28 17:30:46 +10:00
Hugh Rundle
f219851f3a
strip leading and following spaces from ISBN
2022-08-28 17:28:00 +10:00
Hugh Rundle
da5fd32196
normalise isbn searching
...
ISBNs are always numeric except for when the check digit in ISBN-10s is a ten, indicated with a capital X.
These changes ensure that ISBNs are always upper-case so that a lower-case 'x' is not used when searching.
Additionally some ancient ISBNs have been printed without a leading zero (i.e. they only have 9 characters on the physical book). This change prepends a zero if something looks like an ISBN but only has 9 chars.
2022-08-28 11:05:40 +10:00
Mouse Reeve
c902301d82
Merge pull request #2281 from hughrun/resetdb
...
fix resetdb
2022-08-27 09:14:21 -07:00
Hugh Rundle
bc297d663d
fix resetdb
...
Instead of just whining I thought maybe I should fix the problem.
This replaces a manual reset of the database with deletion of the bookwyrm volumes using docker.
fixes #2276
2022-08-27 19:53:57 +10:00
Mouse Reeve
58c3a4c2bc
Merge pull request #2277 from hughrun/permissions
...
hide replies to posts user cannot see
2022-08-23 19:48:36 -07:00
Hugh Rundle
cc97c52d12
make get_audience logic clearer
...
Retains 'direct' messages at the top of the logic tree to make it easier to understand.
In practice because direct messages are excluded from feeds anyway, this doesn't seem to make much difference, but it's easier to read.
2022-08-21 09:33:43 +10:00
Hugh Rundle
8d593e4498
hide replies to posts user cannot see
...
This is in response to #1870
Users should not see links to posts they are not allowed to see, in their feed. The main question is how to stop that happening.
This commit hides all replies to posts if the original post was "followers only" and the user is not a follower of the original poster. The privacy of the reply is not considered relevant (except "direct").
I believe this is the cleanest way to deal with the problem, as it avoids orphaned replies and confusing 404s, and a reply without access to the context of the original post is not particularly useful to anyone. This also feels like it respects the wishes of the original poster more accurately, as it does not draw attention from non-followers to the original followers-only post.
A less draconian approach might be to remove the link to the original status in the feed interface, however that simply leads to confusion of another kind since it will make the interface inconsistent.
This commit does not change any ActivityPub behaviour - it only affects the Bookwyrm user feeds. This means orphaned posts may be sent to external apps like Mastodon.
2022-08-14 14:17:10 +10:00
Mouse Reeve
be1141dddc
Merge pull request #2275 from hughrun/spaceless
...
strip spaces from user search
2022-08-13 21:15:30 -07:00
Mouse Reeve
987dbe15b3
Merge pull request #2271 from bookwyrm-social/dependabot/pip/django-3.2.15
...
Bump django from 3.2.14 to 3.2.15
2022-08-13 07:26:44 -07:00
Hugh Rundle
22495e40bd
strip spaces from user search
...
Strips leading and trailing spaces from user search to prevent errors when doing webfinger lookup.
Prior to this, webfinger user queries included everything after the second '@' as part of the hostname. This resulted in failed webfinger requests when there was one or more trailing spaces.
Fixes #2205
2022-08-13 15:40:53 +10:00
dependabot[bot]
c591371b4e
Bump django from 3.2.14 to 3.2.15
...
Bumps [django](https://github.com/django/django ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.14...3.2.15 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 16:08:55 +00:00
Mouse Reeve
d58282bc37
Merge pull request #2263 from bookwyrm-social/safer-book-description
...
Safer display of book descriptions
2022-08-09 10:21:11 -07:00
Mouse Reeve
0cf9e1033b
Safer display of book descriptions
2022-08-07 13:26:05 -07:00
Mouse Reeve
cbc23dba3b
Merge pull request #2262 from bookwyrm-social/compilescss-command
...
Removes compilescss command
2022-08-07 11:41:57 -07:00
Mouse Reeve
a5c7ca1cfd
Removes compilescss command
...
This does not work and doesn't reflect how the stylesheets are compiled
any longer.
2022-08-07 11:27:52 -07:00
Mouse Reeve
f566b43e5f
Merge pull request #2261 from bookwyrm-social/duplicate-version-warning
...
Removes duplicate version warning
2022-08-05 19:13:19 -07:00
Mouse Reeve
1581491471
Removes duplicate version warning
2022-08-05 17:03:56 -07:00
Mouse Reeve
c8fc907705
Update version
2022-08-05 16:54:55 -07:00
Mouse Reeve
5c3bb2da13
Refactors how mentions are collected
...
This should be quicker, because it queries the users in one go instead
of jumping straight to iterating over them, and it checks if a user
blocks the poster before allowing them to be tagged.
2022-08-05 14:06:39 -07:00
Mouse Reeve
9d7ece47ef
Merge pull request #2254 from bookwyrm-social/fixes-search-pagination
...
Fixes search pagination
2022-08-05 12:32:47 -07:00
Mouse Reeve
9fad5b5623
Fixes isbn view
2022-08-05 11:44:10 -07:00
Mouse Reeve
bdf563748c
Merge pull request #2255 from joachimesque/front/mobile-header
...
Add notifications count on mobile header
2022-08-05 11:28:42 -07:00
Mouse Reeve
1518dbba86
Merge pull request #2259 from bookwyrm-social/links
...
Improves rel attrs on links that open on new tabs
2022-08-05 11:28:04 -07:00
Mouse Reeve
7c7df99cef
Fixes template syntax error
2022-08-05 11:14:14 -07:00
Mouse Reeve
20572688ba
Removes test exception
2022-08-05 11:04:32 -07:00
Mouse Reeve
1ba69acc49
Adds unit tests that checks if rel field is set on links
2022-08-05 11:01:02 -07:00
Mouse Reeve
4dd7f88e0a
Updates all links that open in new tabs
2022-08-05 10:20:43 -07:00
Mouse Reeve
9407695328
Updates footer links
...
Adds a missing rel="nofollow noopener noreferrer" attribute for the
Patreon link, and makes the github link open in a new tab (and updates
the url, which was out of date)
2022-08-05 10:06:12 -07:00
Mouse Reeve
8f79b362f8
Check permissions automatically on form save
2022-08-05 09:56:32 -07:00
Mouse Reeve
e5611c7c03
Merge pull request #2257 from bookwyrm-social/group-perms
...
Fixes perms checks for groups
2022-08-05 09:24:22 -07:00
Mouse Reeve
9f22aeacea
Merge pull request #2256 from bookwyrm-social/locales
...
Locales update
2022-08-05 09:24:08 -07:00
Mouse Reeve
2894aa37a2
Fixes perms checks for groups
2022-08-05 09:12:48 -07:00
Mouse Reeve
44848c6621
Locales update
2022-08-05 09:04:26 -07:00
Mouse Reeve
b4cfda0587
Updates tests
2022-08-05 08:56:24 -07:00
Joachim
610d8fdf5b
Add notifications count on mobile header
2022-08-05 11:15:11 +02:00
Mouse Reeve
ed71b791c9
Python formatting
2022-08-04 12:19:26 -07:00
Mouse Reeve
77d1d70207
Much shorter search timeout
2022-08-04 12:16:12 -07:00
Mouse Reeve
48df5076e7
Use elided page range and paginate user and list results
2022-08-04 12:11:39 -07:00
Mouse Reeve
06d1936ac9
Fixes pagination of local search results
2022-08-04 12:04:13 -07:00
Mouse Reeve
0ee7054640
Merge pull request #2253 from bookwyrm-social/otel-fix
...
Updates and fixes opentelemetry install
2022-08-04 11:25:39 -07:00
Mouse Reeve
073d8b1d67
Updates and fixes opentelemetry install
2022-08-04 11:05:18 -07:00
Mouse Reeve
3270d0a7d4
Merge pull request #2247 from bookwyrm-social/followers-following-views
...
Merges follower/following views
2022-08-02 11:59:06 -07:00
Mouse Reeve
72281bc459
Merge pull request #2251 from bookwyrm-social/polish-locale
...
Adds Polish locale
2022-08-02 11:58:42 -07:00
Mouse Reeve
0bc3c3b5f6
Adds locale migration
2022-08-02 11:09:58 -07:00
Mouse Reeve
f9b772e234
Adds polish locale
2022-08-02 10:59:40 -07:00
Mouse Reeve
6d258d5445
Fixes test mocks
2022-07-30 10:07:13 -07:00
Mouse Reeve
d7bf348c77
Merge pull request #2249 from bookwyrm-social/crsf-exempt
...
Removes improperly placed csrf_exempt decorator
2022-07-29 13:49:29 -07:00
Mouse Reeve
8e2a8ec6e0
Removes improperly places csrf_exempt decorator
2022-07-29 13:40:40 -07:00
Mouse Reeve
96f1521239
Merge pull request #2248 from bookwyrm-social/list-suggestions
...
Move list suggestions into helper function
2022-07-29 13:27:04 -07:00
Mouse Reeve
844023f104
Merge pull request #2246 from bookwyrm-social/goal-model
...
Moves annual goal to its own file
2022-07-29 13:22:12 -07:00
Mouse Reeve
d301cecc9f
Move list suggestions into helper function
...
The view was complicated, this makes it a little easier to read and
test.
2022-07-29 13:15:24 -07:00
Mouse Reeve
23188dfc5f
Merge branch 'main' into followers-following-views
2022-07-29 13:09:30 -07:00
Mouse Reeve
d458001491
Merges follower/following views
...
They were almost identical!
2022-07-29 13:07:15 -07:00
Mouse Reeve
2298a478cf
Moves annual goal to its own file
...
The user model file is just,, very long
2022-07-29 13:00:59 -07:00
Mouse Reeve
3c9c23803e
Merge pull request #2245 from bookwyrm-social/tour-strings
...
Fixes how guided tour strings are localized
2022-07-29 12:56:58 -07:00
Mouse Reeve
f52965b8f4
Fixes a couple typos
2022-07-29 12:08:36 -07:00
Mouse Reeve
29db9c68a1
Fixes typo and spacing
2022-07-29 11:31:35 -07:00
Mouse Reeve
5a7ce7a58c
Updates locales
2022-07-29 11:24:47 -07:00
Mouse Reeve
868ab62863
Fixes template string quote escapes
...
It seems totally reasonable that using an escape slash would make
apostrophes in words work, but the translation system works in
mysterious ways that do not include supporting that. I've used backticks
as a third quote type to escape everything in a way that both
javascript and gettext understand.
While I was there I split up some strings that have more complicated
html in them, since that can be fragile when passed through translation,
and confusing for translators.
2022-07-29 11:22:31 -07:00
Mouse Reeve
03a77c93ac
Merge pull request #2244 from bookwyrm-social/node-version
...
Updates node to version 18
2022-07-28 12:24:38 -07:00
Mouse Reeve
41b20c4dd5
Merge pull request #2243 from bookwyrm-social/list-crate-perms
...
Fixes list creation perms
2022-07-28 11:54:28 -07:00
Mouse Reeve
336c62bfc2
Merge branch 'main' into header-links
2022-07-28 11:45:59 -07:00
Mouse Reeve
2837d0148f
Checks permissions when saving a list
2022-07-28 11:44:04 -07:00
Mouse Reeve
85dce81b6a
Adds unit test or list create perms
2022-07-28 11:42:27 -07:00
Mouse Reeve
cb4945c384
Merge pull request #2242 from bookwyrm-social/locales
...
Locales updates
2022-07-28 11:26:48 -07:00
Mouse Reeve
7bbe42fb30
Merge pull request #2230 from bookwyrm-social/nginx-rate-limit
...
Adds rate limiting to some views in nginx
2022-07-28 11:26:19 -07:00
Mouse Reeve
4013e1782e
Locales updates
...
Grabs translations and adds guided tour strings
2022-07-28 11:13:14 -07:00
Mouse Reeve
ed20587695
Merge pull request #2168 from hughrun/tour
...
Add guided tour / walkthrough
2022-07-28 11:08:49 -07:00
Hugh Rundle
2455aadbfd
add scrollTo where needed
...
A couple of tour steps could benefit from a scrollTo for users on smallers screens.
2022-07-27 15:53:54 +10:00
Hugh Rundle
a4714f097f
fix anchors not working on homepage tour
...
Fixes bug on larger screens.
We need to use a function to set the anchor for tour steps when using menus and other elements that become visible or hidden responsively. Because the element is still in the DOM, we can't just rely on it disappearing completely, we have to assign a different (visible) element otherwise the step will simply disappear and the user cannot continue the tour. Previously this used a simple selector which didn't work due to the above.
2022-07-27 15:14:28 +10:00
Mouse Reeve
7eb2a82e5f
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-07-26 15:46:18 -07:00
Mouse Reeve
5faaa6b750
Merge pull request #2196 from bookwyrm-social/bw-dev-alerts
...
Block some bw-dev commands from being run in prod
2022-07-26 15:34:40 -07:00
Mouse Reeve
bdd75c434b
Updates node to version 18
2022-07-26 15:07:40 -07:00
Mouse Reeve
6fc44cff8b
Merge pull request #2241 from bookwyrm-social/nonviable-follow-requests
...
Only show pending follow requests from active users
2022-07-24 12:38:55 -07:00
Mouse Reeve
f3bc7d759f
Only show pending follow requests from active users
2022-07-24 12:26:58 -07:00
Mouse Reeve
056f9c45a4
Merge pull request #2239 from bookwyrm-social/unauth-lists
...
Show lists to logged out viewers
2022-07-23 21:02:03 -07:00
Mouse Reeve
0217d36f7b
Show lists to logged out viewers
...
The activitystreams for lists require a logged in user, so this just
uses a simple database query of all public lists when there is no logged
in user.
2022-07-23 20:42:40 -07:00
Mouse Reeve
5e887085b5
Merge pull request #2237 from bookwyrm-social/locales
...
Updates locales
2022-07-19 12:15:37 -07:00
Mouse Reeve
25557593f9
Updates locales
2022-07-19 12:03:49 -07:00
Mouse Reeve
c2fb076add
Merge pull request #2235 from bookwyrm-social/fix-rating
...
Fix ratings
2022-07-17 20:08:10 -07:00
Mouse Reeve
639b727c92
Fixes perms check for ratings
2022-07-17 16:21:43 -07:00
Mouse Reeve
3f5bb41380
Unit test for creating rating status
2022-07-17 16:18:59 -07:00
Hugh Rundle
356c1c0b62
fix migration dependency order
...
Show_guided_tour needs to come after alter_user_preferred_language due to conficts. I think.
2022-07-17 16:34:42 +10:00
Hugh Rundle
17dc5e7eb1
Merge branch 'main' into tour
...
- we need to do this because of conflicting migrations
2022-07-17 16:30:45 +10:00
Hugh Rundle
c48ddf419d
cleanup
2022-07-17 16:19:55 +10:00
Hugh Rundle
bec2943aad
remove console logs
2022-07-17 16:17:08 +10:00
Hugh Rundle
387f2a70c9
update tour text
...
- new classname for posting guide
- various improvements to wording
- use function to find responsive menu elements
- add scrollTo transitions where needed
2022-07-17 16:13:12 +10:00
Hugh Rundle
43c598d92c
remove DMs from guided tour
2022-07-17 11:11:34 +10:00
Mouse Reeve
e1e6a2d380
Adds block to prod config
2022-07-15 13:19:42 -07:00
Mouse Reeve
143eaf362d
Adds rate limiting to some views in nginx
2022-07-15 13:14:31 -07:00
Mouse Reeve
569e5400fe
Updates locales
2022-07-15 12:29:31 -07:00
Mouse Reeve
d3f35fb691
Adds Catalan
2022-07-15 12:28:31 -07:00
Mouse Reeve
41818717fb
Updates locales
2022-07-15 12:21:34 -07:00
Mouse Reeve
4a82bef9a6
Ticks version number
2022-07-15 12:21:25 -07:00
Mouse Reeve
086ec10849
Merge pull request #2229 from bookwyrm-social/password-validation
...
Password validation
2022-07-15 11:53:27 -07:00
Mouse Reeve
65117fe3c6
Use manual password field to customize id
2022-07-15 11:41:39 -07:00
Mouse Reeve
b1f5171502
Updates reset password tests
2022-07-15 11:39:29 -07:00
Mouse Reeve
3846b201bd
Updates reset password flow to use validators
2022-07-15 11:39:18 -07:00
Mouse Reeve
1bb0a9d998
Updates tests
2022-07-15 11:18:47 -07:00
Mouse Reeve
b62f8eff42
Updates method decorators
2022-07-15 10:59:35 -07:00
Mouse Reeve
659ee96002
Use password validation in change password flow
...
This also moves the form validation into a form instead of doing it in
the view.
2022-07-15 10:51:58 -07:00
Mouse Reeve
4a65ee326a
Use password validation in register view
2022-07-15 09:59:57 -07:00
Mouse Reeve
b66ce2e6a5
Merge pull request #2228 from bookwyrm-social/status-perms
...
Check permissions when creating a status
2022-07-15 09:56:01 -07:00
Mouse Reeve
d74d59a57b
Disable pylint complaint
2022-07-15 09:33:13 -07:00
Mouse Reeve
55b5393488
Merge pull request #2226 from bookwyrm-social/locales
...
Locale updates
2022-07-15 09:30:58 -07:00
Mouse Reeve
7fdfd0c9c7
Check permissions when creating a status
2022-07-15 09:26:52 -07:00
Mouse Reeve
753b988d1d
Locale updates
2022-07-15 07:42:49 -07:00
Mouse Reeve
a2540e8361
Merge pull request #2225 from bookwyrm-social/login-redirect
...
Remove redirecting to "next"
2022-07-14 13:06:17 -07:00
Mouse Reeve
5ecd75ee24
Remove redirecting to "next"
...
This wasn't even particularly working
2022-07-14 12:54:02 -07:00
Mouse Reeve
aa579605e0
Merge pull request #2224 from bookwyrm-social/email-not-found-text
...
Remove error reporting on resend to invalid email address
2022-07-14 12:34:14 -07:00
Mouse Reeve
69728439c8
Remove error reporting on resend to invalid email address
2022-07-14 12:23:43 -07:00
Mouse Reeve
44b86baa5b
Merge pull request #2223 from bookwyrm-social/shelf-edit-perms
...
Shelf edit perms
2022-07-14 12:22:33 -07:00
Mouse Reeve
317a239d40
Update shelf test now that it has multiple users
2022-07-14 12:10:29 -07:00
Mouse Reeve
3f47cca5e6
Python formatting
2022-07-14 11:56:18 -07:00
Mouse Reeve
c21864a1ac
Merge branch 'main' into shelf-edit-perms
2022-07-14 11:50:27 -07:00
Mouse Reeve
95a72ae902
Merge pull request #2222 from bookwyrm-social/redirects
...
Removes insecure redirects
2022-07-14 11:46:47 -07:00
Mouse Reeve
73c4a01a6e
Test for PermissionDenied error, not isNone
2022-07-14 11:45:59 -07:00
Mouse Reeve
4f1283ff52
Check editability before creating shelf
2022-07-14 11:42:59 -07:00
Mouse Reeve
05716c3578
Adds unit test for creating shelves for another user
2022-07-14 11:38:53 -07:00
Mouse Reeve
661865de87
Remmoves insecure redirects
...
This should really fundamentally work differently, but this is a quick
for for now to avoid an insecure redirect. There will be a negative
impact on user experience from this, and a followup change should look
into these views and improve their flow.
2022-07-14 11:22:17 -07:00
Mouse Reeve
2def5ff2bc
Merge pull request #2221 from bookwyrm-social/notification_order
...
Notification order
2022-07-14 11:21:49 -07:00
Mouse Reeve
235e877b3d
Reverse order of notification users lists
...
Should show newest first
2022-07-14 11:00:05 -07:00
Mouse Reeve
3670ae46ec
Reverse order of notification related users
2022-07-12 10:32:56 -07:00
Mouse Reeve
e3dbe5a142
Update README.md
2022-07-11 15:55:17 -07:00
Mouse Reeve
4929dd3b26
Merge pull request #2219 from bookwyrm-social/readme-update
...
Update README.md
2022-07-11 14:58:08 -07:00
Mouse Reeve
e895451a21
Update README.md
2022-07-11 14:47:56 -07:00
Mouse Reeve
222d0c6d4e
Merge pull request #2218 from bookwyrm-social/locales
...
Updates locales
2022-07-11 09:15:54 -07:00
Mouse Reeve
798476d670
Updates locales
2022-07-11 09:05:26 -07:00
Mouse Reeve
77bff3b263
Merge pull request #2217 from bookwyrm-social/connector-exceptions
...
Log failing to connect as info instead of exception
2022-07-11 09:04:01 -07:00
Mouse Reeve
5706028656
Log failing to connect as info instead of exception
...
These are normal, expected errors, and while we should probably
re-evaluate the connectors in some way, pending that, there's no need to
log these as unepected errors, which causes confusion and clutters my
error logging.
2022-07-11 08:47:18 -07:00
Mouse Reeve
f1ae64543f
Merge pull request #2216 from bookwyrm-social/export-post
...
Use HTTP post for CSV export
2022-07-11 08:14:47 -07:00
Mouse Reeve
9104d1f8db
Fixes reference to renamed view
2022-07-11 08:05:32 -07:00
Mouse Reeve
42e29e40b3
Use HTTP post for csv export
...
Also fixes a missing translation string
2022-07-11 07:51:51 -07:00
Mouse Reeve
137311e006
Merge pull request #2215 from bookwyrm-social/change-password
...
Improves change password flow
2022-07-10 20:34:24 -07:00
Mouse Reeve
a0e01af2ca
Updates tests
2022-07-10 20:22:54 -07:00
Mouse Reeve
f44b3cc4b2
Improves change password flow
...
There are two changes: one is to require the current password to change
your password (which is a security improvement), and the other is error
reporting when you either get your current password wrong or your new
password doesn't match it's second entry.
2022-07-10 20:05:54 -07:00
Mouse Reeve
bead43a20a
Merge pull request #2214 from bookwyrm-social/logout-post
...
Use POST instead of GET for logout function
2022-07-10 09:54:02 -07:00
Mouse Reeve
64bfe5934f
Tick version number
...
This was reported as a security issue, so updating the version number
to indicate where the issue has been fixed.
2022-07-10 09:39:51 -07:00
Mouse Reeve
7a772c7d3e
Use POST instead of GET for logout function
2022-07-10 09:30:39 -07:00
Hugh Rundle
6b1fcc3cbb
use class instead of id for spoilers tour
2022-07-10 13:16:28 +10:00
Hugh Rundle
126fd4e634
various wording updates to guided tour
2022-07-10 11:27:01 +10:00
Hugh Rundle
a84deff119
add scrollTo for link step on home tour
2022-07-10 11:26:14 +10:00
Hugh Rundle
142c0e1a59
fix template error in search tour
2022-07-10 10:58:48 +10:00
Hugh Rundle
37c2ad11b6
fix border radius on shepherd messages
...
remove bottom border radius from message text and top border radius from message footer on guided tour popovers.
2022-07-10 09:54:19 +10:00
Hugh Rundle
e1acdd0062
fix migrations
...
There was a conflict due to the order of migrations. Hopefully this commit fixes it!
2022-07-10 09:53:43 +10:00
Mouse Reeve
a7cc41ce54
Merge pull request #2211 from bookwyrm-social/list-order
...
Fixes numbering on book lists
2022-07-09 13:44:12 -07:00
Mouse Reeve
591c4d9b75
Fixes numbering on book lists
2022-07-09 13:33:58 -07:00
Mouse Reeve
85f811022f
Merge pull request #2210 from bookwyrm-social/notification-cw
...
Show content warning in notification status previews
2022-07-09 13:29:22 -07:00
Mouse Reeve
be5e1be5f6
Use content warnings in notifications
2022-07-09 13:12:46 -07:00
Mouse Reeve
27e9eced67
Merge pull request #2208 from bookwyrm-social/follow-bug
...
Fixes bug in notifications breaking follows
2022-07-09 12:40:38 -07:00
Mouse Reeve
11a0c1691b
Move status_preview snippet to notifications directory
...
That's the only place it's used, always nice to de-clutter the snippets
directory
2022-07-09 12:40:21 -07:00
Mouse Reeve
f92b4548b1
Fixes get_or_create error when multiple matching notifications exist
2022-07-09 12:30:05 -07:00
Mouse Reeve
c092d952bd
Adds test to catch notification error
2022-07-09 12:29:29 -07:00
Mouse Reeve
a7553c0b8c
Return HttpResponse instead of redirects for AJAX follows
...
This is more efficient, and most follow activities are ajax
2022-07-09 12:20:18 -07:00
Mouse Reeve
923495e454
More accurate button display
...
Now, a follow button will show as pending even if the user doesn't
manually approve followers, if that's the state the request is in.
2022-07-09 12:19:28 -07:00
Hugh Rundle
ab5e4128e6
Merge branch 'main' into tour
...
Also fixes conflict
2022-07-09 20:54:48 +10:00
Hugh Rundle
8fbd634ee8
add id to dm box
2022-07-09 20:52:03 +10:00
Hugh Rundle
48bcb85e24
resolve conflict
2022-07-09 20:12:46 +10:00
Hugh Rundle
02c6932409
lint migration file
2022-07-09 20:10:28 +10:00
Hugh Rundle
245120e7ca
resolve git conflict with main branch
2022-07-09 20:08:23 +10:00
Hugh Rundle
baad1314d8
default existing users to no tour
2022-07-09 19:51:05 +10:00
Hugh Rundle
495bac2b50
transfer tour from group to DM
2022-07-09 19:38:44 +10:00
Hugh Rundle
2f2ab5c24a
add DM tour
...
- rearrange script includes on feed pages
- add DM tour to close
2022-07-09 19:27:42 +10:00
Hugh Rundle
791847d75e
add timeline info to home tour
2022-07-09 19:27:12 +10:00
Hugh Rundle
c68c7216f3
minor wording updates for tour
2022-07-09 17:49:56 +10:00
Hugh Rundle
6df09eb5d7
update user groups tour
...
- use strong instead of code
- clean up templates
- use notification styling for actions
- update wording
2022-07-09 17:39:22 +10:00
Hugh Rundle
07a882692c
update lists tour
...
- cleaner templates
- send user directly to their Groups page at end of section
2022-07-09 17:31:04 +10:00
Hugh Rundle
d67c6dc92b
user books tour update
...
- add element highlights
- fix template text
- replace code with strong
2022-07-09 16:56:07 +10:00
Hugh Rundle
e85e4a5467
update book page tour
...
- styling for next action
- replace code with strong
- clean up wording
- make translation templates cleaner
2022-07-09 15:30:45 +10:00
Hugh Rundle
bb85d3cdb2
update search tour
...
- action styling
- code to strong
2022-07-09 15:16:27 +10:00
Hugh Rundle
bb4b1a14fd
update user profile tour styles
2022-07-09 15:10:52 +10:00
Hugh Rundle
5472cdcad7
update homepage tour
...
- add highlights to some elements
- consolidate message text for easier translation
- emphasise action with notification style
2022-07-09 15:00:30 +10:00
Hugh Rundle
b36968166e
fix import message
...
import files don't import shelves, only books.
2022-07-09 14:47:31 +10:00
Hugh Rundle
3c317d509d
fix sass styles import bug
...
Using @import caused styles to double up on elements, in some cases preventing the correct override behaviour.
Usint @use instead fixes this, and is recommended by Sass for exactly this reason.
2022-07-09 14:42:42 +10:00
Hugh Rundle
b41c826a0d
custom style for highlighting tour anchorpoints
2022-07-09 14:29:04 +10:00
Hugh Rundle
68308aaa79
update tour colour scheme
...
- use info instead of default
- increase box shadow
- arrows at top should match header colour
2022-07-09 12:35:06 +10:00
Hugh Rundle
56b91f4c6d
fix incorrect tour step header
2022-07-09 10:37:08 +10:00
Hugh Rundle
4d843b583d
move shelve button tour id to prevent duplicates
2022-07-09 10:32:04 +10:00
Hugh Rundle
389da79af4
fix missing hyphen
2022-07-09 10:31:40 +10:00
Hugh Rundle
53a89f69e7
guided tour only for request.user
2022-07-09 10:23:09 +10:00
Hugh Rundle
3365bb6d35
show_guided_tour is not added to AP serialisation
2022-07-09 10:17:10 +10:00
Mouse Reeve
ed847494ab
Merge pull request #2206 from bookwyrm-social/locales
...
Adds French notification strings and new admin strings
2022-07-08 15:52:15 -07:00
Mouse Reeve
ef49171c7a
Adds French notifiction strings and new admin strings
2022-07-08 15:42:43 -07:00
Mouse Reeve
bd6774fca8
Merge pull request #2202 from bookwyrm-social/settings-warnings
...
New and improved warnings on the admin dashboard
2022-07-08 15:39:23 -07:00
Mouse Reeve
147d092eac
Removes line breaks from warning links
2022-07-08 15:29:55 -07:00
Mouse Reeve
0d05ff348d
Merge pull request #2203 from bookwyrm-social/dms
...
Improves UI around DMs
2022-07-08 12:30:17 -07:00
Mouse Reeve
36553ef2a9
Suppress protected-access warning on admin dashboard
2022-07-08 12:22:23 -07:00
Mouse Reeve
d0e986c283
Hide DMs from profile page
2022-07-08 12:19:51 -07:00
Mouse Reeve
441fef9e86
Use javascript to send DMs
...
This fixes the draft cache issue and also the weird redirects
2022-07-08 12:11:00 -07:00
Mouse Reeve
ba7ae46c75
Adds warnings for missing privacy policies and codes of conduct
2022-07-08 11:59:21 -07:00
Mouse Reeve
4a2e191d92
Refactors dashboard warnings
...
This cleans up the display so that they don't get all squished when a
bunch are present, and creates a layout to make them more DRY
2022-07-08 11:38:27 -07:00
Mouse Reeve
583d5b3bdb
Remove redundant "Your Books" link from menu
2022-07-08 10:57:53 -07:00
Mouse Reeve
891a5d4dd8
Adds "Your Books" to the header and removed "Feed"
...
The instance icon is already a link to the feed, and I think it's weird
not to have a quick link to your books, since books are important.
2022-07-08 10:51:22 -07:00
Mouse Reeve
e35ce82052
Merge pull request #2200 from bookwyrm-social/docs-links
...
Fixes links to documentation pages
2022-07-08 10:26:42 -07:00
Mouse Reeve
b62bb157c0
Fixes links to documentation pages
2022-07-08 09:44:41 -07:00
Mouse Reeve
aedbb6f9e7
Merge pull request #2198 from bookwyrm-social/locales
...
Locale updates
2022-07-08 09:38:50 -07:00
Mouse Reeve
4af0095237
Merge pull request #2199 from bookwyrm-social/user-admin-deleted
...
Move deleted users to separate tab in admin panel
2022-07-08 09:38:27 -07:00
Mouse Reeve
65f55fe324
Fixes link to remote instance user list
2022-07-08 09:26:11 -07:00
Mouse Reeve
be86fef42d
Move deleted users to a separate tab
...
Since there's nothing to be done with them, they get their own tab.
2022-07-08 09:21:48 -07:00
Mouse Reeve
5bb001e15f
Show avatars in user admin view
...
I find this helpful as a rough hueristic for how engaged a user is -- if
they've never added an avatar, it's often the case that they never
really got further in to using the app than just registering a username.
Also, on one occassion, a user had an avatar that violated the instance
ToS, which would have been handy to see at a glance in this list.
2022-07-08 09:10:29 -07:00
Mouse Reeve
9df57ff163
Locale updates
...
Some new strings for Galician
2022-07-08 08:57:39 -07:00
Mouse Reeve
16a76dba72
Merge pull request #2197 from bookwyrm-social/admin-perms
...
Admin perms
2022-07-07 14:15:38 -07:00
Mouse Reeve
a972c58f3b
Fixes errors in permissions
2022-07-07 14:01:51 -07:00
Mouse Reeve
948f2964ac
Updates admin tests to use perms instead of superuser
...
Superuser overrides all perms, so this was hiding simple typo-related
bugs in the permissions system
2022-07-07 14:01:05 -07:00
Mouse Reeve
19e0db566c
Block some bw-dev commands from being run in prod
...
Right now, commands that should not be run in production are removed
from the bw-dev file in the `production` branch. Since eventually I'd
like to get rid of that branch, this change would use the `DEBUG`
environment variable to determine if a command should be disabled,
rather than depending on the file available in the branch.
2022-07-07 12:51:09 -07:00
Mouse Reeve
2eaffc7249
Merge pull request #2195 from bookwyrm-social/a-farcical-parade-of-errors-when-reading-multiple-editions
...
A farcical parade of errors when reading multiple editions
2022-07-07 12:31:56 -07:00
Mouse Reeve
742d97b177
Python formatting
2022-07-07 12:23:10 -07:00
Mouse Reeve
76c466ee45
Fixes cache invalidation for editions
...
Your reading status is shown across all editions of a work, so when you
change your status in relation to the edition you're currently reading,
it needs to invalidate the cached values for all editions of that work.
2022-07-07 12:21:24 -07:00
Mouse Reeve
076ba6f0ae
Dramatically reduce cache duration for reading statuses
...
I originally set this for a very long timeout because this value should
be invalidated when it needs to be by the models, and if that worked
perfectly, this would reduce queries dramatically for books that show up
in ones feed frequently, but don't change status (for example, a book
you read and your friend is currently posting about). In practice, of
course, there are errors in invalidating this cache which leave this
value appearing extremely broken and it's next to impossible to fix.
This change makes each of the timeouts related to reading an hour, which
will still give performance benefit when browsing the site (especially
for loading the same book multiple times on a page), but resolve
naturally if the cache gets into a bad state.
2022-07-07 12:06:06 -07:00
Mouse Reeve
8e18c21460
Merge pull request #2192 from bookwyrm-social/tests
...
Tests for image generator file
2022-07-07 11:47:18 -07:00
Mouse Reeve
1a082b5ee8
Settings
2022-07-07 11:37:34 -07:00
Mouse Reeve
3d2752e388
Merge pull request #2193 from bookwyrm-social/locales
...
Updates locales
2022-07-07 11:04:18 -07:00
Mouse Reeve
ae58d2f74a
Updates locales
...
Hella new translation strings
2022-07-07 10:48:28 -07:00
Mouse Reeve
634ed50044
Tests for image generator file
...
This isn't what I need to be working on right now but it bugs me
immensely that the test coverage is at 89% and not 90% and this was the
lowest hanging fruit to get more coverage. Truly a me problem.
2022-07-07 10:24:19 -07:00
Mouse Reeve
0b7c8e8dc0
Merge pull request #2082 from bookwyrm-social/notifications
...
Notifications refactor
2022-07-07 09:34:19 -07:00
Mouse Reeve
a5e761b134
Group accept and leave notification
2022-07-07 08:55:17 -07:00
Mouse Reeve
e032d7fd5a
Merge pull request #2190 from bookwyrm-social/forgot-password-email
...
Update password reset copy so as not to reveal whether the email exists
2022-07-06 20:00:24 -07:00
Mouse Reeve
fd5e513ad6
Update password reset copy so as not to reveal whether the email exists
...
A malicious user could use this to test which email addresses are in the
user database.
2022-07-06 19:34:00 -07:00
Mouse Reeve
cded3e973d
Fixes html on notifications page
2022-07-06 19:16:14 -07:00
Mouse Reeve
26a1f75e91
Group notification types by feature
2022-07-06 19:15:48 -07:00
Mouse Reeve
6a5323c6e7
More tests for more notification types
2022-07-06 19:15:35 -07:00
Mouse Reeve
96bf99034c
Merge pull request #2189 from bookwyrm-social/extraneous_page_number
...
Removed incorrect and duplicate page indicator from content status
2022-07-06 16:38:09 -07:00
Mouse Reeve
060afd599d
Merge pull request #2188 from bookwyrm-social/more-tests
...
More tests
2022-07-06 15:31:41 -07:00
Mouse Reeve
4bb3a7e4cd
Removed incorrect and duplicate page indicator from content status
2022-07-06 15:27:48 -07:00
Mouse Reeve
04f9b9180d
Adds test file for utils
2022-07-06 15:07:46 -07:00
Mouse Reeve
d3023f350d
Adds tests to site admin view
2022-07-06 15:04:27 -07:00
Mouse Reeve
221b5138e8
Adds merge migration
2022-07-06 14:42:58 -07:00
Mouse Reeve
5a6ef7ccd8
Merge branch 'main' into notifications
2022-07-06 14:41:15 -07:00
Mouse Reeve
dda6126329
Fixes typo in group notification
2022-07-06 14:33:45 -07:00
Mouse Reeve
2cda9d5567
Test leaving a group (as opposed to being removed)
...
This test will catch my typo in generating the notifications
2022-07-06 14:31:38 -07:00
Mouse Reeve
d09aa2ded2
Merge pull request #2187 from bookwyrm-social/missing-migration
...
Adds another missing migration
2022-07-06 12:33:07 -07:00
Mouse Reeve
079f6d304e
Python formatting
2022-07-06 12:22:07 -07:00
Mouse Reeve
9fceeb3eda
Adds another missing migration
2022-07-06 12:17:24 -07:00
Mouse Reeve
476a7b73a2
Merge pull request #2186 from bookwyrm-social/test-coverage
...
Adds test coverage command and some more miscellaneous tests
2022-07-06 11:32:49 -07:00
Mouse Reeve
b2a8a04092
Removes unnecessary imports
2022-07-06 11:24:04 -07:00
Mouse Reeve
9c21d1c06f
Adds more automod tests
2022-07-06 11:15:30 -07:00
Mouse Reeve
7a9d320afd
Expands automod view test
2022-07-06 10:52:50 -07:00
Mouse Reeve
574c1db732
Adds more templatetag tests
2022-07-06 10:52:45 -07:00
Mouse Reeve
87434fbb9d
Adds a couple more edit book views tests
2022-07-06 10:38:22 -07:00
Mouse Reeve
f5638c1e44
Removed unused helper function
2022-07-06 10:05:55 -07:00
Mouse Reeve
f4dd14acad
Adds more webfinger tests for helper functions
2022-07-06 10:05:47 -07:00
Mouse Reeve
c48fbd8753
Separates reporting and report admins tests
2022-07-06 09:47:48 -07:00
Mouse Reeve
afd3b27d78
Adds coverage command to bw-dev
2022-07-06 09:47:33 -07:00
Mouse Reeve
b61a4ab994
Adds tests for unnotify
2022-07-06 08:51:35 -07:00
Mouse Reeve
e8a570b687
Merge pull request #2185 from bookwyrm-social/userless-link-domain
...
Adds missing migration
2022-07-05 18:09:45 -07:00
Mouse Reeve
003ef65db5
Adds missing migration
2022-07-05 18:01:10 -07:00
Mouse Reeve
cccf0ec3a0
Merge pull request #2184 from bookwyrm-social/userless-link-domain
...
Handle link domains with no associated user
2022-07-05 17:51:12 -07:00
Mouse Reeve
d4f8a5f448
Fixes links to report modals
2022-07-05 17:43:03 -07:00
Mouse Reeve
4f386e8c4e
Allow reports with no associated user
2022-07-05 17:19:03 -07:00
Mouse Reeve
0be4fec167
Don't assume that link domains have a known user
...
This is an edge case, and they OUGHT to have a user, but if the user was
deleted for a remote link, the field won't be able to resolve and the
user will be unset.
2022-07-05 16:51:03 -07:00
Mouse Reeve
24349b0a4c
Updates notification view tests
2022-07-05 16:20:27 -07:00
Mouse Reeve
37bcb031f7
Adds notification model unit tests
2022-07-05 16:03:25 -07:00
Mouse Reeve
f7e02061cb
Merge pull request #2183 from bookwyrm-social/dependabot/pip/django-3.2.14
...
Bump django from 3.2.13 to 3.2.14
2022-07-05 16:01:03 -07:00
dependabot[bot]
1e0055663b
Bump django from 3.2.13 to 3.2.14
...
Bumps [django](https://github.com/django/django ) from 3.2.13 to 3.2.14.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.13...3.2.14 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 22:45:57 +00:00
Mouse Reeve
7fe722b595
Fixes follow request notifications
...
Since the main way to interact with them is by approving them in the
notification, I didn't group them
2022-07-05 15:04:14 -07:00
Mouse Reeve
e54c563865
Consistent use of plurals
2022-07-05 14:49:04 -07:00
Mouse Reeve
7508ae9eae
Separate vars for user count and display counts
2022-07-05 14:25:42 -07:00
Mouse Reeve
8cbf8f62c7
List add notifications
2022-07-05 14:15:12 -07:00
Mouse Reeve
41f42e33ed
Moves list add notification into notification model
...
Right now notifications are a mix of post-save signals and clauses in
the save function of the model. I'm not actually sure which is better,
but I'm moving them to signals where it's straightforward to be
consistent.
2022-07-05 13:28:09 -07:00
Mouse Reeve
736d29ea20
Updates group leave and remove notifications
2022-07-05 13:05:28 -07:00
Mouse Reeve
c65381adf9
Comma format count of other users in a notification
2022-07-05 12:49:02 -07:00
Mouse Reeve
79f3382ece
Updates reports notification
2022-07-05 12:48:10 -07:00
Mouse Reeve
9e94a13acf
Updates mention and reply notifications
2022-07-05 12:40:41 -07:00
Mouse Reeve
ee71f5df21
Updates language on boosts
2022-07-05 12:28:48 -07:00
Mouse Reeve
fc375bbab4
Finishes fav status translation strings
2022-07-05 12:21:22 -07:00
Mouse Reeve
97b53d4998
Merge pull request #2180 from bookwyrm-social/set-access-level-user
...
Fixes setting access level to "user"
2022-07-05 12:08:30 -07:00
Mouse Reeve
e2a50230c7
Fixes setting acces level to "user"
...
This wasn't working because "user" isn't a group, it's the absense of
any group.
2022-07-04 21:44:55 -07:00
Mouse Reeve
f76d661e07
Updates templates for fav notifications
2022-07-04 21:32:53 -07:00
Mouse Reeve
971bed9942
Notification field is read, not unread
...
Oops
2022-07-04 21:32:35 -07:00
Mouse Reeve
801ba03aaf
Keep group as a foreign key field
2022-07-04 20:32:13 -07:00
Mouse Reeve
9948dd2356
Use enums in more models
2022-07-04 20:27:56 -07:00
Mouse Reeve
aeefd5a3e9
Use signal for creating group invite notification
2022-07-04 20:24:29 -07:00
Mouse Reeve
03f5a3f2c1
Use enums for notification types
2022-07-04 20:19:18 -07:00
Mouse Reeve
72a8229a5c
Updates group notifications
2022-07-04 20:05:39 -07:00
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
f1f78c9cde
Merge pull request #2177 from bookwyrm-social/deleted-user-color
...
Show deleted users as red in the user list
2022-07-04 17:56:38 -07:00
Mouse Reeve
a718a168a3
Merge branch 'main' into notifications
2022-07-04 17:38:21 -07:00
Mouse Reeve
5672c73ac4
Show deleted users as red in the user list
...
It can be hard to differentiate at a glance if a user is deleted or
suspended -- without this, you would have to read the deactivation
reason. By making deletions (moderator and self deletions) red, it's
clear at a glance if an account has been permanently deleted or just
temporarily suspended.
2022-07-04 17:33:10 -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
Hugh Rundle
d1180d4216
linting fix for linting fix
2022-07-03 17:24:33 +10:00
Hugh Rundle
b82cf887e2
linting fixes
2022-07-03 17:14:13 +10:00
Hugh Rundle
f8e51b5826
format guided tour js with prettier
2022-07-03 16:24:34 +10:00
Hugh Rundle
0e9dc66ffa
Merge branch 'main' into tour
...
Merging in latest changes from main, since I got covid and missed a few weeks.
2022-07-03 16:18:50 +10:00
Hugh Rundle
04324c00b4
back button on all tour modals
2022-07-03 16:12:17 +10:00
Hugh Rundle
39efb90870
add noscript message for guided tour
2022-07-03 16:10:32 +10:00
Hugh Rundle
3f67bc3b61
standardise ids for tour anchors
...
To make it harder to accidentally mess up the tour when making changes to pages, this commit adds ids with 'tour' prefixes to (nearly) all elements used by the guided tour as anchor points. The exception is where an element already had an id that is being used by something else in Bookwyrm.
Some minor changes also made to clean up the wording of the tour.
2022-07-03 15:57:10 +10:00
Hugh Rundle
a8940b8e12
Fix order of tour
...
The tour now shows users how to add a book first, then bookshelves, lists, and finally groups.
2022-07-03 14:48:23 +10: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
Hugh Rundle
06b4a55979
add lists to guided tour
...
Takes user through the main /list page, as well as the options for creating a list.
2022-07-03 09:10:43 +10: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_task
s
...
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
Hugh Rundle
827a63b4eb
add shelves to guided tour
2022-07-02 18:46:16 +10:00
Hugh Rundle
d1079a1f7d
remove console log from guided_tour.js
2022-07-02 18:44:18 +10: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
Hugh Rundle
bc4a1c6c41
Guided tour of book page
...
This is intended to be one of the earlier pages in the tour. It should show users the concept of reading status, editions, and other useful points.
2022-06-19 14:06:36 +10:00
Hugh Rundle
ff37b77be9
clean up search guided tour code
2022-06-19 11:13:04 +10:00
Hugh Rundle
fef66a7cfe
guided tour for book search
...
Adds a guided tour for book search page including logic for differing messages depending on what results are visible.
2022-06-19 11:08:01 +10:00
Hugh Rundle
0e06143c31
add guided tour to user shelves
2022-06-18 17:17:22 +10:00
Hugh Rundle
044a173095
remove CSRF from tour scripts
2022-06-18 17:16:43 +10:00
Hugh Rundle
57965973dc
make guided tour cancel button DRY
...
Move cancel button function into a separate JS file.
The selector JS for this function cannot be within bookwyrm.js because the guided tour elements load after bookwyrm.js.
2022-06-18 13:27:00 +10:00
Hugh Rundle
5bf835b965
fix typos
2022-06-18 10:49:42 +10:00
Hugh Rundle
d36dd9ce96
guided tour for user groups
...
Includes adding creating a new group.
2022-06-18 10:48:14 +10:00
Hugh Rundle
00df3c94df
add guided tour for user groups page
...
- add ID for add group button
- add tour steps for user groups page
- trigger tour steps if guided tour is turned on
2022-06-13 20:27:36 +10:00
Hugh Rundle
7fbc9914de
change cancel buttons for guided tour
...
The first pop up in the guided tour on each page should provide a button to switch off the guided tour altogether, not simply cancel the current iteration.
If we don't do this, then the only way to turn off the guided tour is to go right to the end, which could be really irritating, especially for people who star the tour and then start exploring on their own.
2022-06-13 20:25:42 +10:00
Hugh Rundle
fbf7f37664
user profile tour only on activity tab
2022-06-13 19:36:14 +10:00
Hugh Rundle
aebeac9112
add guided tour to user profile
...
- adds ids to relevant elements to enable tour
- adds guided tour using Shepherd
2022-06-13 17:26:53 +10:00
Hugh Rundle
83e7302bc1
update home feed guided tour
2022-06-13 16:56:07 +10:00
Hugh Rundle
2030dc834f
clean up tour files
2022-06-13 16:48:49 +10:00
Hugh Rundle
5f0e14934f
add guided tour to main feed page
...
This uses an embedded script tag so that we can use django templates for logic - most importantly, we need to be able to use translations within the tour text.
2022-06-13 15:29:20 +10:00
Hugh Rundle
6ffb0863d1
update tour link in main template
2022-06-13 15:27:05 +10:00
Hugh Rundle
8cadb3dc3b
fix guided tour url
...
Use a url fragment (<tour>) instead of a classic url param (/?tour=True)
2022-06-13 15:22:23 +10:00
Hugh Rundle
07225c6ddc
add guided tour link
2022-06-13 13:14:31 +10:00
Hugh Rundle
6b7caa9c71
url for setting show_guided_tour
...
Uses a URL param to indicate whether the value should be set to True or False.
Redirects to home page.
2022-06-13 13:10:31 +10:00
Hugh Rundle
80c71928c3
add show_guided_tour value to User
...
This boolean value indicates whether the user wishes to be show the guided tour.
It defaults to True but will be able to be easily set to False.
2022-06-13 13:07:48 +10:00
Hugh Rundle
2b431986d6
help tour button styling updates
2022-06-12 20:39:37 +10:00
Hugh Rundle
e768cf49a3
add barcode reader to home feed tour
2022-06-12 20:11:21 +10:00
Hugh Rundle
c614aeb28e
add shepherd tours
...
This file creates and triggers tours using shepherd.
Initially this is a tour on the home feed page, triggered by clicking on the help button in the top nav.
2022-06-12 19:43:21 +10:00
Hugh Rundle
806e2778df
add help button if page has tour
...
- include logic in main layout to add button if there is a page tour available
- add button for main user feed page
2022-06-12 19:41:50 +10:00
Hugh Rundle
f81095cb64
give suggested books block an id
2022-06-12 19:40:36 +10:00
Hugh Rundle
cfa659748c
add shepherd styles for guided tour
...
Adds a sass file based on the v10.0.0 Shepherd CSS. Original Shepherd styles are kept where appropriate, otherwise this is intended to inherit whatever styles are being used through the Bulma and Bookwyrm SASS, so that it uses appropriate colours in both light and dark modes.
2022-06-12 13:42:06 +10:00
Mouse Reeve
51f445bc72
Merge branch 'main' into bw-dev-npm-fix
2022-06-11 20:39:18 -07:00
Hugh Rundle
b6cd64f82a
add Shepherd version 10.0.0
2022-06-11 14:19:03 +10: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
7320375f0c
Merge branch 'main' into ignore-does-not-exist
2022-06-05 15:41:39 -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
7014786fe0
Run formatters
2022-06-05 13:41:00 -07:00
Joel Bradshaw
b744ff7836
Run black
2022-06-05 13:40:01 -07:00
Joel Bradshaw
482005f304
Update preview image generation to only query ids
...
Previously we were querying the full book objects just to get a list of
id's, which is much slower and also takes a lot more memory, which can
cause the process to be killed on memory-limited machines with a large
number of books.
Instead, since we're just dispatching jobs here, we can just ask for the
id's, which is faster and much more practical memory-wise.
The map is a little annoying, I didn't see a way to directly get just a
list of the value of one field, so we have to get a list of
dictionairies with one key and then pull that key out. Whatevs.
2022-06-05 13:07:44 -07:00
Hugh Rundle
4de9989d8e
add page numbers to comment and quote statuses
...
This adds the page number for quote and comment statuses where a page number is provided:
- all ActivityPub posts
- Explore cards for comments (quotes already have the page number)
This responds to #2136
2022-06-05 16:02:25 +10:00
Mouse Reeve
d5bbb759e0
Merge pull request #2146 from bookwyrm-social/locales
...
Updates locales for stopped reading strings
2022-05-31 17:09:44 -07:00
Mouse Reeve
077c9bfe46
Updates locales for stopped reading strings
2022-05-31 16:53:46 -07:00
Mouse Reeve
9d5e113b92
Merge pull request #2145 from bookwyrm-social/about-layout
...
Clip column in about page
2022-05-31 14:05:43 -07:00
Mouse Reeve
4c050d0999
Merge pull request #2141 from bookwyrm-social/ol-search-rank
...
Use relative list order ranking in OpenLibrary search
2022-05-31 13:11:49 -07:00
Mouse Reeve
c738eaa2c2
Use async requests for broadcasting
...
When an activity needs to be broadcast to the whole wide fediverse, the
number of requests can get enormous and the broadcast task ends up
taking ages to run. This change sends these requests out in one aiohttp
session, to improve performance.
2022-05-31 13:09:27 -07:00
Mouse Reeve
d149e57494
Split expand book data task into per-edition tasks
...
Loading every edition in one task takes ages, and produces a large task
that clogs up the queue. This will create more, smaller tasks that will
finish more quickly.
2022-05-31 12:41:57 -07:00
Mouse Reeve
20f452ebf4
Clip column in about page
...
Text in the superlatives section can cause this column to expand outside
the container.
2022-05-31 12:23:59 -07:00
Mouse Reeve
374fdcf467
Use relative list order ranking in openlibrary search
...
Set OpenLibrary search condifidence based on the provided result order,
just using 1/(list index), so the first has rank 1, the second 0.5, the
third 0.33, et cetera.
2022-05-31 10:22:49 -07:00
Mouse Reeve
355e7039f0
Merge pull request #2139 from bookwyrm-social/search-refactor
...
Search refactor
2022-05-31 10:22:17 -07:00
Mouse Reeve
c3b35760a2
Updates test mocks for remote search
2022-05-31 09:37:54 -07:00
Mouse Reeve
969db13ff2
Safely return None in remote search return_first
2022-05-31 08:49:23 -07:00
Mouse Reeve
05fd30cfcf
Pylint fixes in connector tests
2022-05-31 08:37:07 -07:00
Mouse Reeve
5e99002aad
Raise priority for external connectors in initdb
...
By default, OpenLibrary and Inventaire were prioritzed below other
BookWyrm nodes. In practice, people have gotten better search results
from these connectors, hence the change. With the search refactor, this
has much less impact, but it will show these search results higher in
the list.
If the results page shows all the connectors' results integrated, this
field should be removed entirely.
2022-05-31 08:25:02 -07:00
Mouse Reeve
a053f20961
Re-implements return first option
...
Since we get all the results quickly now, this aggregates all the
results that came back and sorts them by confidence, and returns the
highest confidence result. The confidences aren't great on free text
search, but conceptually that's how it should work at least.
It may make sense to aggregate the search results in all contexts, but
I'll propose that in a separate PR.
2022-05-31 08:20:59 -07:00
Mouse Reeve
98ed03b6b4
Python formatting and test update
2022-05-30 17:00:34 -07:00
Mouse Reeve
83ee5a756f
Filter intentaire results by confidence
2022-05-30 16:42:37 -07:00
Mouse Reeve
af19d728d2
Removes outdated unit tests
2022-05-30 16:16:10 -07:00
Mouse Reeve
87fe984462
Combines search formatter and parser function
...
The parser was extracting the list of search results from the json
object returned by the search endpoint, and the formatter was converting
an individual json entry into a SearchResult object. This just merged
them into one function, because they are never used separately.
2022-05-30 12:52:31 -07:00
Mouse Reeve
525e2a591d
More error handing
...
Adds logging and error handling for some of the numerous ways a request
could fail (the remote site is down, the url is blocked, etc).
I also have the results boxes open by default, which makes it more
legible imo.
2022-05-30 12:40:13 -07:00
Joel Bradshaw
7ae0db7f4a
Ignore VariableDoesNotExist errors in debug logging
...
They're so noisy as to make debug logging useless otherwise
2022-05-30 12:15:50 -07:00
Mouse Reeve
45f2199c71
Gather and wait on async requests
...
This sends out the request tasks all at once and then aggregates the
results, instead of just running them one after another asynchronously.
2022-05-30 12:05:22 -07:00
Mouse Reeve
5e81ec75fb
Set request headers in async search get request
...
Gotta ask for json
2022-05-30 11:19:16 -07:00
Mouse Reeve
9a9cef7766
Verify url before async search
...
The database lookup doesn't work during the asyn process, so this change
loops through the connectors and grabs the formatted urls before sending
it to the async handler.
2022-05-30 11:16:05 -07:00
Mouse Reeve
0adda36da7
Remove search endpoints from Connector
...
Instead of having individual search functions that make individual
requests, the connectors will always be searched asynchronously
together. The process_seach_response combines the parse and format
functions, which could probably be merged into one over-rideable
function.
The current to-do on this is to remove Inventaire search results that
are below the confidence threshhold after search, which used to happen
in the `search` function.
2022-05-30 10:37:24 -07:00
Mouse Reeve
9c03bf782e
Make an async request to all search connectors
...
This is the untest first pass at re-arranging remote search to work in
parallel rather than sequence. It moves a couple functions around
(raise_not_valid_url, for example, needs to be in connector_manager.py
now to avoid circular imports). It adds a function to Connector objects
that generates a search result (either to the isbn endpoint or the free
text endpoint) based on the query, which was previously done as part of
the search.
I also lowered the timeout to 8 seconds by default.
2022-05-30 10:15:22 -07:00
Mouse Reeve
7905be7de2
Merge pull request #2138 from bookwyrm-social/ratings-query
...
Use general ratings rather than privacy filtered
2022-05-30 09:33:05 -07:00
Mouse Reeve
fb3c7205af
Updates unit tests
2022-05-30 09:17:51 -07:00
Mouse Reeve
fc3b609ada
Use general ratings rather than privacy filtered
...
The original system customized how a rating is displayed to every user
based on the privacy settings of the reviews and, relatedly, who the
user follows. This is cool, but the query is too complicated to load in
sessions, and the initial load, which isn't mitigated by caching, is too
much and causes timeouts for many users. Also the cache clearing wasn't
working correctly because I put in a wildcard, which does not work.
2022-05-30 08:42:48 -07:00
Mouse Reeve
4e3c346780
Merge pull request #2134 from bookwyrm-social/stopped-shelf-fixes
...
Stopped shelf fixes
2022-05-26 13:12:57 -07:00
Mouse Reeve
74925a379a
Prettier
2022-05-26 12:54:31 -07:00
Mouse Reeve
4e0e6ed5a4
Tick javascript cache and version number
2022-05-26 12:49:04 -07:00
Mouse Reeve
09db4e48f4
Hide rather than remove current shelve list items
2022-05-26 12:46:34 -07:00
Mouse Reeve
c5f5d4d994
Only show "stop" option when a book is in progress
2022-05-26 12:27:44 -07:00
Mouse Reeve
4905652e22
Handle stopped reading special case in javascript
...
This should be refactored, but maybe not today
2022-05-26 12:23:13 -07:00
Mouse Reeve
4c5d2570ab
Save and display stopped date in readthrough
2022-05-26 11:53:33 -07:00
Mouse Reeve
dfe0656eb4
Typo fix
2022-05-26 11:38:36 -07:00
Mouse Reeve
375c5a8789
Adds stopped date separate from finish date on readthrough
2022-05-26 11:36:37 -07:00
Mouse Reeve
1f6fbd8d29
Fixes stopped reading button logic
...
The stopped state is similar to finished
2022-05-26 11:28:54 -07:00
Mouse Reeve
9b4a498661
Don't show a button for the shelf a book is currently on
...
This will lead to nonsensical modal states
2022-05-26 11:19:49 -07:00
Mouse Reeve
92dbfec5f8
Adds status header for stopped reading statuses
2022-05-26 11:10:14 -07:00
Mouse Reeve
6848616ff1
Fixes reading status field in stop modal
...
The value of the reading status needs to match one of the database
options for `reading_status` in the `Comment` model
2022-05-26 11:09:11 -07:00
Mouse Reeve
007751c8cb
Adds error logging to status views
2022-05-26 10:58:11 -07:00
Mouse Reeve
23c6019340
Adds merge migration
2022-05-26 10:23:32 -07:00
Mouse Reeve
77a7dfa924
Merge pull request #2133 from bookwyrm-social/activitypub-connection-erorr
...
Don't throw an error when unable to connect to remote data
2022-05-26 10:12:18 -07:00
Mouse Reeve
88b2cffcf2
Merge pull request #2035 from bookwyrm-social/stopped-shelf
...
Stopped shelf
2022-05-26 10:11:32 -07:00
Mouse Reeve
9d275db322
Updates ignore boost logic that no longer produces errors
2022-05-26 09:57:39 -07:00
Mouse Reeve
3e54a5f4a3
Python formatting
2022-05-26 09:00:45 -07:00
Mouse Reeve
0bfe1e9dfc
Don't throw an error when unable to connect to remote data
2022-05-25 13:24:11 -07:00
Mouse Reeve
f4226b050f
Merge pull request #2129 from bookwyrm-social/locales
...
Updates locales (changes to German, Romanian)
2022-05-23 18:02:45 -07:00
Mouse Reeve
b8ddafffbe
Merge pull request #2130 from bookwyrm-social/followers-hidden
...
Make an exception for yourself when followers are hidden
2022-05-23 18:02:34 -07:00
Mouse Reeve
0f7317f8fe
Make an exception for yourself when followers are hidden
2022-05-23 15:31:05 -07:00
Mouse Reeve
867981b2a4
Updates locales (changes to German, Romanian)
2022-05-23 15:20:35 -07:00
Mouse Reeve
6d5923bb8f
Merge pull request #2128 from bookwyrm-social/multiple-authors
...
Multiple authors not added when editing book
2022-05-23 14:07:54 -07:00
Mouse Reeve
3ed685e341
Merge pull request #2126 from bookwyrm-social/black-update
...
Updates black version
2022-05-23 13:59:19 -07:00
Mouse Reeve
9172d7ff4e
Merge pull request #2127 from bookwyrm-social/add-book
...
Corrects redirect to confirm mode when adding book
2022-05-23 13:59:12 -07:00
Mouse Reeve
69f192e78c
Fixes error in add author code returning too soon
2022-05-23 13:57:14 -07:00
Mouse Reeve
b2c587e082
Adds unit test for add author code when editing book
2022-05-23 13:51:58 -07:00
Mouse Reeve
efd1fd82a9
Corrects redirect to confirm mode when adding book
2022-05-23 13:02:06 -07:00
Mouse Reeve
ae2006c726
Updates black version
2022-05-23 12:46:45 -07:00
Mouse Reeve
1843959d10
Merge pull request #2093 from Ryuno-Ki/calibre-import
...
Calibre import. Fixes #627
2022-05-23 12:37:50 -07:00
Mouse Reeve
212bd49e6c
Merge pull request #2125 from bookwyrm-social/edit-author
...
Fixes edit author paths
2022-05-23 12:26:07 -07:00
André Jaenisch
d837146b66
Make black happy
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-23 20:59:28 +02:00
André Jaenisch
b564e514fd
Handle parsed dates that already have a timezone on import.
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-23 20:52:57 +02:00
André Jaenisch
12541d5f1c
Map timestamp to date_added to avoid integrity error.
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-23 20:52:26 +02:00
Mouse Reeve
d8b2ab74d1
Fixes edit author paths
2022-05-23 11:08:04 -07:00
Mouse Reeve
065095776f
Merge pull request #2119 from bookwyrm-social/edit-book
...
Fixes urls in edit book form
2022-05-19 10:47:10 -07:00
Mouse Reeve
6d7bb33683
Fixes urls in edit book form
2022-05-19 09:32:01 -07:00
Mouse Reeve
cbd43c42a9
Merge pull request #2115 from bookwyrm-social/book-langs
...
Prevent error when a book language has a null value
2022-05-16 11:41:07 -07:00
Mouse Reeve
8d2da587d9
Prevent error when a book language has a null value
2022-05-16 11:06:11 -07:00
Mouse Reeve
39b6364e62
Merge pull request #2114 from bookwyrm-social/sentry-error-article
...
Fixes exception when receiving Article type activities
2022-05-16 10:38:15 -07:00
Mouse Reeve
b2775c5160
Check unsupported types before attempting to serialize
2022-05-16 10:21:54 -07:00
Mouse Reeve
fd43b56d31
Fixes celery error encountering Article type activities
2022-05-16 10:17:21 -07:00
Mouse Reeve
17864da8a2
Merge pull request #2113 from bookwyrm-social/status-priority
...
Fixes how backdated statuses are prioritized
2022-05-16 09:49:39 -07:00
Mouse Reeve
fdd4691e00
Adds unit test
2022-05-16 09:41:34 -07:00
Mouse Reeve
876d9c2695
Fixes how backdated statuses are prioritized
2022-05-16 09:24:01 -07:00
Mouse Reeve
74368ab159
Merge branch 'main' into list-privacy
2022-05-16 08:10:43 -07:00
Mouse Reeve
fd66961ab8
Merge pull request #2104 from maxheadroom/main
...
add automatic restart of containers
2022-05-16 08:07:49 -07:00
Mouse Reeve
ae8edce197
Merge pull request #2111 from maeserichar/fix_broken_links
...
Fix broken links in README
2022-05-16 08:05:44 -07:00
Mouse Reeve
241169650d
Merge pull request #2007 from viviicat/url-names
...
Add names of books/lists/authors/etc as slugs, redirect to slugified version of the page
2022-05-16 08:04:58 -07:00
Mouse Reeve
23eb1c1b10
Merge pull request #1942 from willhoh/isbn_search
...
Isbn check befor search
2022-05-16 08:01:31 -07:00
Ricardo Rodríguez
643a3509dd
docs: Fix broken links in README
2022-05-15 13:01:25 +02:00
Mouse Reeve
a5f9efc2b5
Merge pull request #2110 from bookwyrm-social/locales
...
Updates locales
2022-05-14 08:43:35 -07:00
Mouse Reeve
8c0ad7e73d
Updates locales
2022-05-14 08:29:25 -07:00
Falko Zurell
d0b7474744
add automatic restart of containers
...
Added ```restart: unless-stopped``` to keep containers up and running after a reboot.
2022-05-09 11:00:28 +02:00
Mouse Reeve
49e6eb8f68
Merge pull request #2092 from bookwyrm-social/locale-updates
...
Updates locales
2022-05-06 12:50:49 -07:00
Mouse Reeve
ba7c39404b
Merge pull request #2103 from denmch/bugfix-profile-link
...
Replace user|username with request.user.localname
2022-05-06 12:19:34 -07:00
Den McHenry
80b0206e0d
Replace user|username with request.user.localname
2022-05-06 10:29:25 -07:00
André Jaenisch
62c7661fb9
Reformat tests using black
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 21:31:56 +02:00
André Jaenisch
22fcb61fb2
Write tests for Calibre importer
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:08:01 +02:00
André Jaenisch
6bd9b725e2
Refactor hard-coded strings with a reference to a static property
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:07:25 +02:00
André Jaenisch
eeb1cc7197
Use a default shelf because Calibre indicates no reading status
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-04-30 19:08:31 +02:00
André Jaenisch
3626db3c1a
Add Calibre importer for CSV exports
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-04-30 15:25:35 +02:00
Mouse Reeve
95c043cc92
Updates locales
2022-04-29 15:44:31 -07:00
Mouse Reeve
a4a06fa32c
Merge pull request #2090 from bookwyrm-social/dashboard-warning
...
Fixes invite request alert count
2022-04-29 15:41:57 -07:00
Mouse Reeve
966bec1d18
Fixes invite request alert count
2022-04-26 08:33:15 -07:00
Mouse Reeve
708dc4d613
Merge pull request #2089 from bookwyrm-social/no-confirmation
...
Show clearer behavior when no email confirmation is needed after all
2022-04-26 08:24:35 -07:00
Mouse Reeve
a6cb46356f
Show clearer behavior when no email confirmation is needed after all
2022-04-26 08:14:31 -07:00
Mouse Reeve
34be995125
Merge pull request #2087 from bookwyrm-social/locales
...
Updates locales
2022-04-26 07:50:16 -07:00
Mouse Reeve
676a51411f
Updates locales
2022-04-26 07:41:23 -07:00
Mouse Reeve
93ec53f523
Merge pull request #2085 from bookwyrm-social/dependabot/pip/django-3.2.13
...
Bump django from 3.2.12 to 3.2.13
2022-04-25 09:20:12 -07:00
dependabot[bot]
3559bb5630
Bump django from 3.2.12 to 3.2.13
...
Bumps [django](https://github.com/django/django ) from 3.2.12 to 3.2.13.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.12...3.2.13 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-22 22:47:05 +00:00
Mouse Reeve
a2a04da493
Adds many to many related items to notifications
2022-04-09 09:44:42 -07:00
Mouse Reeve
358c507839
Merge pull request #2080 from viviicat/dark-read-hist-editions
...
Further dark theme fixes
2022-04-09 07:53:17 -07:00
Vivianne Langdon
64b623df32
fixes for bulma not having good dark support
2022-04-09 00:06:10 -07:00
Vivianne Langdon
d3992802f2
use a new has-text-default instead of has-text-black
2022-04-08 23:14:30 -07:00
Vivianne Langdon
b0d3eaeb40
allow empty slugs, for non-url-friendly book names
2022-04-08 22:11:05 -07:00
Vivianne
5a2bf64864
Merge branch 'bookwyrm-social:main' into url-names
2022-04-08 21:45:37 -07:00
Mouse Reeve
8d266fda4d
Removes unused related_book
field on notification model
2022-04-08 15:21:38 -07:00
Mouse Reeve
300eea3b94
Merge pull request #2074 from bookwyrm-social/pylint-tests-dir
...
Include test files in pylint
2022-04-08 14:39:44 -07:00
Mouse Reeve
8b7f664da3
Merge pull request #2078 from bookwyrm-social/locales
...
Consistent formatting for "BookWyrm" name
2022-04-08 14:34:46 -07:00
Mouse Reeve
2c394a2518
Fixes typo
2022-04-08 14:29:42 -07:00
Mouse Reeve
8ea1171764
Python formatting
2022-04-08 14:24:14 -07:00
Mouse Reeve
9921a1e754
Various pylint complaince fixes
2022-04-08 14:23:37 -07:00
Mouse Reeve
a92bf785dd
Updates init files for pylint
2022-04-08 14:16:05 -07:00
Mouse Reeve
3c1f95a83a
Updates locales
2022-04-08 14:01:13 -07:00
Mouse Reeve
6455476df7
Consistent formatting for "BookWyrm" name
2022-04-08 13:59:10 -07:00
Mouse Reeve
e0fa0b859a
Merge pull request #2077 from bookwyrm-social/main-dropdown
...
Uses details for user menu in main navbar
2022-04-08 13:58:15 -07:00
Mouse Reeve
ae8fed3e82
Removes stray dash from template
2022-04-08 13:50:06 -07:00
Mouse Reeve
51f5c9562d
Uses details for user menu in main navbar
2022-04-08 13:45:17 -07:00
Mouse Reeve
1a6e98b546
Merge pull request #2073 from bookwyrm-social/update-locales
...
Updates locales
2022-04-04 15:38:21 -07:00
Mouse Reeve
fe85784ceb
Merge pull request #2072 from bookwyrm-social/zsh-complete
...
Adds zsh-specific completions file
2022-04-04 15:26:31 -07:00
Mouse Reeve
9e803043b2
Include test files in pylint
2022-04-04 15:24:39 -07:00
Mouse Reeve
bada50cee9
Updates locales
2022-04-04 15:20:15 -07:00
Mouse Reeve
b718e01a5c
Adds zsh-specific completions file
2022-04-04 15:17:18 -07:00
Mouse Reeve
4c09477aa2
Improves instance list admin view ( #2068 )
...
* Removes irrelevent initial federated server data
* Adds secondary search order to instance list
* Show last updated date
* Adds filters to federated server view
* Updates unit tests
2022-04-02 09:16:07 -07:00
Mouse Reeve
ae86829a7e
Adds Finnish locale ( #2069 )
...
* Adds Finnish locale
2022-03-31 08:20:52 -07:00
Mouse Reeve
c7261780a8
Updates locales ( #2065 )
2022-03-26 14:34:15 -07:00
Mouse Reeve
71cbe611de
Merge migration
2022-03-26 13:07:27 -07:00
Mouse Reeve
ec21d20b90
Merge branch 'main' into stopped-shelf
2022-03-26 13:06:06 -07:00
Mouse Reeve
701a644c31
Export user book data as csv ( #1556 )
...
Simple book data export
2022-03-26 13:04:59 -07:00
Mouse Reeve
0728864fe0
Merge pull request #2064 from bookwyrm-social/ui-fixes
...
Misc theme fixes
2022-03-26 11:48:59 -07:00
Mouse Reeve
3ebc800a9b
Fixes progress bar color in dark mode
2022-03-26 11:38:00 -07:00
Mouse Reeve
23ff58a62b
Fixes scrollbar colors in dark mode
2022-03-26 11:35:24 -07:00
Mouse Reeve
0666a2d02f
Remove transparent class on interaction buttons
2022-03-26 11:07:58 -07:00
Mouse Reeve
b23f4a7e18
Clip statuses
2022-03-26 11:00:53 -07:00
Mouse Reeve
7cbf78c5fd
Merge pull request #2056 from bookwyrm-social/duplicate-follow-requests
...
Trigger rebroadcast of follow requests
2022-03-26 10:42:06 -07:00
Mouse Reeve
00c36de745
Merge pull request #2062 from bookwyrm-social/locales
...
Adds Romanian locale
2022-03-26 10:41:07 -07:00
Mouse Reeve
85f507d6b9
Python formatting
2022-03-26 10:34:02 -07:00
Mouse Reeve
5cf52cff54
Formats migration
2022-03-26 10:32:07 -07:00
Mouse Reeve
c527e0e411
Merge pull request #2061 from bookwyrm-social/link-typo
...
Fixes typo in about link
2022-03-26 10:30:59 -07:00
Mouse Reeve
a1487ccae5
Merge branch 'main' into duplicate-follow-requests
2022-03-26 10:28:58 -07:00
Mouse Reeve
2d7902ff89
Resolve second integrity error
2022-03-26 10:27:49 -07:00
Mouse Reeve
dc171776f8
Merge branch 'main' into link-typo
2022-03-26 10:21:52 -07:00
Mouse Reeve
44af09336c
Merge branch 'main' into locales
2022-03-26 10:21:43 -07:00
Mouse Reeve
566182c046
Merge pull request #2063 from bookwyrm-social/pylint-warning
...
Avoid new pylint complaint
2022-03-26 10:21:34 -07:00
Mouse Reeve
90277a1697
Avoid new pylint complaint
2022-03-26 10:07:06 -07:00
Mouse Reeve
a6ae55608a
Adds Romanian locale
2022-03-26 10:03:50 -07:00
Mouse Reeve
27e23e76ae
Fixes typo in about link
2022-03-26 09:43:49 -07:00
Mouse Reeve
4f24b05d60
Clear cache regardless of view success
2022-03-24 13:10:49 -07:00
Mouse Reeve
aefb0c9b14
Re-consider list privacy on edit
...
Please run ci??
2022-03-24 12:49:38 -07:00
Mouse Reeve
6808b70d3f
Merge pull request #2055 from bookwyrm-social/reports
...
Paginate reports
2022-03-24 11:35:48 -07:00
Mouse Reeve
a3b9c621af
Trigger rebroadcast of follow requests
2022-03-24 11:35:05 -07:00
Mouse Reeve
0166cca0b7
Show created date and follower counts in admin view
...
Adds "admin_mode" to user_preview
2022-03-24 11:17:35 -07:00
Mouse Reeve
82f87a3ff5
Adds colored icon for user status in admin table
2022-03-24 10:55:32 -07:00
Mouse Reeve
533642bf7e
Adds link to admin view
2022-03-24 10:43:17 -07:00
Mouse Reeve
951b611881
Paginates results
2022-03-24 10:40:42 -07:00
Mouse Reeve
88e915409b
Merge pull request #2048 from bookwyrm-social/import-help
...
Import help
2022-03-21 13:09:51 -07:00
Mouse Reeve
43cc017b44
Removes tooltip component
2022-03-21 12:32:53 -07:00
Mouse Reeve
9e792a8901
Italics for null state text on import page, to be consistent
2022-03-21 12:26:07 -07:00
Mouse Reeve
34166b8a2f
Uses help instead of tooltip for goodreads export info
2022-03-21 12:24:47 -07:00
Mouse Reeve
3f7afc9014
Adds prompt to import books in null state of suggested books
2022-03-21 12:24:31 -07:00
Mouse Reeve
a29db4840c
Merge pull request #2046 from bookwyrm-social/resend-flow
...
Resend flow
2022-03-19 15:28:30 -07:00
Mouse Reeve
1b53c81351
Updates tests
2022-03-19 15:16:20 -07:00
Mouse Reeve
78ac252dae
Python formatting
2022-03-19 12:08:57 -07:00
Mouse Reeve
f2ab890b5a
Adds fallback form to modal
2022-03-19 12:07:07 -07:00
Mouse Reeve
4386d2ddb9
Switches resend email to modal
2022-03-19 12:00:16 -07:00
Mouse Reeve
5655b94bad
Merge pull request #2044 from bookwyrm-social/date-picker
...
Uses custom date select widget for publication dates
2022-03-19 09:33:53 -07:00
Mouse Reeve
b134c0c2fd
Merge pull request #2045 from bookwyrm-social/dashboard-display
...
Dashboard display small fixes
2022-03-19 09:33:19 -07:00
Mouse Reeve
f0a87e2a20
Use fullwidth tables in admin views
2022-03-19 09:16:28 -07:00
Mouse Reeve
7f6a98e764
Don't let site settings form get too wide
2022-03-19 09:11:59 -07:00
Mouse Reeve
1cfe3b3f94
Re-orders site settings registration toggles
...
Having require email confirm next to allow registration seems better to
me
2022-03-19 09:09:25 -07:00
Mouse Reeve
45672c2b70
Adds missing widgets file
2022-03-19 09:04:50 -07:00
Mouse Reeve
68e3a71b18
Consistent height for instance stats
2022-03-19 09:01:04 -07:00
Mouse Reeve
09e040ec11
Equal height for dashboard notifications
2022-03-19 08:59:41 -07:00
Mouse Reeve
dc9f8fccb7
Adds widgets file
2022-03-19 08:48:10 -07:00
Mouse Reeve
a701bfcf8e
Uses custom date select widget for publication dates
2022-03-19 08:45:10 -07:00
Mouse Reeve
db5f509475
Merge pull request #2042 from bookwyrm-social/progress-updates
...
Fixes progress updates
2022-03-18 19:30:54 -07:00
Mouse Reeve
55dc998d03
Retain start date when updating from modal
2022-03-18 19:20:43 -07:00
Mouse Reeve
287b5603d6
Fixes progress updates
2022-03-18 19:11:58 -07:00
Mouse Reeve
f52b8fc028
Merge pull request #2040 from bookwyrm-social/edit-book
...
Fixes edit book page
2022-03-18 07:37:32 -07:00
Mouse Reeve
713391f468
Fixes edit book page
2022-03-18 07:28:07 -07:00
Mouse Reeve
576d0ee189
Merge pull request #2038 from bookwyrm-social/build-script
...
Comments out build script step in update command
2022-03-17 10:36:23 -07:00
Mouse Reeve
184a463097
Comments out build script step in update command
2022-03-17 10:25:03 -07:00
Mouse Reeve
ee78cc7393
Merge pull request #2037 from bookwyrm-social/celery-queues
...
Adds auto-create queues option to config
2022-03-17 10:06:49 -07:00
Mouse Reeve
ee1850ed15
Merge pull request #2034 from bookwyrm-social/locales
...
Updates locales
2022-03-17 10:01:38 -07:00
Mouse Reeve
20e71dc0cd
Merge pull request #2036 from bookwyrm-social/author-performance
...
Simplifies query possibly causing author page performance issues
2022-03-17 10:01:26 -07:00
Mouse Reeve
117db78983
Adds auto-create queues option to config
2022-03-17 09:57:25 -07:00
Mouse Reeve
a584f077b7
Simplifies query likely causing author page performance issues
2022-03-17 09:51:54 -07:00
Mouse Reeve
c8fa031c23
Updates locales
2022-03-17 09:21:06 -07:00
Mouse Reeve
2047365d31
Merge pull request #1973 from bookwyrm-social/add-edition
...
Create another edition for existing work
2022-03-17 08:51:13 -07:00
Mouse Reeve
ef4e06ad52
Merge pull request #2033 from bookwyrm-social/author-sort
...
Reverts author view changes
2022-03-17 08:51:06 -07:00
Mouse Reeve
9e0d6ed512
Merge branch 'main' into author-sort
2022-03-17 08:31:45 -07:00
Mouse Reeve
0101d2561a
Python formatting
2022-03-17 08:18:44 -07:00
Mouse Reeve
a684d86d15
Fixes subjects in add edition view
2022-03-17 08:02:59 -07:00
Mouse Reeve
26f0501e2f
SHow editions link on all book pages
2022-03-17 07:40:55 -07:00
Mouse Reeve
997a671cfb
Consistent style for edit book confirm mode
2022-03-17 07:34:59 -07:00
Mouse Reeve
3ca611fb7c
Merge pull request #2031 from viviicat/dark-theme-fixes
...
Fixes for dark theme
2022-03-17 07:27:19 -07:00
Mouse Reeve
cf58d0ad5c
Reverts author view changes
2022-03-17 07:22:22 -07:00
Vivianne Langdon
51bb4c6f5d
make bw-dev consistent
2022-03-17 00:50:04 -07:00
Vivianne Langdon
225957ba8a
remove non-css extensions
2022-03-17 00:50:04 -07:00
Vivianne Langdon
54b8d2c3f3
add import rule override for styles
2022-03-17 00:50:04 -07:00
Vivianne Langdon
6f27b5fd2e
auto-fixes from running this
2022-03-17 00:50:04 -07:00
Vivianne Langdon
dbd5a02617
specify npm prefix and stylelint configs and adjust ignores
2022-03-17 00:50:04 -07:00
Vivianne Langdon
3050b33084
add success-light and warning-light!
2022-03-16 20:21:13 -07:00
Mouse Reeve
5255abb2af
Fixes create book view unit test
2022-03-16 17:55:41 -07:00
Mouse Reeve
0617b9424b
Merge pull request #2029 from bookwyrm-social/merge-error
...
Removes file added by merge
2022-03-16 17:31:02 -07:00
Mouse Reeve
178f26192b
Removes file added by merge
2022-03-16 17:15:53 -07:00
Mouse Reeve
0688dfa3aa
Merge pull request #2028 from bookwyrm-social/user-question-resolve
...
Resolves merge conflicts on user invite question PR
2022-03-16 17:09:35 -07:00
Mouse Reeve
8b061f9432
Manually updates migration
2022-03-16 16:53:16 -07:00
Mouse Reeve
7b3b357756
Merge branch 'main' into form-conflict
2022-03-16 16:51:57 -07:00
Mouse Reeve
44e68cd0a4
Whitespace fix
2022-03-16 16:50:34 -07:00
Mouse Reeve
922cc61a5f
Merge pull request #1998 from oragegu/question_invite_correct
...
Custom question option and field for spammed bookwyrm instances
2022-03-16 16:49:00 -07:00
Mouse Reeve
108981a226
Creates fresh migration and removes merges
2022-03-16 16:35:03 -07:00
Mouse Reeve
0cf2c07069
Merge branch 'main' into url-names
2022-03-16 16:32:07 -07:00
Mouse Reeve
ffec47ad9a
Merge pull request #2027 from bookwyrm-social/locales
...
Adds context and fixes whitespace in translation strings
2022-03-16 16:29:38 -07:00
Mouse Reeve
68dc5962ee
Merge branch 'main' into add-edition
2022-03-16 16:16:55 -07:00
Mouse Reeve
da100cd114
Adds context and fixes whitespace in translation strings
...
Also updates locales
2022-03-16 16:13:15 -07:00
Mouse Reeve
159b73d860
Fixes errors in migration
2022-03-16 13:54:25 -07:00
Mouse Reeve
819458e82a
Improves error reporting on activitypub parser
2022-03-16 13:53:54 -07:00
Mouse Reeve
f2b0b306e9
Merge pull request #1934 from tversteeg/partially-read-shelf
...
Add 'Stopped Reading' shelf
2022-03-16 13:51:15 -07:00
Mouse Reeve
eee325b662
Merge pull request #2026 from bookwyrm-social/missing-file
...
Adds missing update script
2022-03-16 13:41:43 -07:00
Mouse Reeve
ea69f9087f
Adds missing update script
2022-03-16 13:32:37 -07:00
Mouse Reeve
8969958e51
Merge pull request #2025 from bookwyrm-social/upgrade-scripts
...
Run miscellaneous scripts during update
2022-03-16 13:03:38 -07:00
Mouse Reeve
2b2aa078ad
Merge branch 'main' into upgrade-scripts
2022-03-16 12:54:25 -07:00
Mouse Reeve
f4e828e2fb
Merge pull request #1974 from bookwyrm-social/celerybeat
...
Schedules automod tasks
2022-03-16 12:54:06 -07:00
Mouse Reeve
ee973c7d72
Adds celerybeat update script
2022-03-16 12:53:27 -07:00
Mouse Reeve
78b03efe45
Updates bw-dev command and ticks version number
2022-03-16 12:53:05 -07:00
Mouse Reeve
820279166a
Adds update script
2022-03-16 12:39:49 -07:00
Thomas Versteeg
b3f03164cc
Apply black
2022-03-15 09:28:40 +01:00
Thomas Versteeg
ee414598bf
Merge branch 'main' into partially-read-shelf
2022-03-15 08:28:02 +00:00
Mouse Reeve
81b7dca4b9
Merge branch 'main' into celerybeat
2022-03-14 15:13:09 -07:00
Mouse Reeve
13b82c2740
Merge pull request #2020 from bookwyrm-social/multi-input
...
Array input field for forms
2022-03-14 15:07:00 -07:00
Mouse Reeve
a37f83c458
Get the field working
2022-03-14 14:55:41 -07:00
Mouse Reeve
716e357060
Use plus icon on add field button
2022-03-14 12:54:50 -07:00
Mouse Reeve
35e6dede09
Script to remove input fields
2022-03-14 12:41:41 -07:00
Mouse Reeve
a2f2104a08
Create non-functional UI for editing array fields
2022-03-14 12:41:41 -07:00
Mouse Reeve
916d6a417d
Merge pull request #2018 from bookwyrm-social/locales
...
Adds scanner translation strings
2022-03-14 12:40:53 -07:00
Mouse Reeve
486f70c7fb
Adds scanner translation strings
2022-03-14 12:31:29 -07:00
Mouse Reeve
d848b950dc
Merge pull request #2017 from bookwyrm-social/forms
...
Moves forms into separate files
2022-03-14 12:21:42 -07:00
Mouse Reeve
19202e2cd7
Fixes name of user forms file
2022-03-14 12:12:51 -07:00
Mouse Reeve
d3f723a07d
Splits forms into separate files
2022-03-14 12:06:50 -07:00
Mouse Reeve
7169f7ba20
Creates forms directory
2022-03-14 11:43:58 -07:00
Mouse Reeve
c0db081120
Merge pull request #2016 from bookwyrm-social/duplicate-script
...
Moves duplicate field script into its own file
2022-03-14 11:09:48 -07:00
Mouse Reeve
bfb8fc800a
Moves duplicate field script into its own file
2022-03-14 10:59:24 -07:00
Mouse Reeve
e0c0bebf65
Merge pull request #2015 from bookwyrm-social/admin-view-fix
...
Improves user admin view
2022-03-14 09:50:31 -07:00
Mouse Reeve
6ddf1aad91
Merge pull request #2000 from Tak/edit-subjects
...
Allow book subjects to be edited
2022-03-14 09:46:05 -07:00
Mouse Reeve
f42e863434
Updates user admin filters
2022-03-14 09:38:03 -07:00
Mouse Reeve
488d702473
Separate admin user list into tabbed lists
2022-03-14 09:27:18 -07:00
Mouse Reeve
bf68b70fba
Use breadcrumbs in use admin view
2022-03-14 09:10:48 -07:00
Mouse Reeve
e4f94780eb
Uses translated fields in admin user info
2022-03-14 09:10:42 -07:00
Corentin Feys
771fa5a00a
Merge branch 'main' into question_invite_correct
2022-03-13 23:44:20 +01:00
corentin-feys
a0ae96923c
fix to pass invite request pytest
2022-03-13 23:34:49 +01:00
corentin-feys
74a1697cda
fix to pass register pytest
2022-03-13 23:04:14 +01:00
corentin-feys
3e9cb2acb1
Revert to stable commit
...
This reverts commit d542be943f
.
2022-03-13 22:56:41 +01:00
Mouse Reeve
57cba4eb7a
Merge pull request #2013 from bookwyrm-social/theme-path
...
Manually add theme path rather than options
2022-03-13 13:30:32 -07:00
Mouse Reeve
c08459cf5d
Tick version number
2022-03-13 13:19:40 -07:00
Mouse Reeve
37beb5a8f4
Tick javascript cache buster
2022-03-13 13:19:02 -07:00
Mouse Reeve
3885ae789b
Manually add theme path rather than options
2022-03-13 13:15:42 -07:00
Mouse Reeve
753cd36f86
Merge pull request #2012 from bookwyrm-social/catch-update-book-error
...
Catch update book error
2022-03-13 12:53:09 -07:00
Mouse Reeve
c7efa23405
Display error message for remote failure
2022-03-13 12:38:29 -07:00
Mouse Reeve
739b394ccc
Catch error when trying to update book
2022-03-13 12:31:21 -07:00
Mouse Reeve
b32f3c1b7b
Merge pull request #1976 from viviicat/code-scanning
...
Add barcode scanning support
2022-03-13 12:26:31 -07:00
Mouse Reeve
5bd25ba740
Merge pull request #2011 from bookwyrm-social/update-locales
...
Updates locales
2022-03-13 12:14:42 -07:00
Mouse Reeve
2f124e00d1
Updates locales
2022-03-13 11:57:46 -07:00
Mouse Reeve
a69a9a401b
Merge pull request #2010 from bookwyrm-social/themes-text
...
Fixes instructions on admin themes view
2022-03-13 11:47:58 -07:00
Mouse Reeve
0c87ee1d4b
Fixes instructions on admin themes view
2022-03-13 11:36:31 -07:00
Mouse Reeve
9f19fb698b
Merge pull request #2009 from viviicat/sass-in-prod
...
add SASS_PROCESSOR_ENABLED = True
2022-03-13 11:31:24 -07:00
Orage Pika
bcdee8071c
fixing errors from check
2022-03-13 15:49:09 +01:00
Orage Pika
c99fe2bdc3
fixing errors from checks
2022-03-13 13:37:09 +01:00
Orage Pika
d2e6dfc07b
fixing errors from checks
2022-03-13 13:31:38 +01:00
Orage Pika
4fb3cbfc29
fixing errors from checks
2022-03-13 13:30:37 +01:00
Orage Pika
d542be943f
bw-dev black and fixing things according to the warning messages of the checks.
2022-03-13 13:23:58 +01:00
OragePika, aka "FANS DON'T CARE
974c569fc1
Merge branch 'main' into question_invite_correct
2022-03-13 13:14:23 +01:00
Vivianne Langdon
306f177d55
add SASS_PROCESSOR_ENABLED = True
2022-03-12 21:12:25 -07:00
Mouse Reeve
4cfa4046a1
Merge pull request #2008 from viviicat/fish-completions
...
Add autocompletions for fish shell
2022-03-12 06:39:09 -08:00
Vivianne Langdon
3358c233ea
remove no-up autocomplete
2022-03-12 04:38:42 -08:00
Vivianne Langdon
4530d4917a
make more compact with a function
2022-03-12 04:34:03 -08:00
Vivianne Langdon
822868bf87
fish autocompletions
2022-03-12 04:34:03 -08:00
Thomas Versteeg
5d8404f797
Add merge migration
2022-03-12 11:45:09 +01:00
Thomas Versteeg
9e6dfb4706
Merge branch 'main' into partially-read-shelf
2022-03-12 10:38:56 +00:00
corentin-feys
1b4e532f90
Added invite question migration
2022-03-12 11:19:14 +01:00
corentin-feys
5dbee33185
invite_question_text resets to default question when left blank
2022-03-12 11:13:42 +01:00
corentin-feys
7337f378c0
Hide the answer column from invites when invite questions are disabled
2022-03-12 11:10:44 +01:00
Vivianne Langdon
a4391f35c1
black
2022-03-11 22:31:40 -08:00
Vivianne Langdon
d6767e42fc
fix variable clash
2022-03-11 22:28:05 -08:00
Vivianne Langdon
cf53134577
disable linting unused-argument
2022-03-11 21:19:20 -08:00
Vivianne Langdon
598a0587cf
Fix issue with tabs on bottom of book page
2022-03-11 21:10:22 -08:00
Vivianne Langdon
f2d7bdbf27
in progress fixes for pylint
2022-03-11 20:14:45 -08:00
Vivianne Langdon
594fa5d058
Black
2022-03-11 20:00:13 -08:00
Vivianne
9fa8caba45
Merge branch 'bookwyrm-social:main' into url-names
2022-03-11 19:55:06 -08:00
Mouse Reeve
02a93bd730
Merge pull request #2006 from bookwyrm-social/log-level
...
Log info, not exception, for expected errors
2022-03-11 16:05:03 -08:00
Mouse Reeve
72d6a4ce52
Log info, not exception, for expected errors
2022-03-11 14:55:54 -08:00
Vivianne Langdon
5d25da93d5
revert previously changed unit tests
2022-03-11 04:25:50 -08:00
Vivianne Langdon
d9ac326c29
No more remote id with slug, just add slug in local path.
2022-03-11 04:18:52 -08:00
Mouse Reeve
e0ffcddd3c
Merge pull request #2003 from bookwyrm-social/modal-button-pattern
...
Consistent positioning of success buttons
2022-03-10 14:29:39 -08:00
Mouse Reeve
f2bf52ccb9
Merge pull request #2002 from bookwyrm-social/cw-refactor
...
Refactors content warning field
2022-03-10 14:29:16 -08:00
Mouse Reeve
dbf925f176
Removes trailing whitespace
2022-03-10 10:52:39 -08:00
Mouse Reeve
9977b33a8d
Group, list, and shelve form buttons
2022-03-10 10:49:33 -08:00
Mouse Reeve
d4be0ca58b
Report modal
2022-03-10 10:02:18 -08:00
Mouse Reeve
20453a9977
Delete readthrough and add cover modals
2022-03-10 09:57:55 -08:00
Mouse Reeve
8b4c9483ea
Udates sync modals
2022-03-10 09:49:27 -08:00
Mouse Reeve
cbcd5c7a57
Adds elided page range to editions
2022-03-10 09:49:17 -08:00
Mouse Reeve
672eee9c9c
Updates add file link modal
2022-03-10 09:41:32 -08:00
Mouse Reeve
d7eb118a07
Updates readthrough modal
2022-03-10 09:35:05 -08:00
Mouse Reeve
1657f28c5e
Updates verification modal button positions
2022-03-10 09:30:39 -08:00
Mouse Reeve
cc2b774fb5
Updates wording on content warning field
2022-03-10 09:16:50 -08:00
Mouse Reeve
bcd83ee802
Fixes list notes icon
2022-03-10 09:16:44 -08:00
Mouse Reeve
a922b8fd04
Uses details to show/hide content warning field
2022-03-10 09:03:24 -08:00
Mouse Reeve
e2476d1ad3
Move content warning toggle out of post options block
2022-03-10 08:38:06 -08:00
OragePika, aka "FANS DON'T CARE
3868421bed
Merge branch 'main' into question_invite_correct
2022-03-10 01:42:47 +01:00
Orage Pika
0c429ee6d7
bw-dev blacked
2022-03-09 16:04:58 +01:00
Levi Bard
0c0d0b6299
Allow book subjects to be edited
2022-03-09 10:33:59 +01:00
Mouse Reeve
ad1969162f
Merge pull request #1999 from bookwyrm-social/locales
...
Locale updates
2022-03-08 12:43:33 -08:00
Mouse Reeve
a751884762
Locale updates
2022-03-08 12:12:39 -08:00
corentin-feys
bb7d080f65
Replaced tabs with spaces
2022-03-07 21:20:42 +01:00
corentin-feys
35f115bc0a
removed unneeded code for invite question
2022-03-07 19:42:57 +01:00
corentin-feys
e1e03ebd22
removed unneded migrations
2022-03-07 19:41:24 +01:00
Orage Pika
5fbb5c655b
custom questions
2022-03-07 18:49:59 +01:00
Mouse Reeve
34a4c18397
Merge branch 'main' into partially-read-shelf
2022-03-05 19:23:35 -08:00
Mouse Reeve
723ec8d461
Merge pull request #1994 from bookwyrm-social/theme-file
...
Adds custom compile management command
2022-03-04 17:58:46 -08:00
Mouse Reeve
f26106fffd
Python formatting
2022-03-04 12:42:43 -08:00
Mouse Reeve
b0c0af9617
Adds custom compile management command
2022-03-04 12:40:06 -08:00
Vivianne Langdon
8838875879
Fix failure to 404
2022-03-02 04:07:13 -08:00
Vivianne Langdon
81594892ef
Fix test for unit test requests
2022-03-02 03:42:29 -08:00
Vivianne Langdon
05f11e68c5
Hopefully knocking out many of the unit test fails
2022-03-02 03:11:02 -08:00
Vivianne Langdon
440e2f8806
black
2022-03-02 01:47:08 -08:00
Vivianne Langdon
2b483488aa
Remove slugs from shelf as their id has text in it already
2022-03-02 01:37:58 -08:00
Vivianne Langdon
846963ad18
Fix accidental change to post
2022-03-02 01:16:30 -08:00
Vivianne Langdon
d8181d6d66
Redirect to correct url with slug
2022-03-02 01:12:32 -08:00
Vivianne Langdon
ebf463fc91
Generation of slugs and new urls to handle slugs
...
- TODO: redirect to correct slug if not found.
2022-03-02 00:21:23 -08:00
Vivianne
3ee3e9a13c
Merge branch 'main' into code-scanning
2022-03-01 18:33:40 -08:00
Mouse Reeve
0751a56474
Merge pull request #1990 from bookwyrm-social/themes-fix
...
Temporary fix for broken themes
2022-03-01 14:52:47 -08:00
Mouse Reeve
a99d482167
Temporary fix
2022-03-01 14:38:50 -08:00
Mouse Reeve
f7c6c70c5e
Ticks version
2022-03-01 12:15:56 -08:00
Mouse Reeve
12ad88ac29
Merge pull request #1975 from bookwyrm-social/themes
...
Themes
2022-03-01 12:03:22 -08:00
Mouse Reeve
886448efc4
Merge pull request #1988 from bookwyrm-social/superlives
...
Keeps "superlatives" on about page local
2022-03-01 12:03:12 -08:00
Mouse Reeve
04ab584082
Update locales
2022-03-01 11:49:58 -08:00
Mouse Reeve
07daa24a72
Merge branch 'main' into themes
2022-03-01 11:46:02 -08:00
Mouse Reeve
89c8aa83f4
Tweaks preferences wording
2022-03-01 11:44:39 -08:00
Mouse Reeve
38535f811c
Python formatting
2022-03-01 11:39:08 -08:00
Mouse Reeve
41ea7db8b6
Removes hardcoded white in announcements
2022-03-01 11:06:15 -08:00
Mouse Reeve
55f1ce12cf
Second attempt at fixing tests using context processors
2022-03-01 11:05:47 -08:00
Mouse Reeve
4cdbdd8d0b
Merge pull request #1977 from viviicat/dark-theme
...
Dark theme
2022-03-01 11:00:05 -08:00
Mouse Reeve
9422a07414
Safer query for request user for tests
2022-03-01 10:36:19 -08:00
Mouse Reeve
5d7e6b872a
Fixes localizing query for superlatives
2022-03-01 10:34:17 -08:00
Mouse Reeve
d1d743281a
Cleans up display of superlatives on about page
2022-03-01 10:28:51 -08:00
Mouse Reeve
d2dab0f2db
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-03-01 10:20:39 -08:00
Mouse Reeve
c7c90f9e9b
Removes test print statement
2022-03-01 10:09:53 -08:00
Mouse Reeve
39fb402456
Merge pull request #1987 from viviicat/fix-reply-exception
...
Fix for TypeError/no focus when clicking on a reply
2022-03-01 09:58:31 -08:00
Mouse Reeve
f4dc07b6b9
Select theme in context processors
2022-03-01 09:53:02 -08:00
Vivianne Langdon
8e9bacc527
Fix red for <code> being too harsh
2022-02-28 23:31:57 -08:00
Vivianne Langdon
b4222bead4
Remove uuid for status reply panel
...
- The focus target did not include this uuid, so was throwing `Uncaught TypeError: node is null` when clicking on Reply button.
- I wasn't able to figure out how to share the uuid between blocks but it doesn't seem like the uuid is really needed -- the same block has other ids that do not have the uuid in them.
2022-02-28 23:01:33 -08:00
Vivianne Langdon
c0fed31fb0
eslint
2022-02-28 21:28:33 -08:00
Vivianne Langdon
40bb9112fd
.prettierignore to vendor
2022-02-28 21:23:44 -08:00
Vivianne Langdon
62b4133e58
Move quagga to vendor.
2022-02-28 21:22:49 -08:00
Vivianne
8c92869fc0
Merge branch 'main' into code-scanning
2022-02-28 21:17:32 -08:00
Mouse Reeve
2c8fa5cd9b
Merge branch 'themes' into dark-theme
2022-02-28 13:32:37 -08:00
Mouse Reeve
a6883b5b87
Adds merge migration
2022-02-28 13:30:02 -08:00
Mouse Reeve
043fd54d70
Merge branch 'main' into themes
2022-02-28 13:27:05 -08:00
Mouse Reeve
e1ea847441
Merge pull request #1986 from bookwyrm-social/instance-refresh
...
Instance refresh
2022-02-28 13:26:22 -08:00
Mouse Reeve
142ecdf6aa
Merge pull request #1984 from bookwyrm-social/hide-follows
...
Option for users to hide their followers/following lists
2022-02-28 13:13:40 -08:00
Mouse Reeve
9efd67f6bf
Merge pull request #1985 from Strubbl/patch-1
...
Update README.md
2022-02-28 13:13:15 -08:00
Mouse Reeve
81cfcff939
Reload instance data
2022-02-28 13:11:01 -08:00
Mouse Reeve
c91b08303b
More breadcrumbs
2022-02-28 12:31:28 -08:00
Mouse Reeve
f4aa202292
Adds counts of blocked and federated instances
2022-02-28 12:27:54 -08:00
Mouse Reeve
991461221d
Adds breadcrumbs instead of "back" link
2022-02-28 12:24:45 -08:00
Strubbl
1888e8c8ed
Update README.md
...
fix link to instances
2022-02-28 21:23:00 +01:00
Mouse Reeve
00d0d9d5de
Avoid whitespace when adding instance
2022-02-28 12:20:04 -08:00
Mouse Reeve
3dbbe0089c
Show if user follows you
2022-02-28 12:07:06 -08:00
Mouse Reeve
ec93d1812a
Block access to follow views
2022-02-28 12:04:47 -08:00
Thomas Versteeg
1e3f9246d6
Produce a proper status
2022-02-28 20:56:59 +01:00
Mouse Reeve
5837c37a32
Hide followers info slug
2022-02-28 11:55:54 -08:00
Mouse Reeve
e90cb52f23
Add option to hide follows
2022-02-28 11:48:49 -08:00
Thomas Versteeg
539775f370
Merge remote-tracking branch 'upstream/main' into partially-read-shelf
2022-02-28 20:44:55 +01:00
Mouse Reeve
6c17aa7630
Merge pull request #1983 from bookwyrm-social/shelf-name-translation
...
Shelf name translation
2022-02-28 11:28:53 -08:00
Mouse Reeve
5cdcac0682
Merge pull request #1981 from bookwyrm-social/list-duplicate-books
...
Show meaningful message when you try to add a duplicate book to a list
2022-02-28 11:21:18 -08:00
Mouse Reeve
b7111589c3
Merge pull request #1982 from bookwyrm-social/deleted-user-reviews
...
Remove reviews from deleted users
2022-02-28 11:20:44 -08:00
Mouse Reeve
7d6032e110
Fixes calls to filter
2022-02-28 11:18:03 -08:00
Mouse Reeve
ffb4098cfb
Fixes translation of "remove from shelf" string
2022-02-28 11:07:12 -08:00
Mouse Reeve
0f5fd6be15
Move translations to filter
2022-02-28 11:05:12 -08:00
Mouse Reeve
374dd24fa8
Remove reviews from deleted users
2022-02-28 10:47:08 -08:00
Mouse Reeve
142cc5437a
Move sorting to separate function
2022-02-28 10:41:40 -08:00
Mouse Reeve
99fc3aaf25
Avoid showing success and failure
2022-02-28 10:31:58 -08:00
Mouse Reeve
b2b3ba653e
Refactors how success/failure messages how on list page
2022-02-28 10:29:58 -08:00
Mouse Reeve
202696f913
Don't show lists a book is already on in add form
2022-02-28 10:03:24 -08:00
Mouse Reeve
c82042f506
Delete themes
2022-02-28 09:55:23 -08:00
Mouse Reeve
106ef2e3a4
Fixes reference to theme in layout
2022-02-28 09:46:05 -08:00
Mouse Reeve
295d9c42d7
Adds theme to user settings form
2022-02-28 09:45:34 -08:00
Mouse Reeve
a00ee8a706
Adds link to set instance-wide theme
2022-02-28 09:43:31 -08:00
Mouse Reeve
f54d4863fe
Updates .gitignore for themes
2022-02-28 09:37:51 -08:00
Mouse Reeve
2d516812b4
Fixes icons by moving import to theme
2022-02-28 09:34:54 -08:00
Mouse Reeve
f5fb5ae045
Removes instance config file
...
I'd be happy to re-add this if it's useful, but I think it's confusing
to have in addition to themes
2022-02-28 09:34:30 -08:00
Mouse Reeve
4d3e709b2a
Update layout.html
2022-02-28 09:23:03 -08:00
Mouse Reeve
3283302093
Merge branch 'themes' into dark-theme
2022-02-27 20:21:17 -08:00
Vivianne Langdon
3a9ff2c2ea
Refer to canvas by type
...
- Fixes stylelint without adding an exclusion
2022-02-27 14:08:11 -08:00
Vivianne Langdon
c0380cca5a
stylelint
2022-02-27 14:04:30 -08:00
Vivianne Langdon
1d4539c4c0
Don't pretty the min.js file
2022-02-27 14:03:45 -08:00
Vivianne Langdon
fbe7e860e8
Prettier
2022-02-27 14:01:25 -08:00
Mouse Reeve
8259d16ee9
Check available themes in form
2022-02-27 11:20:11 -08:00
Mouse Reeve
005b69177c
Merge branch 'themes' into dark-theme
2022-02-27 10:54:15 -08:00
Mouse Reeve
c8d3222c33
Rename dark.scss to bookwyrm-dark.scss
2022-02-27 10:52:07 -08:00
Mouse Reeve
fd0f739418
Rename light.scss to bookwyrm-light.scss
2022-02-27 10:51:49 -08:00
Mouse Reeve
8850b68b52
Show theme options
2022-02-27 10:48:33 -08:00
Mouse Reeve
cc015536fa
Adds theme instructions
2022-02-27 10:12:47 -08:00
Mouse Reeve
3dfbb3272e
Theme selector
2022-02-27 10:00:50 -08:00
Mouse Reeve
6e96c1eee7
Avoid linter error
2022-02-27 08:09:17 -08:00
Vivianne Langdon
e4d7dd7ee4
Fix progress bar
2022-02-27 05:29:33 -08:00
Vivianne Langdon
40319302b7
Initial theme
2022-02-27 05:20:29 -08:00
Vivianne Langdon
789626a9da
Stray line
2022-02-27 00:39:45 -08:00
Vivianne Langdon
f5c66b5b4a
Adjust layout more
...
Ensure camera select box is never hidden.
2022-02-27 00:33:54 -08:00
Vivianne Langdon
43f62ef5d7
d'oh, fix event leak
2022-02-27 00:18:38 -08:00
Vivianne Langdon
9f67a74340
Show grant access dialog every time we initialize
2022-02-27 00:04:25 -08:00
Vivianne Langdon
e71a5e3bdf
Add barcode icon and use other icons
...
Minor formatting and messaging tweaks
2022-02-27 00:00:22 -08:00
Vivianne Langdon
f4d5b7b4d2
Adjusted message
2022-02-26 23:28:52 -08:00
Vivianne Langdon
9b0874f889
Fix barcode button
2022-02-26 23:28:13 -08:00
Vivianne Langdon
cdddf73e29
Improve layout for some camera types
2022-02-26 23:22:44 -08:00
Vivianne Langdon
464050deaa
Implement switching cameras
...
Also, use session storage to remember last selected camera deviceId, if any
2022-02-26 21:32:01 -08:00
Vivianne Langdon
fee6ffcbd8
Fix formatting in chrome
...
Was using experimental selector, forget about it.
Also reduce jumping around of video size
2022-02-26 21:29:18 -08:00
Vivianne Langdon
8d0e549480
Improve visuals and quality of scanning
2022-02-26 20:19:26 -08:00
Vivianne Langdon
649ffe571a
Fix typos with searching
2022-02-26 18:29:38 -08:00
Vivianne Langdon
fcc8b6aaab
Move to sass
2022-02-26 18:19:12 -08:00
Vivianne Langdon
340b306d2e
Fix path
2022-02-26 18:08:07 -08:00
Vivianne Langdon
48c8166e58
Merge branch 'main' into code-scanning
2022-02-26 17:54:33 -08:00
Mouse Reeve
43269429ac
Use selected theme
2022-02-26 13:40:06 -08:00
Mouse Reeve
e15193e100
Adds themes
2022-02-26 12:44:20 -08:00
Mouse Reeve
6b5bebdf78
Cleans up scheduler form
2022-02-26 10:45:43 -08:00
Mouse Reeve
0870eccad9
Adds unscheduler
2022-02-26 10:24:23 -08:00
Mouse Reeve
2a436800c4
Schedules automod task
2022-02-26 10:14:47 -08:00
Mouse Reeve
95e9119817
Adds django celery beat
2022-02-26 08:44:19 -08:00
Mouse Reeve
a5571c65bc
Update 0134_alter_stopped_reading.py
2022-02-25 18:25:41 -08:00
Mouse Reeve
b511928400
Create 0134_alter_stopped_reading.py
2022-02-25 18:08:30 -08:00
Mouse Reeve
eea7d9d4e5
Retain author across saves
2022-02-25 17:57:18 -08:00
Mouse Reeve
29a6d74ff2
Python formatting
2022-02-25 17:23:13 -08:00
Mouse Reeve
b001c31f97
Save author along with added edition
2022-02-25 16:54:03 -08:00
Mouse Reeve
c67f92af46
Add editions view
2022-02-25 16:40:34 -08:00
Mouse Reeve
1d99e455e8
Adds link to add edition to editions page
2022-02-25 16:40:21 -08:00
Thomas Versteeg
8deee2220e
Fix stopped reading status model in non-javascript environment
2022-02-25 22:39:42 +01:00
Mouse Reeve
ab1c7c6d0a
Merge pull request #1971 from bookwyrm-social/scroll-bug
...
Removes scrollIntoView script behavior for tabs
2022-02-25 13:21:20 -08:00
Thomas Versteeg
5eb113af6b
Create merge migration
2022-02-25 22:03:49 +01:00
Thomas Versteeg
e9dfa42e11
Merge branch 'main' into partially-read-shelf
2022-02-25 21:00:29 +00:00
Mouse Reeve
02808f88e6
eslint fixes
2022-02-25 13:00:23 -08:00
Mouse Reeve
65bd3945e7
Prettify tabs file
2022-02-25 12:52:35 -08:00
Mouse Reeve
cec7625e1e
Moves tabs script to main scripts directory
...
It's our own custom script at this point
2022-02-25 12:47:46 -08:00
Mouse Reeve
5d4efd457a
Removes scrollIntoView script behavior for tabs
2022-02-25 12:39:44 -08:00
Mouse Reeve
ac36aa9327
Merge pull request #1969 from bookwyrm-social/author-book-sort
...
Sort author books by rating
2022-02-25 12:30:06 -08:00
Mouse Reeve
ad1d768be9
Merge pull request #1970 from bookwyrm-social/locales
...
Updates locales
2022-02-25 12:29:54 -08:00
Mouse Reeve
ee8c1659ab
Updates locales
2022-02-25 12:13:20 -08:00
Mouse Reeve
8ca2b55e7e
Sort author books by rating
2022-02-25 12:04:21 -08:00
Mouse Reeve
6d1d62cf2f
View for starting to edit a book with existing data
2022-02-25 11:50:25 -08:00
Mouse Reeve
f1f7b21d43
Merge pull request #1968 from bookwyrm-social/automod
...
Automod
2022-02-24 17:51:40 -08:00
Mouse Reeve
689be8c94b
Only scan local data
2022-02-24 17:42:28 -08:00
Mouse Reeve
84ef214ca1
Valid template markup
2022-02-24 17:36:49 -08:00
Mouse Reeve
eb8b9fdaed
Fixes bugs in model task
2022-02-24 17:33:22 -08:00
Mouse Reeve
1aa6b99d1f
Adds tests
2022-02-24 17:33:05 -08:00
Mouse Reeve
f446828175
Fixes template typo
2022-02-24 14:39:09 -08:00
Mouse Reeve
84b9a19339
Expands scanned fields
2022-02-24 13:29:17 -08:00
Mouse Reeve
93f82fbf18
Adds notifications
2022-02-24 13:20:18 -08:00
Mouse Reeve
ad41f19dc5
Updates report model
2022-02-24 13:00:41 -08:00
Mouse Reeve
3ce8b3390e
Adds task
2022-02-24 12:16:18 -08:00
Mouse Reeve
e837da37db
Adds task
2022-02-24 12:15:08 -08:00
Mouse Reeve
12f67dc0ce
Adds automod view
2022-02-24 11:18:43 -08:00
Mouse Reeve
c8b4d5ecf1
Adds model for creating automated moderation flags
2022-02-24 09:58:37 -08:00
Mouse Reeve
20df7cbdd6
Merge pull request #1966 from bookwyrm-social/missing-tag
...
Adds missing tag
2022-02-21 09:24:19 -08:00
Mouse Reeve
2457315ed8
Adds missing tag
2022-02-21 08:44:04 -08:00
Mouse Reeve
70601612f8
Removes unused dependency ( #1965 )
2022-02-20 18:42:14 -08:00
Mouse Reeve
4672294d7c
Cache fix ( #1961 )
2022-02-19 16:34:48 -08:00
Mouse Reeve
c77e5a1a90
Split css ( #1959 )
...
Divides the css into sub-files and normalizes how colors are defined.
Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 16:34:17 -08:00
Mouse Reeve
6daaffeaa7
Compiles css framework from sass ( #1956 )
...
* Compiles css framework from sass
* Adds watch commands
* Copies existing css to sass file
* Moves sass out of static path
* Removes global linter
I wasn't sure how to customize this, and it's not providing a lot of
additional value on top of the domain-specific linters
* Reverts invalid change to dockerfile
* Changes stylelint path
* Remove unused bulma files
* Properly minifies generated css
* Fixes regression in thread display
* rgba function only works with percents for whatever reason
* Hush stylelint
* Removes trailing zeros
* Compile sass in Django
Co-authored-by: Joachim <joachim.robert@protonmail.com>
* Python formatting
* Updates linter
* Updates commands
* Adds css-config file
Co-authored-by: Joachim <joachim.robert@protonmail.com>
* Stylelint fix
* Removes unused compiled bulma files
Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 15:29:47 -08:00
Mouse Reeve
c5f8715c59
Merge pull request #1957 from bookwyrm-social/env-errors
...
Removes inline comments that are causing errors
2022-02-19 08:11:29 -08:00
Mouse Reeve
57fd675857
Ticks javscript cache buster
2022-02-19 07:52:05 -08:00
Mouse Reeve
275f3cbedb
Removes inline comments that are causing erros
2022-02-18 21:07:39 -08:00
Mouse Reeve
cd65cfafce
Merge pull request #1955 from bookwyrm-social/dev-tools-tweaks
...
Updates dev tools
2022-02-18 09:21:45 -08:00
Mouse Reeve
7d68c23ce5
Updates dev tools
2022-02-18 08:48:44 -08:00
Mouse Reeve
1d44c2bf1f
Merge pull request #1954 from bookwyrm-social/locales
...
Updates locales for new view
2022-02-17 21:14:28 -08:00
Mouse Reeve
3d2ea40ad4
Updates locales for new view
2022-02-17 20:24:03 -08:00
Mouse Reeve
731ab88604
Merge pull request #1953 from bookwyrm-social/cache-translation
...
Fixes cache translation
2022-02-17 19:13:35 -08:00
Mouse Reeve
98736925f7
Fixes cache translation
2022-02-17 18:59:35 -08:00
Mouse Reeve
9eb798e932
Merge pull request #1952 from bookwyrm-social/settings
...
Fixes admin settings view
2022-02-17 18:10:17 -08:00
Mouse Reeve
edf3b61602
Show error or success states
2022-02-17 18:00:19 -08:00
Mouse Reeve
1aac665094
Fixes settings form
2022-02-17 17:50:57 -08:00
Mouse Reeve
64a83b38b5
Merge pull request #1951 from bookwyrm-social/accessibility-fixes
...
Accessibility fixes
2022-02-17 17:21:17 -08:00
Mouse Reeve
1b63c19a9c
Fixes error in previous PR
2022-02-17 17:10:12 -08:00
Mouse Reeve
5d098b3c10
Removes duplicate selector
2022-02-17 17:01:21 -08:00
Mouse Reeve
31a61713d9
Runs stylelint fix
2022-02-17 16:53:53 -08:00
Mouse Reeve
d510299ae4
Reverts change to shelve button dropdown
2022-02-17 16:51:54 -08:00
Mouse Reeve
561eaeaf54
Merge pull request #1935 from joachimesque/accessibility/fixes
...
[Accessibility] Fixes
2022-02-17 16:50:32 -08:00
Mouse Reeve
98cad7c51a
Merge pull request #1950 from bookwyrm-social/release-notice
...
Adds notice to admin about available updates
2022-02-17 16:37:22 -08:00
Mouse Reeve
3869f0cc1a
Python formatting
2022-02-17 16:28:55 -08:00
Mouse Reeve
9132c054f2
Adds notice to admin about available updates
2022-02-17 16:23:15 -08:00
Mouse Reeve
ebf905e20b
Merge pull request #1949 from bookwyrm-social/admin-setup
...
Flow for creating the admin account on a new instance
2022-02-17 16:04:30 -08:00
Mouse Reeve
92f3357977
Anchor link to dev chat
2022-02-17 15:53:58 -08:00
Mouse Reeve
31d362d715
Adds setup views tests
2022-02-17 14:55:48 -08:00
Mouse Reeve
3b0fc9785e
Removes unused file
2022-02-17 13:31:38 -08:00
Mouse Reeve
08e378a539
Fixes register tests
2022-02-17 13:27:44 -08:00
Mouse Reeve
be479fe4cb
Adds warnings about misconfigurations
2022-02-17 13:22:33 -08:00
Mouse Reeve
f6e2ec02aa
Adds overview page to setup
2022-02-17 13:02:07 -08:00
Mouse Reeve
1b9688832a
Don't use my name as the default flower user
2022-02-17 12:18:35 -08:00
Mouse Reeve
bf75dff338
Contextualize admin code command output
2022-02-17 11:53:29 -08:00
Mouse Reeve
637f7c9cb9
Initialize site settings in install mode
2022-02-17 11:51:48 -08:00
Mouse Reeve
679b55d9ad
Updates bw-dev and adds setup command
2022-02-17 11:50:16 -08:00
Mouse Reeve
63558bb75e
Python formatting
2022-02-17 11:31:52 -08:00
Mouse Reeve
54b0bf02b5
Merge pull request #1948 from bookwyrm-social/locales
...
Updates locales
2022-02-17 11:29:36 -08:00
Mouse Reeve
2883c42534
Disable registration by default
2022-02-17 11:27:05 -08:00
Mouse Reeve
23d0d3e2b7
Register admin user
2022-02-17 11:25:11 -08:00
Mouse Reeve
ed536e6b41
Adds command to get admin code
2022-02-17 10:59:28 -08:00
Mouse Reeve
b4e0749f73
Disallow registration in install mode and adds redirects
2022-02-17 10:52:12 -08:00
Mouse Reeve
8e3c39d319
Adds admin key field to admin user setup form
2022-02-17 10:39:08 -08:00
Mouse Reeve
4eb4efee9d
Create admin account markup
2022-02-17 10:22:44 -08:00
Mouse Reeve
c31ec7dbd5
Adds setup view
2022-02-17 10:03:02 -08:00
Mouse Reeve
e9397eaedd
Adds setup templates
2022-02-17 10:02:27 -08:00
Mouse Reeve
1a8f4a916e
Merge pull request #1891 from bookwyrm-social/openlibrary-author-fields
...
Openlibrary author fields
2022-02-17 09:00:04 -08:00
Mouse Reeve
0da759bfd5
Updates locales
2022-02-17 08:59:05 -08:00
Mouse Reeve
c04d2d285b
Python formatting
2022-02-17 08:42:12 -08:00
Thomas Versteeg
d67dac4519
Merge branch 'main' into partially-read-shelf
2022-02-17 16:34:10 +00:00
Mouse Reeve
88999168bc
Merge pull request #1946 from bookwyrm-social/use-https-defualt
...
Sets default USE_HTTPS value based on debug
2022-02-17 08:30:49 -08:00
Mouse Reeve
a2c4dd4f9f
Updates migration and database fields
2022-02-17 08:25:01 -08:00
Mouse Reeve
39691bed3a
Merge branch 'main' into openlibrary-author-fields
2022-02-16 18:06:04 -08:00
Mouse Reeve
839d91e4d4
Merge pull request #1941 from bookwyrm-social/dev-tools
...
Adds dev tools docker image
2022-02-16 18:05:22 -08:00
Mouse Reeve
cfc1302b23
Fixes spacing
2022-02-16 17:53:03 -08:00
Mouse Reeve
954e914638
Linebreaks? who knows.
2022-02-16 17:50:30 -08:00
Mouse Reeve
7afb5bc493
Stylelint needs libraries
2022-02-16 17:47:58 -08:00
Mouse Reeve
862b6f49bd
Correct npm package names
2022-02-16 17:45:04 -08:00
Mouse Reeve
4b2ac4fa10
Re-adds yarn.lock
2022-02-16 17:40:59 -08:00
Mouse Reeve
e23e108e3a
Merge branch 'main' into dev-tools
2022-02-16 17:39:03 -08:00
Mouse Reeve
c054ccc84b
Try ci with yarn instead of npx
2022-02-16 17:36:44 -08:00
Mouse Reeve
60b2453d4d
Fixes bw-dev stylelint command
2022-02-16 17:34:14 -08:00
Mouse Reeve
9038afd7f1
Changes npm install
2022-02-16 13:16:05 -08:00
Mouse Reeve
c1853e03ab
Updates stylelint command
2022-02-16 13:14:48 -08:00
Mouse Reeve
6f90c80494
Gets stylelint command working
2022-02-16 13:13:11 -08:00
Mouse Reeve
1412fa507c
Gets prettier command working
2022-02-16 12:54:03 -08:00
Mouse Reeve
d593a3a503
Sets default USE_HTTPS value based on debug
2022-02-15 13:15:04 -08:00
Mouse Reeve
55177990e3
Adds stylelint-config-recommended
2022-02-15 12:47:15 -08:00
Mouse Reeve
c19b9d7575
Updates stylelintrc filename and removes yarn
2022-02-15 12:46:28 -08:00
Mouse Reeve
f28d60b94f
Tries adding packages
2022-02-15 12:41:22 -08:00
Mouse Reeve
450d4cdace
Try using npx instead of yarn for stylelint
2022-02-15 12:39:14 -08:00
Mouse Reeve
7ff1ad7c83
Try again with yarn added as separate step
2022-02-15 12:37:28 -08:00
Mouse Reeve
4428c0f14d
Remoes yarn line
2022-02-15 12:34:28 -08:00
Mouse Reeve
09978fc195
Tries npm install with yarn
2022-02-15 12:29:59 -08:00
Mouse Reeve
714bb081ea
Updates workflows
2022-02-15 12:25:35 -08:00
Mouse Reeve
a07239c6a9
Merge pull request #1933 from bookwyrm-social/announcements
...
Cleans up code for announcements
2022-02-15 10:40:56 -08:00
Mouse Reeve
6fa29a6293
Fixes tests
2022-02-15 10:32:04 -08:00
Vivianne Langdon
82cb170a91
Switch version of quagga to new fork quagga2
2022-02-15 02:39:16 -08:00
Vivianne Langdon
1e04385f0c
Worked more on visuals of modal
...
Need to finish camera selection mode.
2022-02-15 02:38:57 -08:00
Thomas Versteeg
d63e5ab2d2
Fix tests
2022-02-14 18:12:08 +01:00
Willi Hohenstein
03ff8c248d
Added input control and better char replacement
2022-02-14 17:38:45 +01:00
Vivianne Langdon
5ae4eb9b8f
Super messy initial working version. To clean up.
2022-02-14 02:56:05 -08:00
Willi Hohenstein
0b02287378
add docstring
2022-02-13 20:49:44 +01:00
Willi Hohenstein
526a1c6ef4
removed unnecessary code
2022-02-13 20:31:06 +01:00
Willi Hohenstein
54eeeb5798
fix style to pass tests
2022-02-13 20:30:11 +01:00
Willi Hohenstein
3c05cecb50
function moved
2022-02-13 19:07:25 +01:00
Willi Hohenstein
a4b08d7213
add test with valid isbn10
2022-02-13 17:10:32 +01:00
Willi Hohenstein
5801ef011f
add isbn check
2022-02-13 09:35:15 +01:00
Willi Hohenstein
27c26b4d16
add test for dashed ISBN
2022-02-13 09:34:28 +01:00
Mouse Reeve
b601ac6f91
Adds dev tools docker image
2022-02-12 14:06:18 -08:00
Mouse Reeve
1a2c85a327
Merge pull request #1938 from willhoh/main
...
Change cover class
2022-02-12 11:03:32 -08:00
Mouse Reeve
5df8bf03e6
Fixes black versioning error
2022-02-12 11:00:24 -08:00
Mouse Reeve
7fdf07c6ec
Updates tests
2022-02-12 10:56:55 -08:00
Thomas Versteeg
c88b34814f
Rename 'Partially Read' to 'Stopped Reading'
2022-02-12 19:49:54 +01:00
Willi Hohenstein
164e0686b9
add class for correct display
2022-02-12 19:35:44 +01:00
Mouse Reeve
9827cef9a9
Python formatting
2022-02-12 10:34:16 -08:00
Mouse Reeve
1761db5444
Merge pull request #1920 from bookwyrm-social/branch-convergence
...
Moves towards single branch setup
2022-02-12 10:31:55 -08:00
Mouse Reeve
72818d4ab2
Merge pull request #1939 from bookwyrm-social/list-bug
...
Fixes display name of list contributor comments
2022-02-12 10:29:41 -08:00
Mouse Reeve
a2d9bf50c5
Fixes display name of list contributor comments
2022-02-12 10:18:14 -08:00
Mouse Reeve
df0467a662
Merge pull request #1930 from bookwyrm-social/dependabot/pip/django-3.2.12
...
Bump django from 3.2.11 to 3.2.12
2022-02-12 10:10:38 -08:00
Mouse Reeve
6bf6b118bf
Merge pull request #1937 from bookwyrm-social/stylelint-prettier
...
Adds stylelint fix to bw-dev
2022-02-12 09:58:26 -08:00
Mouse Reeve
d49e9b4dcd
Updates packages
2022-02-12 09:41:18 -08:00
Mouse Reeve
30ad3bba0b
Suggest stylelint --fix in CI and add to bw-dev
2022-02-12 09:00:38 -08:00
Willi Hohenstein
67ea18c840
Changed cover class for proper image size in mobile
2022-02-12 17:58:36 +01:00
Joachim
c33cf60624
aria-hidden elements do not contain focusable elements
...
https://dequeuniversity.com/rules/axe/4.3/aria-hidden-focus
2022-02-12 16:33:16 +01:00
Joachim
7877524116
ARIA button, link, and menuitem must have an accessible name
...
https://dequeuniversity.com/rules/axe/4.3/aria-command-name
In this case, the menuitem wasn't displayed (because the div was hidden). I prefer not to include the menuitem in that situation.
2022-02-12 16:25:40 +01:00
Joachim
f742cc023b
ARIA attributes must conform to valid values
...
https://dequeuniversity.com/rules/axe/4.3/aria-valid-attr-value
2022-02-12 16:18:56 +01:00
Joachim
b27b6a5980
Certain ARIA roles must contain particular children
...
https://dequeuniversity.com/rules/axe/4.3/aria-required-children
In order to make this work, I had to translate Bulma's style so it doesn't use `ul` and `li` anymore.
The JS code had to be adapted, I also changed `button` to `tab` (seemed like a more relevant name) and added a `scrollIntoView()` on load the active tab is always visible.
2022-02-12 16:14:35 +01:00
Joachim
bbb89605a5
Page must have one main landmark
...
https://dequeuniversity.com/rules/axe/4.3/landmark-one-main
2022-02-12 16:10:40 +01:00
Willi Hohenstein
6cb480d111
Merge branch 'main' of github.com:willhoh/bookwyrm
2022-02-12 15:36:30 +01:00
Thomas Versteeg
bc89dd7041
Change shelf Finished label
...
When the shelf is read the label is 'Finished', otherwise it's 'Until'.
2022-02-12 11:19:00 +01:00
Mouse Reeve
89de03bffe
Adds breadcrumbs
2022-02-11 14:58:40 -05:00
Mouse Reeve
b95f0ed287
Use color in announcement
2022-02-11 14:43:37 -05:00
Mouse Reeve
01b52f023a
Adds edit announcement view
2022-02-11 14:42:47 -05:00
Mouse Reeve
cfa91e2570
Adds color options to announcements
2022-02-11 14:00:01 -05:00
Mouse Reeve
ee23aba994
Use details and summary for announcement panel
2022-02-11 13:50:55 -05:00
Mouse Reeve
62741a5d2e
Allow html in announcement header
2022-02-11 13:36:08 -05:00
Mouse Reeve
059fd84d06
Adds delete button to announcements list view
...
It's handy to have it there
2022-02-11 13:33:42 -05:00
Thomas Versteeg
2b27889457
Add 'Partially Read' shelf
2022-02-11 14:33:46 +01:00
dependabot[bot]
046f516091
Bump django from 3.2.11 to 3.2.12
...
Bumps [django](https://github.com/django/django ) from 3.2.11 to 3.2.12.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.11...3.2.12 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 13:02:16 +00:00
Mouse Reeve
542957364c
Merge pull request #1929 from bookwyrm-social/link-federation
...
Use correct model type for federated links
2022-02-09 09:30:26 -08:00
Mouse Reeve
bd846bba34
Merge pull request #1927 from bookwyrm-social/update-command
...
Refresh web and celery in update command
2022-02-09 09:25:15 -08:00
Mouse Reeve
c06817e9ff
Python formatting
2022-02-09 12:23:01 -05:00
Mouse Reeve
6323b0e700
Use correct model type for federated links
2022-02-09 12:20:11 -05:00
Mouse Reeve
e9e4f70ae4
Refresh web and celery in update command
2022-02-08 09:17:42 -05:00
Mouse Reeve
74fd13fb22
Consistent ordering of items in docker-compose file
2022-02-06 06:37:03 -08:00
Mouse Reeve
4b88ea142f
Merge pull request #1922 from bookwyrm-social/version
...
Tick version number
2022-02-04 20:21:49 -08:00
Mouse Reeve
73b611d68d
Tick version number
2022-02-04 20:12:26 -08:00
Mouse Reeve
d65a80d9ea
Merge pull request #1921 from bookwyrm-social/author-page-query
...
Fixes author page query
2022-02-04 19:51:24 -08:00
Mouse Reeve
a73960a0da
Python formatting
2022-02-04 19:44:03 -08:00
Mouse Reeve
49ceb2a978
Fixes warning in author view tests
2022-02-04 19:41:21 -08:00
Mouse Reeve
a9a6fd1242
Adds test for author page bug
2022-02-04 19:34:37 -08:00
Mouse Reeve
28a8edfdc4
Fixes author page query
2022-02-04 19:06:47 -08:00
Mouse Reeve
bc7aa91b97
Fixes pylint complaints
2022-02-04 18:50:57 -08:00
Mouse Reeve
28fe0b0bc6
Merge pull request #1919 from bookwyrm-social/locales
...
Updates locales
2022-02-04 18:37:05 -08:00
Mouse Reeve
7811a9920e
Copy config from prod branch to main
2022-02-04 18:36:12 -08:00
Mouse Reeve
d8c3699adc
Updates locales
2022-02-04 18:21:48 -08:00
Mouse Reeve
0601f68685
Merge pull request #1918 from bookwyrm-social/ports
...
Don't expose unnecessary ports
2022-02-04 18:12:05 -08:00
Mouse Reeve
ea035b9fbe
Don't expose unnecessary ports
2022-02-04 17:58:29 -08:00
Mouse Reeve
70bd6b9a65
Merge pull request #1917 from bookwyrm-social/list-page-error
...
Fixes errors in how lists with notes display
2022-02-04 15:44:49 -08:00
Mouse Reeve
18768a23f3
Fixes test
2022-02-04 15:30:58 -08:00
Mouse Reeve
0c3b6e6938
Merge pull request #1900 from willhoh/main
...
Added check for bocked or pending domains. Fixes #1850
2022-02-04 12:11:41 -08:00
Mouse Reeve
547d246375
Fixes 500 error
2022-02-04 12:09:20 -08:00
Mouse Reeve
0683ce1c33
Proper markdown formatting
2022-02-04 12:07:26 -08:00
Mouse Reeve
fefb7e582a
Fixes list note display
2022-02-04 12:02:10 -08:00
Mouse Reeve
719df5621c
Unit test to catch error on list page
2022-02-04 11:58:03 -08:00
Mouse Reeve
82aacf8f2a
Update forms.py
2022-02-04 11:47:18 -08:00
Mouse Reeve
e80a4c16f0
Merge pull request #1915 from bookwyrm-social/url-validation
...
Adds some simple url validation
2022-02-04 08:45:43 -08:00
Willi Hohenstein
495af09c4c
Merge branch 'bookwyrm-social:main' into main
2022-02-04 14:11:50 +01:00
Willi Hohenstein
a3e2cd77a1
Merge branch 'main' of github.com:bookwyrm-social/bookwyrm
2022-02-04 14:09:15 +01:00
Mouse Reeve
da8e07057c
Merge pull request #1916 from bookwyrm-social/user-view
...
Fixes duplicted shelves on user view
2022-02-03 19:31:49 -08:00
Mouse Reeve
7c0d51ed14
Fixes duplicted shelves on user view
2022-02-03 18:59:08 -08:00
Mouse Reeve
3e635f497e
Adds some simple url validation
2022-02-03 15:11:01 -08:00
Willi Hohenstein
58fb9ba0d4
Merge branch 'bookwyrm-social:main' into main
2022-02-03 23:55:17 +01:00
Mouse Reeve
ebc3f14f22
Merge pull request #1914 from bookwyrm-social/static-close-buttons
...
Show cancel buttons on modals in static mode
2022-02-03 14:08:36 -08:00
Mouse Reeve
f545184c5b
Merge pull request #1913 from bookwyrm-social/import-ui-fixes
...
Fixes links on import page
2022-02-03 14:01:28 -08:00
Mouse Reeve
9013b1417a
Show cancel buttons on modals in static mode
2022-02-03 13:59:53 -08:00
Mouse Reeve
3b12af63b6
Fixes links on import page
2022-02-03 13:49:33 -08:00
Mouse Reeve
582b84ecaa
Merge pull request #1911 from bookwyrm-social/more-tests
...
Activitystreams tests
2022-02-03 13:33:15 -08:00
Mouse Reeve
8518b4f877
Merge pull request #1912 from bookwyrm-social/sanitize-tags
...
Adds allowlist for html attrs
2022-02-03 13:29:40 -08:00
Mouse Reeve
85aad7c219
Another sorting order error
2022-02-03 13:25:44 -08:00
Mouse Reeve
cae7191a2b
Python formatting
2022-02-03 13:19:56 -08:00
Mouse Reeve
2c7a6e8518
Correct status order
2022-02-03 13:17:16 -08:00
Mouse Reeve
1f6ecc39ac
Adds allowlist for html attrs
2022-02-03 13:15:06 -08:00
Mouse Reeve
7b5bee8d7b
Merge branch 'main' into more-tests
2022-02-03 12:48:11 -08:00
Mouse Reeve
3b48d986d5
Merge pull request #1910 from bookwyrm-social/superlative-rating
...
Fixes rating in about page superlatives
2022-02-03 12:46:07 -08:00
Mouse Reeve
5a3ce5e328
Fixes rating in about page superlatives
2022-02-03 11:48:56 -08:00
Mouse Reeve
a370602903
Merge pull request #1860 from cincodenada/image-generation-add-cjk
...
Use Source Han Sans for preview images generation (bis)
2022-02-03 11:11:38 -08:00
Mouse Reeve
c58a3ac114
Merge branch 'main' into main
2022-02-03 10:40:27 -08:00
Mouse Reeve
e4b53266b3
Merge pull request #1909 from bookwyrm-social/list-notes-edit
...
Fixes add/edit notes form on list page
2022-02-03 10:39:22 -08:00
Mouse Reeve
a46ab96d9b
Fixes add/edit notes form on list page
2022-02-03 10:30:30 -08:00
Mouse Reeve
baf28c523a
Merge pull request #1908 from bookwyrm-social/fix-shelf-view
...
Fix shelf names on books page
2022-02-03 08:58:16 -08:00
Mouse Reeve
2c16b8f33b
Fix shelf names on books page
2022-02-03 08:44:51 -08:00
Willi Hohenstein
1b313c2b62
added check of existing url for book
...
sould also fix #1899
2022-02-02 22:34:30 +01:00
Mouse Reeve
4a299bd5d0
Merge pull request #1905 from bookwyrm-social/locale-migration
...
Adds migration for locale name update
2022-02-02 13:25:23 -08:00
Mouse Reeve
e18f6fbfaf
Adds migration for locale name update
2022-02-02 12:44:11 -08:00
Mouse Reeve
f8bd0800f1
Merge pull request #1904 from bookwyrm-social/book-page-add-list
...
Fixes adding book to list from book page
2022-02-02 12:40:44 -08:00
Mouse Reeve
fedc8deaa1
Merge pull request #1901 from bookwyrm-social/swedish-locale-name
...
Fixes name of Swedish locale
2022-02-02 12:30:47 -08:00
Mouse Reeve
36a52019fb
Fixes adding book to list from book page
2022-02-02 12:29:01 -08:00
Mouse Reeve
36a47760cd
Updates locales
2022-02-02 12:15:00 -08:00
Mouse Reeve
e9370fe4c9
Fixes name of Swedish locale
2022-02-02 11:43:54 -08:00
Willi Hohenstein
c2c33fe1e8
fixed merge conflict
2022-02-02 20:20:16 +01:00
Mouse Reeve
b5baf1620f
Merge pull request #1897 from bookwyrm-social/verify-image-types
...
Check image extensions before saving
2022-02-02 11:04:52 -08:00
Willi Hohenstein
4503dd6864
Merge branch 'main' of github.com:willhoh/bookwyrm
2022-02-02 19:51:23 +01:00
Willi Hohenstein
e37982d285
added domain pending or blocked check
...
fixes #1850
2022-02-02 19:35:26 +01:00
Mouse Reeve
6fd3ac0cb1
Changes how test image data is loaded
2022-02-02 09:36:47 -08:00
Mouse Reeve
f84241b085
Merge pull request #1804 from cincodenada/run-not-exec
...
Use run --rm instead of exec for initdb
2022-02-02 09:10:28 -08:00
Mouse Reeve
194c69f512
Fixes return values of null responses
2022-02-02 07:09:35 -08:00
Joel Bradshaw
060f515aea
Be even more conservative on errors
...
This runs at startup of anything, so we should be extra sure to not
break anything, and lots of things can go wrong downloading files from
the internet
2022-02-01 21:59:07 -08:00
Joel Bradshaw
d6abd9b32d
Ensure directory exists, don't crash if we fail to write
...
We should be creating the directory because the static tree from the
repo isn't actually copied into the container, so we can't rely on it
existing.
And if we can't write it, we should catch that error instead of crashing
the whole thing, oops!
2022-02-01 21:45:13 -08:00
Mouse Reeve
754e24812b
Check image extensions before saving
2022-02-01 21:18:25 -08:00
Mouse Reeve
9611815b44
Extract wikipedia and inventaire ids
2022-01-30 12:02:18 -08:00
Mouse Reeve
44dad43f36
Load new fields via connector
2022-01-30 11:41:33 -08:00
Mouse Reeve
c4b8e7949d
Add more book identifier fields
2022-01-30 11:41:31 -08:00
Mouse Reeve
1dfe4d0f52
Merge pull request #1890 from bookwyrm-social/shelf-display
...
Don't display empty shelves on user page
2022-01-30 11:39:25 -08:00
Mouse Reeve
e674f85d4e
Don't display empty shelves on user page
2022-01-30 11:23:23 -08:00
Mouse Reeve
4e607d38eb
Merge pull request #1888 from bookwyrm-social/ap-delete
...
More resilient hanlding of deletions
2022-01-30 11:21:16 -08:00
Mouse Reeve
ef44b407e5
Merge pull request #1889 from bookwyrm-social/dm-button
...
Fixes display of dm button
2022-01-30 11:21:04 -08:00
Mouse Reeve
a7afd4c47b
Fixes display of dm button
2022-01-30 11:10:18 -08:00
Mouse Reeve
f2d2d050f5
Merge pull request #1886 from bookwyrm-social/filter-panels-display
...
Fixes form element display inside details panel
2022-01-30 10:45:26 -08:00
Mouse Reeve
2d5b6ba0e9
Merge pull request #1887 from bookwyrm-social/locale-updates
...
Updates locales
2022-01-30 10:44:53 -08:00
Mouse Reeve
18b53a608c
More resilient hanlding of deletions
2022-01-30 10:42:29 -08:00
Mouse Reeve
65496fea49
Fixes black regression
2022-01-30 10:26:28 -08:00
Mouse Reeve
f52fd25313
Updates locales
2022-01-30 10:19:12 -08:00
Mouse Reeve
79be02230b
Merge pull request #1885 from bookwyrm-social/reporting-improvements
...
Reporting improvements
2022-01-30 09:55:37 -08:00
Mouse Reeve
ae0e67f076
Fixes form element display inside details panel
2022-01-30 09:31:57 -08:00
Mouse Reeve
68f9ee9d8a
Fixes access level control in report view
2022-01-30 09:20:26 -08:00
Mouse Reeve
24c1d5a168
Add prompt to respond to reporter
2022-01-30 09:17:12 -08:00
Mouse Reeve
c04bf4638f
Avoid duplicate emails
2022-01-30 08:59:32 -08:00
Mouse Reeve
8a07f5c396
Fixes report remote id
2022-01-30 08:50:53 -08:00
Mouse Reeve
ae53b479f5
Fixes status field on report modal form
2022-01-30 08:36:20 -08:00
Mouse Reeve
dd39046ff9
Merge pull request #1884 from bookwyrm-social/dependabot/pip/django-3.2.11
...
Bump django from 3.2.10 to 3.2.11
2022-01-30 07:39:53 -08:00
Mouse Reeve
6983884eaa
Merge pull request #1883 from bookwyrm-social/cache-fix
...
Fixes bad cache on status shelve buttons
2022-01-30 07:19:30 -08:00
Mouse Reeve
aaccab6dce
Merge branch 'main' into cache-fix
2022-01-30 07:09:32 -08:00
dependabot[bot]
36d2a7cc1d
Bump django from 3.2.10 to 3.2.11
...
Bumps [django](https://github.com/django/django ) from 3.2.10 to 3.2.11.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.10...3.2.11 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-30 15:09:29 +00:00
Mouse Reeve
65e4e6418e
Merge pull request #1882 from bookwyrm-social/fix-urls
...
Bring prod and main into sync on urls
2022-01-30 07:09:07 -08:00
Mouse Reeve
f86016ba33
Python formatting for black update
2022-01-30 07:01:38 -08:00
Mouse Reeve
3c2aa72424
Fixes bad cache on status shelve buttons
2022-01-30 06:56:15 -08:00
Mouse Reeve
29a7c59d5f
Bring prod and main into sync on urls
2022-01-30 06:43:50 -08:00
Mouse Reeve
224dc4100a
Activitstreams tests
2022-01-28 17:32:41 -08:00
Mouse Reeve
8fc23ba184
Merge pull request #1878 from bookwyrm-social/tests
...
Some tests
2022-01-28 06:54:51 -08:00
Mouse Reeve
c6c1534c85
Adds id to report page
2022-01-27 20:05:17 -08:00
Mouse Reeve
e8e2cb08a5
Merge pull request #1877 from bookwyrm-social/locale-updates
...
Updates locales and adds new strings
2022-01-27 19:55:03 -08:00
Mouse Reeve
1d45e8b4cc
Updates ip blocklists tests
2022-01-27 19:43:42 -08:00
Mouse Reeve
778975d492
Merge branch 'misc-tests' into user-view
2022-01-27 19:39:19 -08:00
Mouse Reeve
89aa1673b2
Admin views tests
2022-01-27 19:39:07 -08:00
Mouse Reeve
afdaa776e2
Fixes syntax
2022-01-27 19:38:51 -08:00
Mouse Reeve
e7ecae0f96
Adds annual review test
2022-01-27 18:57:18 -08:00
Mouse Reeve
8ec1b49800
Updates locales and adds new strings
2022-01-27 18:52:33 -08:00
Mouse Reeve
40a14a05ad
Merge pull request #1865 from bookwyrm-social/unread-status-translation
...
Calculate and translate unread status counts in view
2022-01-27 18:47:35 -08:00
Mouse Reeve
107f02e4e5
Merge pull request #1876 from bookwyrm-social/initdb-tests
...
Adds tests for initdb command
2022-01-27 18:38:55 -08:00
Mouse Reeve
59b5369654
Updates tests
2022-01-27 18:23:31 -08:00
Mouse Reeve
d711c7a5a2
Test fixes
2022-01-27 13:32:49 -08:00
Mouse Reeve
047e3a324a
Merge pull request #1855 from bookwyrm-social/instance-default-language
...
Makes default language configurable
2022-01-27 13:25:12 -08:00
Mouse Reeve
ba18e1e34b
Adds tests for initdb command
2022-01-27 13:23:29 -08:00
Mouse Reeve
b3d9a46c98
Merge pull request #1869 from bookwyrm-social/list-notes
...
Let users add info about their list entry submissions
2022-01-27 13:04:08 -08:00
Mouse Reeve
d925395f9d
Merge pull request #1874 from willhoh/main
...
This fixes #1871 and fixes #1873
2022-01-27 13:01:50 -08:00
Mouse Reeve
a80c19d3e5
Screen reader fixes for list view
2022-01-27 12:55:53 -08:00
Mouse Reeve
2cf10b932d
Merge pull request #1875 from bookwyrm-social/get-started-books
...
Don't check suggested books against shelved books
2022-01-27 12:43:04 -08:00
Mouse Reeve
8a8d09fc30
Merge pull request #1872 from officialkzhang/main
...
Added a class for fixing onboarding logo's size
2022-01-27 12:42:46 -08:00
Willi Hohenstein
72c22cdcc0
reformatted file
2022-01-27 21:21:28 +01:00
Mouse Reeve
577bc18a47
Minor simplification for user shelf view
2022-01-27 12:05:26 -08:00
officialkzhang
f62e66f5ee
Revised HTML element for onboarding logo
...
Added navbar class to the parent header of the onboarding logo and removed the previously appended icon class from the image.
2022-01-27 14:51:57 -05:00
Mouse Reeve
c0dabeee04
Don't check suggested books against shelved books
...
It takes too long, and ideally this is your first action so you don't
have any books shelved yet.
2022-01-27 11:45:40 -08:00
Mouse Reeve
d62473c432
Tests that list item notes federate
2022-01-27 11:04:30 -08:00
Willi Hohenstein
dd35c90042
fix linging errors
2022-01-27 19:54:12 +01:00
Willi Hohenstein
f8afdfc6a9
This fixes #1871 huge amount of traffic from bots
...
and closes #1873 that leaves a file after testing.
2022-01-27 17:30:02 +01:00
officialkzhang
13edeffb53
Added a class for fixing onboarding logo's size
...
Added a CSS class for fixing the onboarding logo's size to a reasonable dimension (about 3rem).
2022-01-27 00:22:50 -05:00
Mouse Reeve
0d69d9b48b
Adds more unit tests for list views
2022-01-26 12:02:48 -08:00
Mouse Reeve
65b9872c72
Fixes approving curated submissions
2022-01-26 10:37:50 -08:00
Mouse Reeve
eddd9ccc32
Refer to user by id in form tests
2022-01-25 13:57:12 -08:00
Mouse Reeve
2eabe29401
Show notes on curation page
2022-01-25 13:54:44 -08:00
Mouse Reeve
3f9a401d98
Put list action tests in correct files
2022-01-25 13:54:38 -08:00
Mouse Reeve
3a5289a999
Separate lists view test files
2022-01-25 13:38:13 -08:00
Mouse Reeve
dd16fb2a26
Move embed view to separate file
2022-01-25 13:37:57 -08:00
Mouse Reeve
d456ab7306
Move lists tests into directory
2022-01-25 13:22:04 -08:00
Mouse Reeve
f85158191b
Use form for saving list items
2022-01-25 12:11:17 -08:00
Mouse Reeve
a43731b335
Fixes tests for list actions
2022-01-25 10:08:54 -08:00
Mouse Reeve
e1599384b0
Fixes list views tests
2022-01-25 09:46:00 -08:00
Mouse Reeve
38ccc23cd5
Add notes form
2022-01-25 09:40:03 -08:00
Mouse Reeve
6009593b6b
Migration formatting
2022-01-25 09:17:00 -08:00
Mouse Reeve
037cc35eeb
Adds merge migration and python formatting
2022-01-25 08:45:22 -08:00
Mouse Reeve
de4576bc44
Merge branch 'main' into list-notes
2022-01-25 08:44:29 -08:00
Mouse Reeve
9902794bbd
Adds edit note view
2022-01-25 08:44:04 -08:00
Joel Bradshaw
0c53f4e003
Fix linting and formatting
2022-01-25 01:09:27 -08:00
Joel Bradshaw
a1a3aa45f4
Don't log autoload debug
...
This is just too much
2022-01-25 00:53:15 -08:00
Joel Bradshaw
9e6390662b
Download fonts at app startup instead
...
We can't bake the font into the Docker image as such, because we mount
the volumes which blows away anything we have in the app tree
beforehand.
We could stash it somewhere in the image and then copy it from there on
app startup or something, but at that point we might as well just
download it as part of the app startup.
2022-01-25 00:53:01 -08:00
Joachim
766a0cc652
Fix tests
2022-01-24 23:16:15 -08:00
Joachim
6f5115c716
Use Source Han Sans for preview images generation
2022-01-24 23:16:15 -08:00
Joel Bradshaw
284eb620dd
Add Source Han font for preview generation to Docker image
...
Include the license and a README explaining things in the repo itself.
Depending on an external source for this is intended to be temporary,
the goal is to have a Bookywrm-managed source for these, but this should
be stable enough for now.
We build it into the Dockerfile to make it available without adding it
to the git repo itself, because git history is forever and we don't want
to bake large files into the history.
Theoretically it would make sense to gate this download on the
ENABLE_PREVIEW_IMAGES environment variable, but ENV variables aren't
available at Docker image build time (for sensible reasons), so we just
unconditonally download it.
This does mean users will ultimately download it anyway, but the benefit
to doing this over adding it to the git history is that if we switch
fonts, or update this one, or change strategies altogether, this version
of the font will no longer have to be downloaded.
Additionally, the font won't be downloaded until the application is
actually built, which involves a bunch of other downloading (of Docker
images and the like), so it's a reasonable time to do it.
2022-01-24 23:16:14 -08:00
Mouse Reeve
ca0dbeb0ab
Move list views into more files
2022-01-24 19:39:30 -08:00
Mouse Reeve
a1a84b28b0
Adds edit box
2022-01-24 13:56:18 -08:00
Mouse Reeve
8280386f0e
Context for note block in list item
2022-01-24 13:45:52 -08:00
Mouse Reeve
5206d08dbb
Adds demo display of comment in list entry
2022-01-24 13:37:51 -08:00
Mouse Reeve
d0a4c78d02
Limit length on list item note
2022-01-24 12:02:05 -08:00
Mouse Reeve
91f085c876
Merge pull request #1868 from bookwyrm-social/swedish-locale
...
Adds Swedish locale
2022-01-24 10:08:38 -08:00
Mouse Reeve
eeee62cd04
Adds Swedish to the app
2022-01-24 09:39:13 -08:00
Mouse Reeve
906456802a
Adds Swedish locale files and updates all locales
2022-01-24 09:38:56 -08:00
Mouse Reeve
a651352b8b
Merge pull request #1866 from cincodenada/patch-3
...
Fix typo from models refactor
2022-01-24 07:25:19 -08:00
Joel Bradshaw
7373fb4132
Fix typo from models refactor
...
Looks like this got caught up when moving to importing `models`
instead of the individual models, and was throwing an error on
`./bw-dev initdb`
2022-01-23 23:41:22 -08:00
Mouse Reeve
191079a922
Python formatting
2022-01-22 19:01:42 -08:00
Mouse Reeve
e5c8500547
Updates cache buster
2022-01-22 17:05:31 -08:00
Mouse Reeve
3fc690e763
Calculate and translate unread status counts in view
2022-01-22 17:03:48 -08:00
Mouse Reeve
ec63ca3817
Merge branch 'main' into run-not-exec
2022-01-22 15:51:42 -08:00
Mouse Reeve
a74f907a61
Merge pull request #1864 from bookwyrm-social/fixes-initdb
...
Fixes option checking in initdb management command
2022-01-22 15:42:56 -08:00
Mouse Reeve
67c3091aa1
Fixes option checking in initdb management command
2022-01-22 15:09:30 -08:00
Mouse Reeve
b35efb6eab
Merge pull request #1857 from bookwyrm-social/about-page-superlatives
...
Fixes display controls for about page superlatives
2022-01-20 17:20:04 -08:00
Mouse Reeve
ce30f8a8f0
Merge pull request #1854 from bookwyrm-social/pending-users
...
Activate users in pending state when site registration mode changes
2022-01-20 17:02:28 -08:00
Mouse Reeve
a8776843bd
Fixes display toggle for about page superlatives
2022-01-20 17:00:15 -08:00
Mouse Reeve
ca21238e60
Merge pull request #1856 from bookwyrm-social/rss-limit
...
Show only recent results in rss feed view
2022-01-20 16:46:14 -08:00
Mouse Reeve
7476964cca
Show only recent results in rss feed view
2022-01-20 16:33:24 -08:00
Mouse Reeve
e2e5ed9aa3
Makes default language configurable
2022-01-20 16:04:42 -08:00
Mouse Reeve
148f9b6f5e
Activate pending users when email confirmation is disabled
2022-01-20 15:58:00 -08:00
Mouse Reeve
874e2e0a9c
Adds test for activating users on change to registration mode
2022-01-20 15:21:28 -08:00
Mouse Reeve
a0da5c75ff
Merge pull request #1853 from bookwyrm-social/author-page
...
Trying a new query to get author books
2022-01-20 15:19:11 -08:00
Mouse Reeve
4177654ccf
Merge pull request #1852 from bookwyrm-social/shelf-fixes
...
Shelf date on all books page
2022-01-20 15:14:21 -08:00
Mouse Reeve
d5ddaa874f
Trying a new query to get author books
2022-01-20 15:07:39 -08:00
Mouse Reeve
afea857442
Uses max shelved date to get valid date for all books page
2022-01-20 14:28:30 -08:00
Mouse Reeve
28d675c5a0
Adds more shelf page tests
2022-01-20 14:25:24 -08:00
Mouse Reeve
d9175ce0b0
HTML validity on shelf page
2022-01-20 14:19:41 -08:00
Mouse Reeve
a8892d4dcc
Merge pull request #1851 from bookwyrm-social/update-locales
...
Updates locales
2022-01-20 13:55:38 -08:00
Mouse Reeve
a54fc08983
Updates locales
2022-01-20 13:43:59 -08:00
Mouse Reeve
db715cce2a
Merge pull request #1845 from bookwyrm-social/organizing-templatetags
...
Organizing templatetags
2022-01-18 14:51:13 -08:00
Mouse Reeve
8b8314f736
Fixes embed view
2022-01-18 14:27:19 -08:00
Mouse Reeve
93caa95855
Removes stray asssert line
2022-01-18 14:05:35 -08:00
Mouse Reeve
c888895327
Adds missing tag loaders
2022-01-18 14:04:55 -08:00
Mouse Reeve
55ae6d1f8d
Merge pull request #1844 from bookwyrm-social/review-html
...
Fixes review markup for mastodon serialization
2022-01-18 13:42:02 -08:00
Mouse Reeve
e47b5e788d
Remove link form review title
...
html isn't supported in the name field I guess
2022-01-18 13:31:50 -08:00
Mouse Reeve
41c3eceb68
Updates tests
2022-01-18 13:19:04 -08:00
Mouse Reeve
3f487328e2
Adds more tests
2022-01-18 13:15:25 -08:00
Mouse Reeve
ffaeb3381a
Updates tests
2022-01-18 12:53:35 -08:00
Mouse Reeve
ce0a49f64f
Updates ratings and book display tests
2022-01-18 12:52:21 -08:00
Mouse Reeve
95c262c495
Renames group tags
2022-01-18 12:32:12 -08:00
Mouse Reeve
33c6e5aabe
Moves remaining tags into new files
2022-01-18 12:28:59 -08:00
Mouse Reeve
3d63509e20
Updates snippets that use rating tags
2022-01-18 12:09:57 -08:00
Mouse Reeve
b25fa5a193
Adds tests
2022-01-18 12:07:42 -08:00
Mouse Reeve
6e6e2ab777
Moves rating tag to file
2022-01-18 12:02:38 -08:00
Mouse Reeve
4f4d2dc53e
Adds tests
2022-01-18 12:02:27 -08:00
Mouse Reeve
8746409e6d
Adds shelf tags file
2022-01-18 11:20:27 -08:00
Mouse Reeve
e3545517ec
Merge pull request #1837 from bookwyrm-social/author-page-caching
...
Author page caching
2022-01-18 11:02:49 -08:00
Mouse Reeve
1c096ecfc2
Fixes review markup for mastodon serialization
2022-01-18 10:57:52 -08:00
Mouse Reeve
8bbc4d3301
Cache checking if books are on shelve in shelve button snippet
2022-01-18 10:52:15 -08:00
Mouse Reeve
9e450f2d99
Merge pull request #1802 from cincodenada/configurable-logging
...
Make log level configurable, override default logging config
2022-01-18 07:39:43 -08:00
Mouse Reeve
d20db99501
Merge pull request #1838 from bookwyrm-social/create-readthrough-bug
...
Fixes bug in verifying readthrough dates
2022-01-18 06:57:34 -08:00
Mouse Reeve
f5de0dd3c9
Fixes bug in verifying readthrough dates
2022-01-17 19:46:48 -08:00
Mouse Reeve
a09c813f73
Python formatting
2022-01-17 19:04:20 -08:00
Joel Bradshaw
27a0b92de0
Fix include order
2022-01-17 16:12:16 -08:00
Joel Bradshaw
27acf668df
Add the required bits for Django's logger
...
So, you can't define handlers piecewise, and if you redefine a logger,
you have to also include everything it uses, because your "new" logger
doesn't have a reference to the original logging config to get things
like mail_admins and require_debug_false.
require_debug_true isn't strictly necessary here, but it seemed strange
to just copy over one of them.
2022-01-17 15:56:24 -08:00
Joel Bradshaw
13a2c58b98
Use parameter-based formatting for debug
2022-01-17 15:14:01 -08:00
Mouse Reeve
02dd1e9443
Use False instead of None for test values
2022-01-17 12:45:32 -08:00
Mouse Reeve
1e4aee8276
Cache user-specific ratings
2022-01-17 12:17:24 -08:00
Mouse Reeve
4cc35ba25e
Cache query for author's books
2022-01-17 12:05:11 -08:00
Mouse Reeve
63b21fe1c2
Merge pull request #1835 from bookwyrm-social/noreferrer
...
Uses both noopener and noreferrer on external links
2022-01-17 11:49:11 -08:00
Mouse Reeve
8e1352fb75
Updates locales
2022-01-17 11:27:06 -08:00
Mouse Reeve
32acccc350
Use both noopener and noreferrer
2022-01-17 11:25:41 -08:00
Mouse Reeve
8a0ea674ea
Merge pull request #1834 from bookwyrm-social/links-display
...
Improve link filetype and add availability field
2022-01-17 11:08:40 -08:00
Mouse Reeve
4c356cbeb4
Case insensitive suggestions
2022-01-17 10:52:16 -08:00
Mouse Reeve
a23e49c9f3
Fixes filetype field length
2022-01-17 10:48:42 -08:00
Mouse Reeve
2f924faa05
Adds tests
2022-01-17 10:47:49 -08:00
Mouse Reeve
cfcacb4797
Edit book availability
2022-01-17 10:00:12 -08:00
Mouse Reeve
1595bac9b5
Show availability in links panel
2022-01-17 09:26:00 -08:00
Mouse Reeve
39814a21f2
Set book availability
2022-01-17 09:22:40 -08:00
Mouse Reeve
7b1693a435
Larger file type field
2022-01-17 09:03:53 -08:00
Mouse Reeve
942092d6b1
Show link status more prominently on edit page
2022-01-17 08:54:52 -08:00
Mouse Reeve
d4cfe5b8f0
Fixes embedded links modal
2022-01-17 08:44:30 -08:00
Mouse Reeve
f769c42abe
Merge pull request #1833 from bookwyrm-social/links-admin-improvements
...
Links admin improvements
2022-01-17 08:36:48 -08:00
Mouse Reeve
6d7243b6cb
Merge pull request #1832 from bookwyrm-social/locale-updates
...
Updates locales
2022-01-17 08:23:29 -08:00
Mouse Reeve
da6e43a7eb
Avoid two character wide urls on mobile
2022-01-17 08:22:55 -08:00
Mouse Reeve
e12372250a
Mobile-friendly edit button on link domains
2022-01-17 08:17:36 -08:00
Mouse Reeve
b9fde85b49
Sort domains in admin view
2022-01-17 08:15:14 -08:00
Mouse Reeve
3c26e9ead1
Merge pull request #1830 from bookwyrm-social/bad-cache
...
Removes bad cache on content status reading buttons
2022-01-17 08:11:33 -08:00
Mouse Reeve
32a3570b5a
Updates locales
2022-01-17 08:08:59 -08:00
Mouse Reeve
b060cf47f2
Fixes bad cache on content status reading buttons
2022-01-17 08:01:39 -08:00
Mouse Reeve
e218b73272
Merge pull request #1829 from bookwyrm-social/author-page
...
Fixes weird display of author page
2022-01-16 19:58:42 -08:00
Mouse Reeve
7dc7965b76
Fixes weird display of author page
2022-01-16 19:38:21 -08:00
Mouse Reeve
8cc4427e60
Merge branch 'main' into misc/add_signatures_to_requests_for_masto_compat
2022-01-13 11:37:54 -08:00
Mouse Reeve
0c2537e27a
Merge pull request #1527 from bookwyrm-social/book-file-links
...
Book file links
2022-01-13 11:10:05 -08:00
Mouse Reeve
d95830037a
Adds admin notice
2022-01-13 11:00:59 -08:00
Mouse Reeve
1c821263ab
Merge pull request #1824 from bookwyrm-social/locale-updates
...
Updates locales
2022-01-13 09:12:56 -08:00
Mouse Reeve
abd7c213ff
Merge pull request #1823 from bookwyrm-social/update-main
...
Adds update command to main for bw-dev
2022-01-13 09:07:38 -08:00
Mouse Reeve
a06fb777d7
Updates locales
2022-01-13 09:00:02 -08:00
Mouse Reeve
66c67a54e2
Merge pull request #1822 from bookwyrm-social/group-query
...
Fixes searching for users in group view, with test
2022-01-13 08:53:15 -08:00
Mouse Reeve
b76cb0a22f
Adds update command to main for bw-dev
2022-01-13 08:52:22 -08:00
Mouse Reeve
0d12d82c12
Merge pull request #1818 from iamruinous/support-redis-db
...
add support for different redis db
2022-01-13 08:42:00 -08:00
Mouse Reeve
c7b2b303da
Fixes searching for users in group view, with test
2022-01-13 08:38:54 -08:00
Jade Meskill
900937ee5f
use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file
2022-01-13 09:16:16 -07:00
Jade Meskill
5a3d108c62
update fomatting to pass automated checks
2022-01-12 22:46:51 -07:00
Mouse Reeve
fcd2a62e2a
Merge pull request #1819 from iamruinous/fix-email-domain
...
use correct environment variable for EMAIL_SENDER_DOMAIN
2022-01-12 21:38:07 -08:00
Jade Meskill
6490c1eded
use correct environment variable for EMAIL_SENDER_DOMAIN
2022-01-12 21:49:57 -07:00
Jade Meskill
3638e18844
add support for different redis db
2022-01-12 19:44:11 -07:00
Mouse Reeve
2fbbdbc06a
Runs prettier
2022-01-12 17:19:34 -08:00
Mouse Reeve
e6355f76de
Adds merge migration
2022-01-12 17:16:20 -08:00
Mouse Reeve
d74360a13f
Merge branch 'main' into book-file-links
2022-01-12 17:14:27 -08:00
Mouse Reeve
a2fb1489b9
Merge branch 'main' into book-file-links
2022-01-12 17:11:29 -08:00
Mouse Reeve
d1183fd003
Python formatting
2022-01-12 17:11:24 -08:00
Mouse Reeve
7bb634b71f
Merge pull request #1699 from bookwyrm-social/autocomplete
...
Autocomplete script
2022-01-12 17:09:34 -08:00
Mouse Reeve
fc06f0cdd1
Avoid console error
2022-01-12 17:08:10 -08:00
Mouse Reeve
80efd58881
Javascript file in correct template
2022-01-12 17:06:36 -08:00
Mouse Reeve
34635b0c3f
Select trie based on data attr
2022-01-12 17:02:30 -08:00
Mouse Reeve
99ec87c67c
Merge branch 'book-file-links' into autocomplete
2022-01-12 16:51:59 -08:00
Mouse Reeve
262e641c79
Creates link template subdirectory
2022-01-12 16:50:52 -08:00
Mouse Reeve
5fcdc284ce
Removes duplicate atomic block
2022-01-12 16:41:23 -08:00
Mouse Reeve
dedcbda2d8
Adds inbox test
2022-01-12 16:41:20 -08:00
Mouse Reeve
b2262a5f98
Merge pull request #1816 from bookwyrm-social/privacy-translation
...
Build-in translations to privacy choices dropdown
2022-01-12 16:15:03 -08:00
Mouse Reeve
1513c73d48
Merge pull request #1817 from bookwyrm-social/opensearch-site-name
...
Use site name as shortname for opensearch
2022-01-12 16:14:09 -08:00
Mouse Reeve
84575cef9a
Use site name as shortname for opensearch
2022-01-12 15:29:40 -08:00
Mouse Reeve
8b2335c52c
Build-in translations to privacy choices dropdwon
2022-01-12 15:26:13 -08:00
Mouse Reeve
899f9beb82
Merge pull request #1815 from bookwyrm-social/status-headers
...
Status headers
2022-01-12 11:35:26 -08:00
Mouse Reeve
c08b9e61c4
Fixes book link in table
2022-01-12 11:34:44 -08:00
Mouse Reeve
57a05e239b
Python formatting
2022-01-12 11:17:30 -08:00
Mouse Reeve
24045685e1
Updates tests
2022-01-12 11:03:04 -08:00
Mouse Reeve
9c86132701
Adds missing bracket
2022-01-12 10:43:40 -08:00
Mouse Reeve
4a7013f104
Adds book path variable
2022-01-12 10:42:27 -08:00
Mouse Reeve
581e3d17e0
Fixes nested quotes
2022-01-12 10:41:48 -08:00
Mouse Reeve
7f23e8c112
Updates locales
2022-01-12 10:37:26 -08:00
Mouse Reeve
5da2ce6427
Include author in content status headers
2022-01-12 10:35:02 -08:00
Mouse Reeve
e452ec87d3
Link to book title in pure activitypub serialization of review
2022-01-12 10:15:26 -08:00
Mouse Reeve
4cf3f378ef
Delete view
2022-01-12 10:08:49 -08:00
Mouse Reeve
ebc451fdd2
Edit links view
2022-01-12 09:59:46 -08:00
Mouse Reeve
2ca41a0b11
Renames add link view
2022-01-12 09:16:24 -08:00
Mouse Reeve
e6d9895854
Merge branch 'main' into book-file-links
2022-01-12 06:39:22 -08:00
Mouse Reeve
de0c50196e
Merge pull request #1812 from bookwyrm-social/modal-triggers
...
Use updated modal triggers on shelf page shelf selector
2022-01-11 13:19:14 -08:00
Mouse Reeve
e378e74901
Merge pull request #1811 from bookwyrm-social/cache-fix
...
Fixes active readthrough cache bug
2022-01-11 13:11:02 -08:00
Mouse Reeve
549d6e9b3b
Use updated modal triggers on shelf page shelf selector
2022-01-11 13:10:25 -08:00
Mouse Reeve
6baab5d5a9
python formatting
2022-01-11 12:58:14 -08:00
Mouse Reeve
2fabad63e0
Merge pull request #1809 from bookwyrm-social/unread-notifications
...
Show unread notifications color
2022-01-11 12:55:18 -08:00
Mouse Reeve
26a089b3c9
Merge pull request #1810 from bookwyrm-social/shelf-breadcrumbs
...
Shelf breadcrumbs
2022-01-11 12:55:08 -08:00
Mouse Reeve
591bb955f8
Fixes active readthrough cache bug
2022-01-11 12:37:07 -08:00
Mouse Reeve
5fd0115216
Use translation snippet
2022-01-11 12:10:30 -08:00
Mouse Reeve
150756dbd0
Adds breadcrumbs to shelf page
2022-01-11 12:03:04 -08:00
Mouse Reeve
0abfc67c12
Merge pull request #1808 from bookwyrm-social/readthrough-form
...
Updates editing read-through flow
2022-01-11 12:01:21 -08:00
Mouse Reeve
f4b655f952
Makes form names unique in readthrough modal
2022-01-11 11:45:37 -08:00
Mouse Reeve
c12aa1ef79
Fixes test
2022-01-11 11:38:26 -08:00
Mouse Reeve
0d7801f6f4
Show unread notifications color
2022-01-11 11:04:56 -08:00
Mouse Reeve
9fdb75e2d3
Renames item layout file
2022-01-11 10:47:55 -08:00
Mouse Reeve
834eb95d9d
Reformats readthrough view test
2022-01-11 10:43:17 -08:00
Mouse Reeve
0f9881365b
Python formatting
2022-01-11 10:41:33 -08:00
Mouse Reeve
4ca90ca10f
Renames class view
2022-01-11 10:40:32 -08:00
Mouse Reeve
68d943fb26
Preserve readthrough id in edit
2022-01-11 10:33:58 -08:00
Mouse Reeve
a412f87c64
Match wording to state
2022-01-11 10:29:11 -08:00
Mouse Reeve
7ccb02f635
Use new modal for edits
2022-01-11 10:27:10 -08:00
Mouse Reeve
cdaf0fe8e3
Show error message when start and finish date is invalid
2022-01-11 10:22:19 -08:00
Mouse Reeve
9521c477b2
Moves readthrough templates to dir
2022-01-11 09:58:28 -08:00
Mouse Reeve
0d2c6e63d1
Converts create readthrough to modal
2022-01-11 09:50:04 -08:00
Mouse Reeve
a47bd7a05b
Merge pull request #1807 from bookwyrm-social/ui-small-fixes
...
UI small fixes
2022-01-11 09:28:02 -08:00
Mouse Reeve
048460aec2
Don't show filters notice on paged feed
2022-01-11 09:12:30 -08:00
Mouse Reeve
4faf3cf09a
Fixes button on search page
2022-01-11 09:12:04 -08:00
Mouse Reeve
de1bace8f3
Updates tests
2022-01-11 08:06:52 -08:00
Mouse Reeve
60761b19ba
Run prettier
2022-01-10 16:55:30 -08:00
Mouse Reeve
4202498442
Fixes one option trie case
2022-01-10 16:53:30 -08:00
Mouse Reeve
f6d6285009
Updates trie function
2022-01-10 16:44:43 -08:00
Mouse Reeve
2746318152
Uses datalist for autocomplete suggestions
2022-01-10 15:47:40 -08:00
Mouse Reeve
380087da90
Merge branch 'book-file-links' into autocomplete
2022-01-10 15:32:20 -08:00
Mouse Reeve
dcf8a8dab9
Fixes settings tab highlighting
2022-01-10 15:27:33 -08:00
Mouse Reeve
c0b5e6ad78
Fixes linting errors
2022-01-10 15:00:37 -08:00
Mouse Reeve
aee7e1ae41
Fixes redirect on reports modal
2022-01-10 14:58:10 -08:00
Mouse Reeve
78dd5caf9f
Allow users to report spam links
2022-01-10 14:55:10 -08:00
Mouse Reeve
651d468b13
Show who added the link in admin view
2022-01-10 13:33:22 -08:00
Mouse Reeve
34f375c53c
Store user that added link
2022-01-10 13:27:01 -08:00
Mouse Reeve
6c78a7b6ef
Add user attribution to links and domains
2022-01-10 13:20:31 -08:00
Mouse Reeve
93fead47ef
Reformats init command and adds Standard EBooks
2022-01-10 13:13:28 -08:00
Mouse Reeve
dcf51020bc
Removes initialization from migration
...
Just doesn't seem right
2022-01-10 13:05:08 -08:00
Mouse Reeve
8928e8da26
Corrects tests
2022-01-10 12:42:05 -08:00
Mouse Reeve
2880b311e1
HTML validity fix for summary tag
2022-01-10 12:30:24 -08:00
Mouse Reeve
eec1155bb8
Adds admin view tests
2022-01-10 12:29:28 -08:00
Mouse Reeve
62f481c859
Fixes urls
2022-01-10 12:21:36 -08:00
Mouse Reeve
d610115a5b
Null state for links
2022-01-10 12:09:03 -08:00
Mouse Reeve
8ba3a4ab00
Adds link confirmation modal
2022-01-10 11:48:07 -08:00
Mouse Reeve
4ba375892a
Merge pull request #1793 from bookwyrm-social/more-caches
...
More caches
2022-01-10 11:25:26 -08:00
Mouse Reeve
4dfe9fd714
Support links with no name
2022-01-10 11:21:43 -08:00
Mouse Reeve
4820a2f982
Python formatting
2022-01-10 11:21:03 -08:00
Mouse Reeve
f0ae37c331
Block or approve domains
2022-01-10 11:19:20 -08:00
Mouse Reeve
6b0967df39
Show related books in links preview
2022-01-10 11:03:10 -08:00
Mouse Reeve
3f280af715
Functionality to edit name
2022-01-10 10:48:27 -08:00
Mouse Reeve
f580a51f24
Form to edit link domain display names
2022-01-10 10:39:09 -08:00
Mouse Reeve
32e3fdb438
Adds admin view
2022-01-10 10:12:28 -08:00
Joel Bradshaw
29ebfc456d
Use run --rm instead of exec for initdb
...
This way we don't depend on the containers already being up and running.
2022-01-09 23:57:57 -08:00
Joel Bradshaw
5cf1d8a30a
Make it black
2022-01-09 23:53:23 -08:00
Joel Bradshaw
085dd24a62
Simplify and explain our overrides
...
This should also fix the 500s-in-prod issue, yay
2022-01-09 23:49:14 -08:00
Joel Bradshaw
83851c2933
Add bookwyrm-specific logging
2022-01-09 23:49:14 -08:00
Joel Bradshaw
af3c84cd87
Add basic logging config
2022-01-09 23:49:14 -08:00
Mouse Reeve
0bfa15bb47
Adds id on static link edit view
2022-01-09 20:48:16 -08:00
Mouse Reeve
aa9864a21e
Only show approved links
2022-01-09 20:30:23 -08:00
Mouse Reeve
70fe7e17af
Removes name ap field
2022-01-09 14:25:22 -08:00
Mouse Reeve
63075a6fe9
Updates models
2022-01-09 14:21:13 -08:00
Mouse Reeve
bae01e1ea5
Updates modal
2022-01-09 14:20:52 -08:00
Mouse Reeve
bae355e8d2
Adds link domain table
2022-01-09 13:19:29 -08:00
Mouse Reeve
4931e5cad2
Merge branch 'main' into book-file-links
2022-01-09 13:15:58 -08:00
Mouse Reeve
0a182e8150
Caches query for landing page books
2022-01-09 13:04:41 -08:00
Mouse Reeve
e8c830750a
No cache for suggested books
2022-01-09 13:00:02 -08:00
Mouse Reeve
6492ca2941
Merge pull request #1769 from joachimesque/thumbnail-generation-strategy
...
Change thumbnail generation strategy
2022-01-09 12:34:42 -08:00
Mouse Reeve
78c707bc58
Merge pull request #1801 from bookwyrm-social/fixes-compiled-locales
...
Fixes compiled locales
2022-01-09 12:21:18 -08:00
Mouse Reeve
556c9ea98f
Adjusts cache get_or_set to work with tests
2022-01-09 12:16:01 -08:00
Mouse Reeve
593d1638f9
Updates tests env
2022-01-09 12:04:45 -08:00
Mouse Reeve
eee1d347d1
Fixes compiled locales
2022-01-09 11:21:06 -08:00
Mouse Reeve
f03c6c46d6
Merge pull request #1800 from bookwyrm-social/locale-updates
...
Updates locales
2022-01-09 11:11:39 -08:00
Mouse Reeve
00e8574d1f
Typo fix
2022-01-09 11:01:55 -08:00
Mouse Reeve
296951f437
Updates locales
2022-01-09 10:50:53 -08:00
Mouse Reeve
ebf4c6127f
Merge pull request #1798 from joachimesque/annual-summary-fix-highest-link
...
Annual Summary: Fix link to book with highest page count
2022-01-09 10:08:13 -08:00
Mouse Reeve
dc7034cd61
Merge pull request #1797 from joachimesque/populate-list-streams-add-message
...
Add end message for populate_list_streams command
2022-01-09 10:07:01 -08:00
Joachim
278ce88b82
Annual Summary: Fix link to book with highest page count
2022-01-09 12:18:18 +01:00
Joachim
4c07c5e47e
Add end message for populate_list_streams command
2022-01-09 12:11:52 +01:00
Joachim
734da71037
Remove backend setting
2022-01-09 10:36:06 +01:00
Mouse Reeve
3048311a5e
Merge pull request #1796 from bookwyrm-social/about-admins
...
Makes query to get admins unique
2022-01-08 18:54:59 -08:00
Mouse Reeve
599c79917e
Makes query to get admins unique
2022-01-08 18:44:32 -08:00
Mouse Reeve
ad9d7bcd65
Merge pull request #1794 from bookwyrm-social/new-languages
...
Adds Italian and Norwegian locales
2022-01-08 18:42:23 -08:00
Mouse Reeve
79f6fb966e
Updates migration
2022-01-08 17:07:51 -08:00
Mouse Reeve
16a58ae079
Merge branch 'main' into book-file-links
2022-01-08 16:58:37 -08:00
Mouse Reeve
c23b91da32
New strings
2022-01-08 16:56:34 -08:00
Mouse Reeve
ac1787ce6b
Merge branch 'main' into new-languages
2022-01-08 16:54:31 -08:00
Mouse Reeve
82294909a8
Python formatting
2022-01-08 16:38:52 -08:00
Mouse Reeve
e1a617f742
Merge pull request #1613 from bookwyrm-social/list-not-loading
...
Use a redis cache to store lists for user
2022-01-08 13:38:20 -08:00
Mouse Reeve
a80cb4310e
Merge pull request #1771 from bookwyrm-social/about-page
...
Refactors about page
2022-01-08 13:28:23 -08:00
Mouse Reeve
c822048509
Invalidate template cache on relationship change
2022-01-08 13:04:01 -08:00
Mouse Reeve
f2f40cf3b9
Creates custom get_or_set function
2022-01-08 13:01:05 -08:00
Mouse Reeve
2cca9fab2d
Cache user relationship for follow buttons
2022-01-08 12:33:13 -08:00
Mouse Reeve
26928252cd
Use cache
2022-01-08 11:44:04 -08:00
Mouse Reeve
b6d04e9997
Merge pull request #1792 from reesporte/lang-setting
...
save language preferences with cookies that last
2022-01-08 11:27:58 -08:00
Mouse Reeve
bb4b724b1a
Updates queries
2022-01-08 11:26:15 -08:00
Mouse Reeve
a4cb8f7e89
Merge pull request #1788 from bookwyrm-social/single-env-file
...
Moves to a single example .env file
2022-01-08 11:02:57 -08:00
reesporte
85691478f1
save language preferences with cookies that last
...
(as long as login ones do)
2022-01-08 12:56:57 -06:00
Joachim
705c4cd636
Update thumbnail_generation.py
2022-01-08 17:54:03 +01:00
Joachim
12ea1910b4
Add docstrings
2022-01-08 17:47:45 +01:00
Joachim
656e0b84eb
Fix
2022-01-08 17:42:25 +01:00
Joachim
a54995eb9d
Add new complete strategy
2022-01-08 17:41:44 +01:00
Mouse Reeve
02a963c4ef
Adds locales to application
2022-01-08 07:38:14 -08:00
Mouse Reeve
cb858b66fe
Adds Italian and Norwegian locales
2022-01-08 07:34:18 -08:00
Mouse Reeve
392dbfce01
Merge branch 'main' into about-page
2022-01-07 14:59:26 -08:00
Mouse Reeve
9609e130f2
Moves to a single example .env file
...
The prod and dev ones hae gotten so close that it seems unnecessary to
have two different ones.
2022-01-07 14:49:15 -08:00
Mouse Reeve
7d2a53fec9
Merge pull request #1784 from bookwyrm-social/npm-update
...
Updates NPM dependencies to resolve security alerts
2022-01-07 14:40:10 -08:00
Mouse Reeve
a9b88c0796
Use null to invalidate rules
2022-01-07 14:18:41 -08:00
Mouse Reeve
02feb0d594
Stylelint updates
2022-01-07 14:08:36 -08:00
Mouse Reeve
db3b4465f6
Updates NPM dependencies to resolve security alerts
...
Amazing how many npm dependencies you can have when you don't even use
npm in an app
2022-01-07 13:50:27 -08:00
Mouse Reeve
f43a9570e2
Updates test
2022-01-07 13:40:20 -08:00
Mouse Reeve
8a8ce0c0d4
Fixes deletion of lists
2022-01-07 13:30:11 -08:00
Mouse Reeve
0580b66c3b
Fixes test
2022-01-07 10:34:45 -08:00
Mouse Reeve
7e1a4bc363
Ticks version number
2022-01-07 10:32:40 -08:00
Mouse Reeve
165fdc6d2d
Merge branch 'main' into list-not-loading
2022-01-07 10:32:17 -08:00
Mouse Reeve
47c79afd75
Merge pull request #1770 from bookwyrm-social/email-config
...
Configure email sender from .env file
2022-01-07 10:23:50 -08:00
Mouse Reeve
5c7cc034d5
Merge pull request #1782 from bookwyrm-social/get-started-user-search
...
Fixes searching for users in get started view
2022-01-07 10:23:19 -08:00
Mouse Reeve
db1485abb3
Merge pull request #1781 from bookwyrm-social/dependabot/npm_and_yarn/postcss-8.2.13
...
Bump postcss from 8.2.10 to 8.2.13
2022-01-07 10:14:28 -08:00
Mouse Reeve
2ff9ba8bee
Merge pull request #1783 from bookwyrm-social/bad-caches
...
Removes caches that cause CSRF token failures
2022-01-07 10:14:17 -08:00
Mouse Reeve
e91947afbf
Adds meaningful test mock
2022-01-07 10:06:11 -08:00
Mouse Reeve
c918edb622
Fixes searching for users in get started view
2022-01-07 09:56:29 -08:00
dependabot[bot]
21ce7f3721
Bump postcss from 8.2.10 to 8.2.13
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.2.10 to 8.2.13.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.2.10...8.2.13 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-07 17:54:08 +00:00
Mouse Reeve
7415166718
Merge pull request #1776 from bookwyrm-social/dependabot/pip/celery-5.2.2
...
Bump celery from 4.4.2 to 5.2.2
2022-01-07 09:53:46 -08:00
Mouse Reeve
abcae9e6c4
Removes caches that cause CSRF token failures
2022-01-07 09:47:58 -08:00
Mouse Reeve
c89b8ee5db
Updates flower
2022-01-07 09:45:21 -08:00
Mouse Reeve
1c74c0c0d9
Merge branch 'main' into dependabot/pip/celery-5.2.2
2022-01-07 08:38:05 -08:00
Mouse Reeve
f9d7512ffd
Merge pull request #1780 from bookwyrm-social/search-timeouts
...
Make search timeouts configurable
2022-01-07 08:12:30 -08:00
Mouse Reeve
b18c69e186
Make search timeouts configurable
2022-01-07 07:42:05 -08:00
Mouse Reeve
0ddecd7049
Merge pull request #1778 from hughrun/register-403
...
do not cache registration form
2022-01-06 18:56:23 -08:00
Mouse Reeve
a1e3ef1c79
Fixes pylint complaint
2022-01-06 18:47:14 -08:00
Hugh Rundle
e4be6a98e8
do not cache registration form
...
Fixes #1777
Caching the Landing view also caches the registration form, including the CSRF value.
This moves the caching into the recently reviewed books landing template which is presumably what we're trying to cache here, instead of caching the whole view.
NOTE: this fixes the problem with registration, I haven't done enough testing to be sure it actually still caches the recent reviews data.
2022-01-07 13:13:56 +11:00
dependabot[bot]
2d5ea3a99d
Bump celery from 4.4.2 to 5.2.2
...
Bumps [celery](https://github.com/celery/celery ) from 4.4.2 to 5.2.2.
- [Release notes](https://github.com/celery/celery/releases )
- [Changelog](https://github.com/celery/celery/blob/master/Changelog.rst )
- [Commits](https://github.com/celery/celery/compare/4.4.2...v5.2.2 )
---
updated-dependencies:
- dependency-name: celery
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 22:42:44 +00:00
Mouse Reeve
602574566b
Merge pull request #1775 from bookwyrm-social/order-suggestions
...
Sort suggestions by mutuals
2022-01-06 13:12:51 -08:00
Mouse Reeve
cc6c75c5ec
Merge pull request #1774 from hughrun/zero-annual
...
Minor grammar fix for annual review page
2022-01-06 13:05:33 -08:00
Mouse Reeve
deaa06d44c
Sort suggestions by mutuals
2022-01-06 13:02:12 -08:00
Hugh Rundle
e2efd5fd5a
"any" is plural
...
English huh, what a weird language.
2022-01-07 07:50:36 +11:00
Mouse Reeve
00a14e89a0
Merge pull request #1772 from bookwyrm-social/cache-tweaks
...
Cache tweaks
2022-01-06 12:13:56 -08:00
Mouse Reeve
8722778ed0
Updates tests
2022-01-06 12:13:24 -08:00
Mouse Reeve
cf57891482
Python formatting
2022-01-06 11:50:51 -08:00
Mouse Reeve
cf6e101e55
Merge pull request #1773 from bookwyrm-social/load-generatednote-status-type
...
Loads subclass for generated note
2022-01-06 11:41:30 -08:00
Mouse Reeve
4d0fa2db4a
Dummy cache for tests
2022-01-06 11:40:27 -08:00
Mouse Reeve
45393af843
Loads subclass for generated note
...
Fixes display weirdness in threads
2022-01-06 11:27:02 -08:00
Mouse Reeve
86b3789ffe
Fixes display of filter inputs in chromium
2022-01-06 11:11:00 -08:00
Mouse Reeve
e416ef05e8
Fixes cache of status interact
...
The CSRF token was being cached which caused submits to fail
2022-01-06 11:07:22 -08:00
Mouse Reeve
32ac4111aa
Merge pull request #1768 from bookwyrm-social/shelf-button-cache
...
Cache queries in feed view
2022-01-06 10:42:31 -08:00
Mouse Reeve
b3bfaf0586
Use 6 month cache for items that don't really need to expire
2022-01-06 10:27:12 -08:00
Mouse Reeve
996d1fc571
Don't crash tests
2022-01-06 10:22:27 -08:00
Mouse Reeve
d9857839dc
Add all superusers to admin group
2022-01-06 10:14:21 -08:00
Mouse Reeve
1d2b6f038a
Fixes wording on want-to-read superlative
2022-01-06 10:01:20 -08:00
Mouse Reeve
ee1fd05430
Fixes book links
2022-01-06 09:58:46 -08:00
Mouse Reeve
ee301afa61
Adds tests for views
2022-01-06 09:55:35 -08:00
Mouse Reeve
0f09759662
Separate out landing and about views files
2022-01-06 09:51:38 -08:00
Mouse Reeve
b8c72d75e5
Python formatting
2022-01-06 09:48:36 -08:00
Mouse Reeve
461bfd0ce7
Link to books
2022-01-06 09:47:46 -08:00
Mouse Reeve
d690224559
Use weighted averages
2022-01-06 09:39:51 -08:00
Mouse Reeve
840746754d
Fixes superlatives
2022-01-06 09:22:10 -08:00
Mouse Reeve
705f6d36a6
Adds admins copy
2022-01-06 09:09:00 -08:00
Mouse Reeve
4caa68200f
Adds more info to the about page
2022-01-06 09:04:59 -08:00
Mouse Reeve
b855464396
Expands about pages
2022-01-05 21:42:41 -08:00
Mouse Reeve
99a5924ea8
Not bool
2022-01-05 17:36:52 -08:00
Mouse Reeve
2fed188862
Configure email sender from .env file
2022-01-05 17:35:42 -08:00
Mouse Reeve
6168ce91b3
Merge branch 'main' into list-not-loading
2022-01-05 16:33:05 -08:00
Mouse Reeve
69bd9246dd
Merge pull request #1767 from bookwyrm-social/suggested-users-query
...
Uses single query to get suggested users
2022-01-05 16:19:00 -08:00
Mouse Reeve
0f37e0ad42
Don't try to clear caches for nonexistant authors
2022-01-05 15:55:12 -08:00
Mouse Reeve
b0fef8f0e3
Cache landing page
2022-01-05 15:53:01 -08:00
Mouse Reeve
7df99afdc7
Cache status interact buttons
2022-01-05 14:54:51 -08:00
Mouse Reeve
0da0091237
Cache title author snippet
2022-01-05 14:33:10 -08:00
Mouse Reeve
4a43ad95ef
Linting on suggested_users
2022-01-05 13:51:34 -08:00
Mouse Reeve
ad6d7d5eca
Caches suggested books
2022-01-05 13:43:15 -08:00
Mouse Reeve
3cda27577f
Removes status content cache
2022-01-05 13:01:53 -08:00
Mouse Reeve
6823d5f1b7
Cache follow button template snippet
2022-01-05 12:59:52 -08:00
Mouse Reeve
a5309e9973
Cache status contents
2022-01-05 10:22:25 -08:00
Mouse Reeve
d8dbf94c29
Fixes cache syntax
2022-01-05 10:16:49 -08:00
Mouse Reeve
2cad762646
Use in-memory cache for CI tests
2022-01-05 09:51:00 -08:00
Mouse Reeve
66456fc508
Adds test env var
2022-01-05 09:32:10 -08:00
Mouse Reeve
e6f7828361
Python formatting
2022-01-05 09:30:54 -08:00
Mouse Reeve
bebb2c167e
Use redis with password in dev
2022-01-05 08:52:28 -08:00
Mouse Reeve
629140cad4
Adds redis cache backend
2022-01-05 08:27:31 -08:00
Renato "Lond" Cerqueira
e2ee3d27a7
WIP
2022-01-05 15:47:05 +01:00
Renato "Lond" Cerqueira
097d86454a
Add signatures to requests to mastodon to support authorized fetch mode
...
When mastodon is in authorized fetch mode any request has to be signed
or it fails with 401. This adds the needed signature to the requests
made to discover the actor when receiving something from mastodon (such
as a follow request)
2022-01-05 15:46:42 +01:00
Joachim
f141777d52
Change thumbnail generation strategy
2022-01-05 11:54:49 +01:00
Mouse Reeve
b91649478b
Fixes cache value
2022-01-04 18:07:30 -08:00
Mouse Reeve
cc4469e7e1
Python formatting
2022-01-04 18:05:26 -08:00
Mouse Reeve
5981575f0e
Cache template snipped for shelve buttons
2022-01-04 17:59:35 -08:00
Mouse Reeve
c28fbbeb09
Uses single query to get suggested users
2022-01-04 16:33:19 -08:00
Mouse Reeve
1bd813c6f7
Merge pull request #1761 from bookwyrm-social/portuguese
...
Adds Portuguese locale
2022-01-04 14:45:07 -08:00
Mouse Reeve
96e8839d4b
Merge pull request #1690 from hughrun/group-list-button
...
add "Create list" form to group template
2022-01-04 14:39:12 -08:00
Mouse Reeve
557acd40ad
Fixes locale names
2022-01-04 14:34:22 -08:00
Mouse Reeve
23e498879e
Fixes account create tasks
2022-01-04 14:17:14 -08:00
Hugh Rundle
2153afe743
Merge branch 'main' into group-list-button
...
Hopefully fixes failing tests!
2022-01-05 08:47:01 +11:00
Mouse Reeve
3dd7847d7b
Only remove non-public lists on unfollow
2022-01-04 13:46:21 -08:00
Mouse Reeve
77139385c1
Merge branch 'main' into list-not-loading
2022-01-04 13:36:06 -08:00
Mouse Reeve
e5c5dd8f98
Merge pull request #1736 from bookwyrm-social/new-modals-bright-futures
...
Switch old modals to new modals
2022-01-04 13:31:56 -08:00
Mouse Reeve
d8c682fb2b
Adds Portuguese to the language list
2022-01-04 13:30:08 -08:00
Mouse Reeve
10792125ae
Merge branch 'main' into portuguese
2022-01-04 13:28:19 -08:00
Mouse Reeve
160c758ce6
Adds and updates locale files
2022-01-04 13:23:43 -08:00
Mouse Reeve
afa713e667
Adds locale to bw-dev update command
2022-01-04 13:23:28 -08:00
Mouse Reeve
a5dc6b3d76
Merge pull request #1759 from bookwyrm-social/annual-goal-migration
...
Uses function to get current year for annual goal default
2022-01-04 13:03:53 -08:00
Mouse Reeve
10a51d9689
Changes how progress input fields are id'ed
2022-01-04 12:53:48 -08:00
Mouse Reeve
8a889e9a69
Merge branch 'main' into list-not-loading
2022-01-04 12:27:41 -08:00
Mouse Reeve
24faa45cc7
Merge branch 'main' into annual-goal-migration
2022-01-04 12:24:34 -08:00
Mouse Reeve
abb9686158
Merge pull request #1760 from bookwyrm-social/fragile-test
...
Updates fragile unit test causing nondeterministic failures
2022-01-04 12:23:30 -08:00
Mouse Reeve
cbc8ecb4b3
NotEqual, not False
2022-01-04 11:46:44 -08:00
Mouse Reeve
1ff653ddeb
Merge pull request #1749 from joachimesque/summary-goals
...
Display completed goal on Annual Summary page
2022-01-04 11:42:47 -08:00
Mouse Reeve
9dd2b88054
Updates fragile unit test causing nondeterministic failures
2022-01-04 11:35:12 -08:00
Mouse Reeve
aa1a7189ae
Uses function to get current year for annual goal default
2022-01-04 11:02:59 -08:00
Mouse Reeve
cccd28cb74
Merge pull request #1726 from joachimesque/options-panels
...
Front-end: New look and behavior for Filters and Result panels
2022-01-03 09:23:12 -08:00
Hugh Rundle
d4acd89a28
Merge branch 'main' into group-list-button
2022-01-03 10:28:59 +11:00
Hugh Rundle
ea08b302c9
improve group page layout
...
- move 'Add list' button down to the group lists
- move member search box underneath members heading
- note about members being able to create lists is now under lists heading
2022-01-03 10:09:52 +11:00
Joachim
6e8a29aebf
Update annual_summary.py
2022-01-02 17:52:49 +01:00
Mouse Reeve
0734e5cb62
Merge pull request #1755 from bookwyrm-social/locale-updates
...
Updates locales
2022-01-02 07:47:24 -08:00
Mouse Reeve
dcd1fec695
Updates locales
2022-01-02 07:38:37 -08:00
Mouse Reeve
8c265b1857
Merge pull request #1740 from bookwyrm-social/shelf-dupes
...
Removes duplicates from all books view
2022-01-02 07:28:50 -08:00
Mouse Reeve
5313b283dd
Adds comment
2022-01-02 07:16:46 -08:00
Mouse Reeve
73d6dbab4c
Merge pull request #1752 from hughrun/shelf-selector-fix
...
only show own shelves in shelf_selector dropdown
2022-01-02 07:14:20 -08:00
Mouse Reeve
49ecd86afe
Runs prettier
2022-01-02 07:01:11 -08:00
Mouse Reeve
f50294875f
Merge pull request #1748 from joachimesque/handle-modal-buttons-with-fallback
...
Handle modal component when already active at page load
2022-01-02 06:58:42 -08:00
Hugh Rundle
93d59c33ff
only show own shelves in shelf_selector dropdown
2022-01-02 13:09:40 +11:00
Hugh Rundle
38bd1f46d6
emblacken
2022-01-02 10:19:57 +11:00
Hugh Rundle
c73491b05c
Show add list button to group members
2022-01-02 10:06:59 +11:00
Hugh Rundle
045506d6e0
show group lists on group FindUsers page
2022-01-02 10:06:02 +11:00
Hugh Rundle
b1fa57d2ca
fix group form ids
...
Also adds the List form to the group FindUsers view
2022-01-02 09:08:04 +11:00
Mouse Reeve
da85df57b2
Merge pull request #1750 from bookwyrm-social/hide-summary-fix
...
Default to hidden state for local storage visibility toggle
2022-01-01 13:43:25 -08:00
Mouse Reeve
265fd1cb52
Default to hidden state for local storage visibility toggle
2022-01-01 13:09:24 -08:00
Hugh Rundle
8e17e20802
Merge branch 'bookwyrm-social:main' into group-list-button
2022-01-02 07:50:56 +11:00
Joachim
fd8423b73c
Update annual_summary.py
2022-01-01 21:37:53 +01:00
Joachim
29b688b68d
Update annual_summary.py
2022-01-01 21:32:30 +01:00
Joachim
864b731cfa
remove testing line
2022-01-01 21:30:13 +01:00
Joachim
358aa142b2
Display completed goal on Annual Summary page
2022-01-01 21:28:14 +01:00
Joachim
e1642561ec
Fix search panel validation error
2022-01-01 18:48:53 +01:00
Joachim
b7eb285f7b
Handle modal when it is active on page load
2022-01-01 18:18:23 +01:00
Joachim
cc05e30605
Remove duplicate code
2022-01-01 18:17:11 +01:00
Mouse Reeve
cb3d224a5b
Merge pull request #1739 from bookwyrm-social/notification-link
...
Don't do fancy javascript clicks on the notification page
2022-01-01 08:41:00 -08:00
Mouse Reeve
653970054c
Merge pull request #1745 from bookwyrm-social/goal-status
...
Fixes display for goal statuses
2022-01-01 07:02:27 -08:00
Mouse Reeve
28fed2c6ae
Fixes display for goal statuses
2022-01-01 06:52:13 -08:00
Mouse Reeve
3c1552d435
Merge pull request #1738 from bookwyrm-social/reading-modals
...
Refactors reading modals
2021-12-31 10:40:17 -08:00
Mouse Reeve
30bf84fe7b
Adds aria-described-by to modal component
2021-12-31 10:39:18 -08:00
Mouse Reeve
31be6de665
Python formatting
2021-12-30 20:23:22 -08:00
Mouse Reeve
2cc9e3bbca
Removes duplicates from all books view
2021-12-30 20:14:49 -08:00
Mouse Reeve
8d72169bbd
Don't do fancy javascript clicks on the notification page
2021-12-30 19:48:47 -08:00
Mouse Reeve
2f4899dc1f
Remove old modal, new modal is our best friend now
2021-12-30 19:19:55 -08:00
Mouse Reeve
48d3b4bf58
Merge branch 'new-modals-bright-futures' into reading-modals
2021-12-30 19:16:46 -08:00
Mouse Reeve
d4e24227df
Updates shelve button menu options
2021-12-30 19:15:36 -08:00
Mouse Reeve
ed93eda18d
Adds preventDefault to modal js
2021-12-30 19:09:03 -08:00
Mouse Reeve
8ad75084de
Force state for active modal
2021-12-30 18:56:37 -08:00
Mouse Reeve
e3321c9bad
Updates buttons to call modals in shelve buttons
2021-12-30 18:42:38 -08:00
Mouse Reeve
5f3a5c87b6
Update report modal
2021-12-30 18:37:49 -08:00
Mouse Reeve
a576b128c3
Updates reading modals
2021-12-30 18:06:33 -08:00
Mouse Reeve
65c719d2d4
Move readthrough delete modal into books dir
2021-12-30 17:49:41 -08:00
Mouse Reeve
7af4af278d
Readthrough delete modal
2021-12-30 17:48:09 -08:00
Mouse Reeve
c6b5ecc418
Updates delete group modal
2021-12-30 17:29:06 -08:00
Mouse Reeve
57ce894667
Updates book sync modals
2021-12-30 14:19:31 -08:00
Mouse Reeve
472c003293
Merge branch 'main' into list-not-loading
2021-12-30 14:09:04 -08:00
Mouse Reeve
0031a63511
Updates add cover modal
2021-12-30 14:07:30 -08:00
Mouse Reeve
4400c62274
Adds sync modal for inventaire
2021-12-30 13:38:35 -08:00
Mouse Reeve
82ea04f247
Uses new modals for author sync
2021-12-30 13:37:07 -08:00
Mouse Reeve
d60684e08e
Merge pull request #1735 from bookwyrm-social/lists-markup
...
Cleans up html on list and list curate page
2021-12-30 13:33:37 -08:00
Mouse Reeve
c16312b068
Python formatting
2021-12-30 13:21:38 -08:00
Mouse Reeve
04476d253e
Uses new modal component for delete list modal
2021-12-30 13:18:06 -08:00
Mouse Reeve
80f7c253de
Improves list curate page test
2021-12-30 12:55:40 -08:00
Mouse Reeve
1e879f66ac
Simplify decorators in list curate view
2021-12-30 12:45:47 -08:00
Mouse Reeve
ec0b1e8cc3
Switches position of list delete and save buttons
2021-12-30 12:38:36 -08:00
Mouse Reeve
821e579a39
Refactors list curate page
2021-12-30 12:34:21 -08:00
Mouse Reeve
b090490cd9
Revert test of add list on create command
2021-12-30 12:06:22 -08:00
Mouse Reeve
cc37d7404e
Fixes calls to add lists
2021-12-30 11:58:27 -08:00
Mouse Reeve
4de406afe1
Some tests fixes
2021-12-30 11:07:04 -08:00
Mouse Reeve
975ef7d38e
Merge branch 'main' into list-not-loading
2021-12-30 10:44:23 -08:00
Mouse Reeve
906e0c9c7c
Renames function for loading lists
2021-12-30 10:40:26 -08:00
Mouse Reeve
f993195752
Merge pull request #1725 from joachimesque/book-page-cover-show-modal
...
Front-end: On book page, click on cover to show/add image
2021-12-30 09:29:43 -08:00
Mouse Reeve
3d808a0122
Merge pull request #1734 from joachimesque/summary-book-grid-fixes
...
Fix: Display a denser summary book grid and limit big books
2021-12-30 09:25:54 -08:00
Joachim
dabd1e919d
Fix: Display a denser summary book grid and limit big books
...
Closes #1731
2021-12-30 12:01:28 +01:00
Joachim
cd89271724
Apply review suggestions
2021-12-30 10:43:23 +01:00
Mouse Reeve
9f6918767b
Corrects documentation on sort order
2021-12-29 17:41:31 -08:00
Mouse Reeve
2640c26bb1
Fixes wording in comments
2021-12-29 17:39:14 -08:00
Mouse Reeve
1d1ef6589a
Merge pull request #1730 from bookwyrm-social/locales
...
Updates locales with new translations
2021-12-29 16:20:40 -08:00
Mouse Reeve
a9ff23ece0
Fixes nondeterministic test failure
2021-12-29 13:44:04 -08:00
Mouse Reeve
cefd0e4d5d
Merge pull request #1728 from joachimesque/summary-feed-panel-smol-fix
...
Front-end: Update Feed summary card style
2021-12-29 13:41:53 -08:00
Mouse Reeve
e1ab346418
Updates locales with new translations
2021-12-29 13:34:38 -08:00
Mouse Reeve
b43b3a26c7
Merge pull request #1729 from bookwyrm-social/templatetag-tests
...
Templatetag tests
2021-12-29 13:15:42 -08:00
Mouse Reeve
b1687f5cac
Adds another test
2021-12-29 13:03:23 -08:00
Mouse Reeve
4b8daf6874
Merge branch 'main' into group-list-button
2021-12-29 12:52:24 -08:00
Joachim
ce679cec75
Update bookwyrm.css
2021-12-29 21:45:36 +01:00
Mouse Reeve
d89c7a3617
Merge pull request #1727 from bookwyrm-social/feed-template-tests
...
HTML validation fixes
2021-12-29 12:42:22 -08:00
Mouse Reeve
18213e2d24
Moves tests into separate files
2021-12-29 12:42:02 -08:00
Joachim
f204cff42b
Fix filter panel validation error
2021-12-29 21:40:16 +01:00
Mouse Reeve
0ae6d5e708
Renames templatetags test file
2021-12-29 12:33:42 -08:00
Mouse Reeve
9e5707a9e1
Move templatetags test file into subdirectory
2021-12-29 12:31:42 -08:00
Mouse Reeve
7623168410
Fixes search html
...
And suppresses more warnings
2021-12-29 12:26:40 -08:00
Mouse Reeve
65e59e7b56
Validate search page html
2021-12-29 11:52:32 -08:00
Mouse Reeve
af63c9c187
Line breaks, why not
2021-12-29 11:52:14 -08:00
Mouse Reeve
0968802fd3
Adds alt tag to logo
2021-12-29 11:45:17 -08:00
Mouse Reeve
6075a88438
Validate html in get started views tests
2021-12-29 11:45:07 -08:00
Joachim
383f9fa228
Front-end: Update Feed summary card style
...
Now the header's background is contained by the border-radius
2021-12-29 20:41:11 +01:00
Mouse Reeve
e48d2c35ee
Unqiue form names on list items
2021-12-29 11:38:53 -08:00
Mouse Reeve
3e550a13ad
Unique names for shelve forms
2021-12-29 11:31:26 -08:00
Mouse Reeve
4e1b155c6c
Encode characters in iframe copy text
2021-12-29 11:21:21 -08:00
Joachim
a001dabc52
Fix validation (︺︹︺)
2021-12-29 20:21:06 +01:00
Joachim
0c2997e562
Curlylint fixes
2021-12-29 20:16:53 +01:00
Mouse Reeve
8e89d02093
Fixes html form for editing lists
2021-12-29 11:11:09 -08:00
Joachim
c53b5c306f
Lint fix
2021-12-29 20:03:07 +01:00
Joachim
4cb520f242
Front-end: New look and behavior for Filters and Result panels
2021-12-29 19:50:32 +01:00
Mouse Reeve
3770713e07
Validate html in discover page tests
2021-12-29 10:44:04 -08:00
Mouse Reeve
1e27b64af4
Valid dl html syntax on announcement page
2021-12-29 10:39:47 -08:00
Mouse Reeve
161532f8a8
Adds validate_html to announcement page tests
2021-12-29 10:37:21 -08:00
Mouse Reeve
9facaf404f
Validates html in feed views
2021-12-29 10:20:54 -08:00
Mouse Reeve
0dcd7bee10
Merge pull request #1715 from bookwyrm-social/summary-queries
...
Simplifies query for earliest year
2021-12-29 10:17:52 -08:00
Mouse Reeve
41fb44a46a
Python formatting
2021-12-29 10:07:27 -08:00
Mouse Reeve
f9e9dc55d5
Updates tests
2021-12-29 09:58:42 -08:00
Joachim
faa52503a3
Update bookwyrm.css
2021-12-29 18:57:45 +01:00
Joachim
3b0096caf0
Add button overlay
2021-12-29 18:55:02 +01:00
Mouse Reeve
6ca57ae314
Linter fixes
2021-12-29 09:43:06 -08:00
Mouse Reeve
7eb8d027c4
Merge pull request #1722 from cincodenada/no-more-fedireads-main
...
Remove last traces of fedireads, but in main
2021-12-29 09:32:43 -08:00
Joachim
6952ab0081
Solve markup validation issues
2021-12-29 17:10:44 +01:00
Joachim
e5f3e9cd2c
fix curlylint issue
2021-12-29 17:00:40 +01:00
Joachim
3de2396cb8
Update cover_show_modal.html
2021-12-29 16:45:36 +01:00
Joachim
87ab665583
fix for editorConfig linting
2021-12-29 16:43:38 +01:00
Joachim
e5bca3873c
Remove useless additoins
2021-12-29 16:41:14 +01:00
Joachim
f12ba8609f
Front-end: On book page, click on cover to show/add image
...
Closes #1009
2021-12-29 16:40:19 +01:00
Mouse Reeve
0c0bfc046d
Merge pull request #1723 from bookwyrm-social/dependabot/pip/django-3.2.10
...
Bump django from 3.2.5 to 3.2.10
2021-12-28 17:06:37 -08:00
dependabot[bot]
49ee040241
Bump django from 3.2.5 to 3.2.10
...
Bumps [django](https://github.com/django/django ) from 3.2.5 to 3.2.10.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/3.2.5...3.2.10 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-29 00:54:20 +00:00
Joel Bradshaw
66df16eb78
Fix typo while we're here
2021-12-28 16:49:34 -08:00
Joel Bradshaw
9d1db3f67c
Remove last traces of fedireads
2021-12-28 16:49:32 -08:00
Mouse Reeve
934a202738
Merge pull request #1683 from bookwyrm-social/prettier
...
Adds Prettier javascript formatter
2021-12-28 16:41:45 -08:00
Mouse Reeve
49e0f9437e
Merge branch 'main' into prettier
2021-12-28 16:30:06 -08:00
Mouse Reeve
4b3d2e87a6
Merge pull request #1633 from joachimesque/tidy-header
...
Front-end: New modal component + header alignment
2021-12-28 16:24:27 -08:00
Mouse Reeve
c34c53b672
Merge pull request #1720 from bookwyrm-social/server-errors
...
Various fixes for server errors that popped up on bookwyrm.social
2021-12-28 16:12:30 -08:00
Mouse Reeve
5b75f3d310
Avoid clash with existing test data user
2021-12-28 16:02:48 -08:00
Mouse Reeve
6745cd73cc
Deterministic ordering for OL import test
2021-12-28 15:53:35 -08:00
Mouse Reeve
a8ae427aeb
Updates domain regex
2021-12-28 15:53:26 -08:00
Mouse Reeve
14a90e805a
Test users with domains that contain dashes
2021-12-28 15:52:35 -08:00
Mouse Reeve
1a30546b99
Adds test for dm view with partner
2021-12-28 15:44:47 -08:00
Mouse Reeve
5b192d1b3d
Fixes error when librarything csv is missing isbn
2021-12-28 15:27:35 -08:00
Mouse Reeve
a58d600030
Adds librarything line without isbn to test data
2021-12-28 15:22:02 -08:00
Mouse Reeve
21e0f4234e
Don't try to create a json view of the all books page
...
It's a fake view, a liar
2021-12-28 15:04:25 -08:00
Mouse Reeve
3f8e309680
Adds test for json requests to all books view
2021-12-28 15:04:06 -08:00
Mouse Reeve
14601a0c31
Don't error out on invalid login POST
...
Thanks, log4j exploit scanners, for catching this one
2021-12-28 14:50:28 -08:00
Mouse Reeve
638ea166be
More trailing slashes in urls
2021-12-28 14:41:45 -08:00
Mouse Reeve
f62cd5fd12
Makes embed key non-optional in urls
2021-12-28 14:40:11 -08:00
Mouse Reeve
0422421d60
Fixes bug in logged out group view
2021-12-28 14:33:30 -08:00
Mouse Reeve
8a3be920c6
Adds test for logged out view of group
2021-12-28 14:29:51 -08:00
Mouse Reeve
ec7c1e75fe
Merge pull request #1714 from joachimesque/handle-user-at-urls
...
Redirect /@<username> to /user/<username>
2021-12-28 13:19:46 -08:00
Mouse Reeve
c3ec25dbf8
Simplifies query for earliest year
2021-12-28 13:02:12 -08:00
Joachim
17cb936a16
Update test_user.py
2021-12-28 21:54:06 +01:00
Joachim
5284e7009d
fix pylint remark
2021-12-28 21:51:45 +01:00
Joachim
cae4934b48
Apply review suggestion
2021-12-28 21:49:52 +01:00
Joachim
05142f4b73
Add test
2021-12-28 21:49:41 +01:00
Mouse Reeve
a06e1e37c9
Merge pull request #1712 from bookwyrm-social/plurals
...
Adds more plurals to summary translation
2021-12-28 12:44:44 -08:00
Joachim
ff3021d1f3
Redirect /@<username> to /user/<username>
2021-12-28 21:40:01 +01:00
Mouse Reeve
faafcbebd7
Fixes calls to counter
2021-12-28 12:26:57 -08:00
Mouse Reeve
f4f3659c6f
Updates locales
2021-12-28 12:25:01 -08:00
Mouse Reeve
d974e251f1
Adds more plurals to summary translation
2021-12-28 12:05:32 -08:00
Mouse Reeve
4159776771
Merge pull request #1710 from joachimesque/summary-images-fixes
...
Summary images fixes
2021-12-28 12:00:38 -08:00
Joachim
b26d41cefc
Update bookwyrm.css
2021-12-28 17:59:01 +01:00
Joachim
b6e90ce2b2
Fix grid on mobile
2021-12-28 17:58:10 +01:00
Joachim
9e0ebc3ec7
Fix hardcoded year in translation key
2021-12-28 17:40:33 +01:00
Joachim
b2f6c61bb6
Slightly better quality images
2021-12-28 17:40:13 +01:00
Mouse Reeve
daa3a1ee77
Merge pull request #1708 from bookwyrm-social/summary-mobile
...
Tweaks mobile view for annual summary
2021-12-28 07:25:44 -08:00
Mouse Reeve
38d4172e2c
Merge pull request #1707 from bookwyrm-social/locale_updates
...
Adds annual review translations for Galician and Spanish
2021-12-28 07:18:21 -08:00
Mouse Reeve
d67150fb7f
Tweaks mobile view for annual summary
2021-12-28 07:16:33 -08:00
Mouse Reeve
86e8d36b25
Adds annual review translations for Galician and Spanish
2021-12-28 07:02:52 -08:00
Mouse Reeve
d0e44f1ee4
Merge pull request #1706 from joachimesque/summary-list-bugfixes
...
Fixes: Annual summary book list
2021-12-28 06:59:24 -08:00
Joachim
3a015062ec
Reverse sorting order
2021-12-28 10:49:09 +01:00
Joachim
489c827673
fix sizes
2021-12-28 10:29:35 +01:00
Joachim
8fd0d5baf0
Fix images stretch
2021-12-28 10:18:40 +01:00
Mouse Reeve
0dde5d4a4b
Merge pull request #1705 from bookwyrm-social/annual-ids
...
Use readthroughs only to determine books read this year
2021-12-27 14:56:32 -08:00
Mouse Reeve
b35cc90be6
Merge pull request #1704 from bookwyrm-social/summary-strings
...
Adds translation strings for summary page
2021-12-27 14:51:30 -08:00
Mouse Reeve
b99ff9ef85
Removes unused import
2021-12-27 14:49:48 -08:00
Mouse Reeve
a064333a96
Use readthroughs only to determine books read this year
2021-12-27 14:45:11 -08:00
Mouse Reeve
66d5f16f82
Merge pull request #1703 from bookwyrm-social/hide-annual-summary
...
Hide annual summary
2021-12-27 14:32:53 -08:00
Mouse Reeve
90c321caae
Adds translation strings for summary page
...
Plus locale updates
2021-12-27 14:27:37 -08:00
Mouse Reeve
e6b15f25eb
Fixes variable name
2021-12-27 14:22:09 -08:00
Mouse Reeve
3cddd69274
Option to hide the annual summary card
2021-12-27 14:12:57 -08:00
Mouse Reeve
1be164425a
Merge branch 'main' into prettier
2021-12-27 13:39:34 -08:00
Mouse Reeve
2345845560
Merge pull request #1692 from joachimesque/summary-review-sharing
...
Feature: Annual summary sharing
2021-12-27 13:37:59 -08:00
Mouse Reeve
ed3ae0940b
Merge pull request #1701 from bookwyrm-social/annual-summary-tweaks
...
Adds minor changes to null states for annual summary
2021-12-27 13:31:57 -08:00
Mouse Reeve
85486dcfad
Update bookwyrm.css
2021-12-27 13:29:47 -08:00
Mouse Reeve
5afd59f4d4
Merge branch 'main' into summary-review-sharing
2021-12-27 13:19:15 -08:00
Mouse Reeve
a96466bf35
Adds minor changes to null states for annual summary
2021-12-27 13:16:27 -08:00
Mouse Reeve
c85f881f97
Merge pull request #1691 from joachimesque/2021-in-the-books
...
Feature: Create annual summary page
2021-12-27 13:15:54 -08:00
Mouse Reeve
e1614a52ac
Merge pull request #1700 from bookwyrm-social/locales
...
Locale updates
2021-12-27 13:03:43 -08:00
Mouse Reeve
ae2d869fa9
Merge pull request #1695 from joachimesque/fix-text-right-on-shelf-modal
...
Fix: Fix modal alignment in Shelf page
2021-12-27 13:02:33 -08:00
Mouse Reeve
935cca2dd7
Merge pull request #1689 from joachimesque/details-fixes
...
Front-end: Fix Safari details display and enhance dropdown on mobile
2021-12-27 13:00:29 -08:00
Mouse Reeve
a148f0e2be
Merge pull request #1686 from cincodenada/sync-s3
...
Adds sync_media_to_s3 command
2021-12-27 12:48:25 -08:00
Mouse Reeve
38c132e251
Merge pull request #1684 from bookwyrm-social/remove-checkall
...
Removes check_all javascript that is no longer used
2021-12-27 12:47:21 -08:00
Mouse Reeve
119a030aab
Locale updates
2021-12-27 12:44:22 -08:00
Mouse Reeve
76694bb891
Demo for file type
2021-12-27 12:42:24 -08:00
Mouse Reeve
3d07618b5f
Styling for autocomplete box
2021-12-27 12:42:11 -08:00
Mouse Reeve
e2d1c987b5
Adds autocomplete scrip
2021-12-27 12:41:42 -08:00
Joachim
cc7f1ef73d
Fix: Fix modal alignment in Shelf page
2021-12-22 20:03:13 +01:00
Joachim
5314681641
Update layout.html
2021-12-22 19:47:39 +01:00
Joachim
df7b40359a
Add translation calls
2021-12-22 18:15:20 +01:00
Joachim
07f2d9a11c
Update tests
2021-12-22 18:15:05 +01:00
Joachim
b03b6f6d6f
Add docstring
2021-12-22 17:14:21 +01:00
Joachim
b9265bdd29
Update annual_summary.py
2021-12-22 17:10:47 +01:00
Joachim
04d51cde3f
pylint
2021-12-22 17:09:12 +01:00
Joachim
d4b8aa51f6
lint styles
2021-12-22 16:55:02 +01:00
Joachim
13ee7e7a65
Use readthrough finish date instead of shelving date
2021-12-22 16:53:10 +01:00
Joachim
357eddf16e
Limit page availability to earliest completed readthrough / shelving
2021-12-22 16:52:42 +01:00
Joachim
8de2bca2c5
Add + adjust text copy component
2021-12-22 15:13:42 +01:00
Joachim
45dd39d370
Add key creation/revocation
2021-12-22 15:12:56 +01:00
Joachim
af9c983145
Change voice for no read book
2021-12-22 15:11:55 +01:00
Joachim
1022e3e165
Add basic key verification and change voice in template
2021-12-22 15:11:05 +01:00
Joachim
24b0e086e7
Add summary_keys JSONField for the user
2021-12-22 14:57:26 +01:00
Joachim
ce9c6f1727
Color links in green
2021-12-22 14:54:36 +01:00
Joachim
13d668e49e
Color links in green
2021-12-22 14:53:34 +01:00
Joachim
0da0a62660
Don't crash if there's no ratings
2021-12-22 11:18:47 +01:00
Joachim
6308625bab
Don't crash if there's no ratings
2021-12-22 11:18:26 +01:00
Joachim
67092fd3e3
🤦
2021-12-22 10:27:59 +01:00
Joachim
ce8bb306a3
🤦
2021-12-21 17:35:57 +01:00
Joachim
73551f1602
Fix tests?
2021-12-21 17:24:44 +01:00
Joachim
66ee5ccacf
Fix tests?
2021-12-21 17:24:15 +01:00
Joachim
8f0df388e6
Update test_annual_summary.py
2021-12-21 15:57:58 +01:00
Joachim
37abf9531d
fix test
2021-12-21 15:55:51 +01:00
Joachim
c13e7479c3
Add tests
2021-12-21 14:44:21 +01:00
Joachim
b7545bf0dd
Style fixes
2021-12-21 13:50:05 +01:00
Joachim
545fb9e4be
disable no-self-use
2021-12-21 13:17:18 +01:00
Joachim
581e7f3e40
R0914 & R0201
2021-12-21 12:22:40 +01:00
Joachim
7e9c7ce9e3
Improve pylint
2021-12-21 12:12:32 +01:00
Joachim
d9bd7be1ec
same
2021-12-21 12:06:57 +01:00
Joachim
7c9995a5e5
Fix EditorConfig linting
2021-12-21 12:02:57 +01:00
Joachim
da51711ddf
black
2021-12-21 11:58:46 +01:00
Joachim
4d6c4d3ad2
Add rounding for averages
2021-12-21 11:54:20 +01:00
Joachim
c2c57db8e6
Fix for empty years
2021-12-21 11:52:33 +01:00
Joachim
1fd44aeb5c
Style fixes
2021-12-21 11:43:45 +01:00
Joachim
ce6ca49620
Add link to current summary on home feed
2021-12-21 11:43:39 +01:00
Joachim
a8e8785106
Add previous/next year links
2021-12-21 11:43:09 +01:00
Joachim
a24afdb6bf
Use aggregate queries
2021-12-21 10:21:30 +01:00
Joachim
b2f3f03197
Lint style
2021-12-20 23:40:53 +01:00
Joachim
8d64b2d55e
Add serif styles
2021-12-20 23:38:18 +01:00
Joachim
c1459dbcf9
Feature: Create annual summary page
2021-12-20 23:37:45 +01:00
Hugh Rundle
1603df0817
add "Create list" form to group template
2021-12-19 14:19:35 +11:00
Joachim
89713ce685
same but for js
2021-12-17 20:53:06 +01:00
Joachim
b15e0e37fc
same
2021-12-17 20:51:41 +01:00
Joachim
9a2a31028b
fix linting issues
2021-12-17 20:50:04 +01:00
Joachim
355405daa3
Front-end: Fix Safari details display and enhance dropdown on mobile
2021-12-17 20:40:58 +01:00
Joachim
df8427921b
Add alignment rule for button reset
2021-12-17 17:34:22 +01:00
Joachim
f88b511bbf
Update bookwyrm.css
2021-12-17 17:32:44 +01:00
Joachim
ce0e2eb61a
Handle navbar alignment thank to Bulma helper classes
2021-12-17 17:30:14 +01:00
Joachim
f300104c4d
Add reset button style
2021-12-17 17:29:46 +01:00
Joachim
2544ea12c7
Revert changes on layout
2021-12-17 17:00:10 +01:00
Joel Bradshaw
faffbdce21
Fix spacing
2021-12-16 23:44:47 -08:00
Joel Bradshaw
37a7899f6f
Consistently quote $@, check for argument
...
Also add $@ to a couple commands, and add a check for the argument to
the CORS command since it's required
2021-12-16 23:41:58 -08:00
Joel Bradshaw
8eb340945b
Add sync_media_to_s3 command
...
This is useful if the copy gets aborted, or to sync over remnants
generated between the copy and the switchover to S3
2021-12-16 23:40:40 -08:00
Mouse Reeve
8bda0bc0dc
Removes check_all javascript that is no longer used
2021-12-16 11:06:53 -08:00
Mouse Reeve
2b6c9d9d31
Runs prettier
2021-12-16 10:53:38 -08:00
Mouse Reeve
34a16667d8
Adds github workflow
2021-12-16 10:47:22 -08:00
Mouse Reeve
2fa1aa4cc7
Adds bw-dev command
2021-12-16 10:43:24 -08:00
Mouse Reeve
ea457eae58
Adds prettier package
2021-12-16 10:40:20 -08:00
Mouse Reeve
c3a32b3a54
Merge branch 'main' into tidy-header
2021-12-15 10:02:36 -08:00
Mouse Reeve
5e932711f9
Merge branch 'main' into list-not-loading
2021-12-15 09:56:33 -08:00
Mouse Reeve
65ec626573
Don't trim stream if max length is unset
2021-12-14 11:11:05 -08:00
Mouse Reeve
0012f4464d
Consider group membership for list cache
2021-12-14 11:07:36 -08:00
Mouse Reeve
3358e45086
Updates mocks on list stream tasks
2021-12-14 09:31:57 -08:00
Mouse Reeve
3d6266cca2
Merge branch 'main' into list-not-loading
2021-12-14 09:17:00 -08:00
Mouse Reeve
8d6059ae32
Fixes mocks on group model tests
2021-12-10 12:32:05 -08:00
Mouse Reeve
9f04919bec
Remove unrelated tests changes
...
these will happen elsewhere
2021-12-10 11:44:38 -08:00
Mouse Reeve
b890e93533
Adds saved list view test
2021-12-10 09:55:50 -08:00
Mouse Reeve
f7c8a550cf
Fixes references to populate lists task
2021-12-10 09:34:17 -08:00
Mouse Reeve
94250dab42
Mocks for list signals tests
2021-12-10 09:19:32 -08:00
Mouse Reeve
59e6b67bc8
Activitystreams mocks
2021-12-09 20:38:44 -08:00
Mouse Reeve
0c193b6ce1
ActivityStream mocks
2021-12-09 20:33:11 -08:00
Mouse Reeve
5e6b28bbc0
Prefs mocks
2021-12-09 20:30:53 -08:00
Mouse Reeve
acde30887d
Importer tests
2021-12-09 20:12:06 -08:00
Mouse Reeve
d9d0919ad4
More mocks for more tests
2021-12-09 19:14:10 -08:00
Mouse Reeve
074c2cfb95
Gets updates view to 100% test coverage
2021-12-09 18:16:34 -08:00
Mouse Reeve
2d63bfb791
Updates views tests
2021-12-09 18:02:59 -08:00
Mouse Reeve
93dbe2daa0
Updates inbox tests
2021-12-09 15:02:53 -08:00
Mouse Reeve
7a89552892
Updates test_* tests
2021-12-09 13:02:23 -08:00
Mouse Reeve
eb4a399472
Updates models tests
2021-12-09 12:43:09 -08:00
Mouse Reeve
e9c58295f3
Merge branch 'main' into list-not-loading
2021-12-09 11:10:26 -08:00
Mouse Reeve
7eb3de6247
Merge branch 'main' into tidy-header
2021-12-02 12:16:05 -08:00
Joachim
84b5c2da4e
Documentation
2021-11-28 22:10:15 +01:00
Joachim
9ec4ad6b31
Apply review suggestion
2021-11-28 21:46:32 +01:00
Joachim
bf5cb898ef
Apply review suggestion
2021-11-28 21:45:35 +01:00
Joachim
3816b0aa57
Better JS
2021-11-28 18:34:54 +01:00
Joachim
a688c73b79
Fix stylelint rule
2021-11-28 18:28:49 +01:00
Joachim
c924f578e5
Fix linting errors
2021-11-28 18:26:01 +01:00
Joachim
89bbf005c3
Add an accessibility helper
...
This will display a default outline specifically for keyboard users (and some inputs)
2021-11-27 19:19:09 +01:00
Joachim
4ed4278826
Tidy header for non-authenticated visitors
...
with the help of a login modal
2021-11-27 19:18:20 +01:00
Mouse Reeve
b206aae32b
Tasks tests
2021-11-17 09:47:24 -08:00
Mouse Reeve
3bf1121fa6
Signals tests
2021-11-17 09:38:02 -08:00
Mouse Reeve
157d891681
Adds tests files
2021-11-17 09:10:28 -08:00
Mouse Reeve
4cb572f4c7
Updates management tests
2021-11-16 11:25:59 -08:00
Mouse Reeve
903aaaf4c4
Adds management and bw-dev commands
2021-11-16 10:41:08 -08:00
Mouse Reeve
1d28c7e73d
Load lists from redis cache
2021-11-16 09:21:12 -08:00
Mouse Reeve
fc520fdbdc
Adds quick first pass on lists stream manager
2021-11-15 13:09:17 -08:00