Mouse Reeve
41d5102c72
Merge pull request #2448 from bookwyrm-social/search-review-counts
...
Show review counts in search results
2022-11-25 10:49:10 -08:00
Mouse Reeve
0a12be8279
Appease pylint
2022-11-25 10:41:04 -08:00
Mouse Reeve
e94e72a594
Python formatting
2022-11-25 10:40:06 -08:00
Mouse Reeve
61d1e67349
Merge pull request #2418 from jaschaurbach/Fix-wrong-URL-behind-proxy
...
set HTTP_X_FORWARDED_PROTO in .env
2022-11-25 10:40:00 -08:00
Mouse Reeve
d3cad15ee1
Merge pull request #2445 from bookwyrm-social/list-null-notification
...
Handles state in notifications where a list item was deleted
2022-11-25 10:39:02 -08:00
Mouse Reeve
c3acbb9bd0
Merge pull request #2446 from bookwyrm-social/settings-federation-table
...
Make the federated servers table display correctly on mobile
2022-11-25 10:38:53 -08:00
Mouse Reeve
015af2c1e7
Don't start imports with empty csvs
...
Fixes #2353
2022-11-25 10:35:16 -08:00
Mouse Reeve
becc90d485
Show review counts in search results
...
Fixes #2317
2022-11-25 10:06:51 -08:00
Mouse Reeve
44d308abad
Fixes error on importing from inventaire
2022-11-25 09:35:26 -08:00
Mouse Reeve
e72cb43bb2
Make the federated servers table display correctly on mobile
2022-11-25 09:09:57 -08:00
Mouse Reeve
2d56ccfd50
Handles state in notifications where a list item was deleted
2022-11-25 08:55:33 -08:00
Mouse Reeve
81ab08aaa3
Fixes editing links
2022-11-25 08:28:45 -08:00
Mouse Reeve
9dd0e22a47
Merge pull request #2426 from bookwyrm-social/password-reset-email
...
Don't use task for password reset emails
2022-11-23 22:10:47 -08:00
Mouse Reeve
dd83e32f32
Fixes unit test
2022-11-23 22:00:34 -08:00
Joel Bradshaw
55bab0b70d
Slice queryset before we resolve it
...
This was accidentally querying ALL books in the database to generate
suggestions if we didn't have enough, which broke some stuff
2022-11-23 19:26:09 +00:00
Mouse Reeve
cc3cd5c98c
Don't use task for password reset emails
2022-11-20 19:39:08 -08:00
Jascha Urbach
484484fd4b
Apologies for my lack of coding skills
2022-11-20 17:57:03 +01:00
Jascha Urbach
3c1b38ed2c
one should import what one declares...
...
... andn not what one thinks was declared^^
2022-11-20 17:47:26 +01:00
Jascha Urbach
31ea868ddc
Update to actual READ the file...
2022-11-19 20:40:36 +01:00
Mouse Reeve
fdc53d6c60
Merge pull request #2394 from jaschaurbach/show-2fa-code
...
show otp_secret when setting up 2fa
2022-11-19 10:25:15 -08:00
Mouse Reeve
2adcbdea2f
Merge pull request #2419 from bookwyrm-social/robots
...
Expand robots.txt
2022-11-19 10:24:55 -08:00
Mouse Reeve
1e5a6ec744
Merge branch 'main' into show-2fa-code
2022-11-19 10:09:27 -08:00
Mouse Reeve
7d51a69c71
Expand robots.txt
2022-11-19 10:03:40 -08:00
Hugh Rundle
6baa58260a
2fa qrcode fixes ( #2407 )
...
* 2fa qrcode fixes
- add light background to qr code when using dark theme
- show OTP secret code under qr code for manual entry on apps if required
fixes #2386
fixes #2389
* fix code formatting
* revert changes re visible code
This conflicts with an existing PR.
* i code pretty
2022-11-19 09:51:18 -08:00
Mouse Reeve
e11811d461
Fancier UI around OTP codes
2022-11-19 09:48:44 -08:00
Jascha Urbach
238a1b0e88
set HTTP_X_FORWARDED_PROTO in .env
...
This fixes #2397 .
The description in .env is whith a warning and a link to the official documentation about what this setting is doing if set to true.
2022-11-19 17:54:44 +01:00
Mouse Reeve
c5fb710f29
Fixes code of conduct link
2022-11-18 08:23:53 -08:00
Mouse Reeve
9aab14ee96
Merge pull request #2406 from bookwyrm-social/disable-imports
...
Allow admins to disable starting imports
2022-11-17 19:51:17 -08:00
Mouse Reeve
9c5fe7610b
Fixes reference to site model
2022-11-17 15:41:30 -08:00
Mouse Reeve
d36521c460
Merge pull request #2405 from bookwyrm-social/admins-list
...
Fixes collecting list of admins
2022-11-17 15:22:10 -08:00
Mouse Reeve
28567e2d8e
Disable imports in the UI and view
2022-11-17 15:19:42 -08:00
Mouse Reeve
46b663b139
Rename new user to avoid duplication
2022-11-17 15:10:11 -08:00
Mouse Reeve
34f05c135b
Adds unit tests for list of admins method
2022-11-17 14:59:46 -08:00
Mouse Reeve
b1c6781036
Fixes collecting list of admins
2022-11-17 14:38:05 -08:00
Mouse Reeve
7c7c0e1a93
Admin UI to enable and disable importing
2022-11-17 14:23:39 -08:00
Mouse Reeve
2d3ec93086
Updates unit tests
2022-11-17 14:06:43 -08:00
Mouse Reeve
474da162ba
Uses correct css paths in embeds
2022-11-17 13:34:54 -08:00
Mouse Reeve
7e10b0cd1f
Merge pull request #2400 from bookwyrm-social/local-rss
...
Only offer RSS feeds for local users
2022-11-17 12:53:19 -08:00
Mouse Reeve
b37a4322de
Change log level to info for connector exceptions
...
These errors in resolve_remote_id aren't really errors, they're
routine problems that we can expect from dealing with the outside world,
like a connection timeout, a server being down, a server being blocked,
et cetera. It's cluttering up the logs and causing unnecessary worry.
2022-11-17 12:35:19 -08:00
Mouse Reeve
77d96bf245
Only offer RSS feeds for local users
2022-11-17 12:03:59 -08:00
Mouse Reeve
6dd671ae5a
Fixes user follow cache
2022-11-17 11:23:48 -08:00
Mouse Reeve
fe7163be33
Render markdown to html when using activitypub
...
This will produce better federated results outside of bookwyrm, and will
still display correctly within bookwyrm
2022-11-17 11:05:48 -08:00
Mouse Reeve
24f73f81f6
Update version number
2022-11-16 18:43:51 -08:00
Mouse Reeve
2dad14bdcf
Merge pull request #2395 from bookwyrm-social/settings-view-perms
...
Fixes permissions on settings invite request page
2022-11-16 18:33:20 -08:00
Mouse Reeve
a546ab578b
Fixes decorator on view method
2022-11-16 18:23:26 -08:00
Mouse Reeve
fcdb7f106e
Ticks version number
2022-11-16 18:19:23 -08:00
Mouse Reeve
5a7afe45a2
Fixes permissions on settings invite request page
2022-11-16 18:03:52 -08:00
Jascha Urbach
170aa7460a
Update 2fa.html
...
Or now, because obviously I can not write HTML^^
2022-11-16 20:35:28 +01:00
Jascha Urbach
a98dbb97a5
fix error
...
fix my copy paste error -.-
2022-11-16 20:32:40 +01:00
Jascha Urbach
c29256708a
show otp_secret when setting up 2fa
...
solves #2389
2022-11-16 20:30:06 +01:00
Jascha Urbach
be97fd2d39
Remove dead URL
...
https://fediblock.org delivers a 410 Gone as respone.
2022-11-16 18:24:19 +01:00
Mouse Reeve
f95729a0c3
Adds unit test for failing view
2022-11-15 21:45:06 -08:00
Mouse Reeve
47f1865c59
Remove trailing whitespace from queries
2022-11-15 20:09:00 -08:00
Mouse Reeve
f0f65b8b73
Python formatting
2022-11-15 20:08:17 -08:00
Mouse Reeve
9185708224
Simplify how default edition is checked
...
This logic is still totally bonkers, but this change puts a hard limit
on how many iterations the loop can go through and makes the query that
selects which edition to display a little simpler.
2022-11-15 20:05:41 -08:00
Mouse Reeve
eb61033626
Simplify identifier searches
...
This commit removes code that deduplicated search results for identifier
searches. If it was the case that multiple books have the same
identifier, in theory this would produce better search results, but in
practice this doesn't happen very much, is probably worth seeing when
it does, and worsens the performance of identifier search overall.
2022-11-15 19:42:40 -08:00
Mouse Reeve
807f8c02b2
Merge pull request #2382 from bookwyrm-social/invite-length
...
Longer invite answer field
2022-11-15 15:03:51 -08:00
Jascha Urbach
4c05e3b660
Merge branch 'main' into deactivate-2fa-with-manage.py
2022-11-15 23:52:52 +01:00
Mouse Reeve
c47a425cbe
Longer invite answer field
...
It was an oversight that it was only set to 50 characters I expect!
2022-11-15 14:52:07 -08:00
Jascha Urbach
8a99482a2f
correct linter errors
...
./bw-dev black
reformatted bookwyrm/management/commands/remove_2fa.py
All done! ✨ 🍰 ✨
1 file reformatted, 544 files left unchanged.
2022-11-15 23:32:24 +01:00
Jascha Urbach
cd57537854
Remove TFA from user
...
added bookwyrm/management/remove_2fa.py
changed bw-dev
2022-11-15 23:20:21 +01:00
Mouse Reeve
317cf5fcf5
Generate fewer add_status_tasks
...
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.
The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
Mouse Reeve
bf3043f91f
Fixes column widths
2022-11-14 18:48:30 -08:00
Mouse Reeve
85337c73e5
Merge branch 'main' into footer-links
2022-11-14 18:46:42 -08:00
Mouse Reeve
4178eb81e4
Merge pull request #2366 from bookwyrm-social/footer-snippet
...
Uses the same snippet for the footer across different templates
2022-11-14 18:46:15 -08:00
Mouse Reeve
fe82599de9
Include privacy policy and code of conduct in footer
2022-11-14 18:37:27 -08:00
Mouse Reeve
dbe74f6388
Uses the same snippet for the footer across different templates
2022-11-14 18:18:27 -08:00
Mouse Reeve
914479f1c9
Merge pull request #2365 from bookwyrm-social/url-typo
...
Small fixes - typo in a url and emails about reports
2022-11-14 18:13:09 -08:00
Mouse Reeve
5b358094ab
Fixes report emails always claiming to be about links
2022-11-14 18:03:36 -08:00
Mouse Reeve
e655f5c2f3
Fixes typo in url regex
2022-11-14 16:06:40 -08:00
Mouse Reeve
36f511ebb7
Merge pull request #2140 from cincodenada/ignore-does-not-exist
...
Ignore VariableDoesNotExist errors in debug logging
2022-11-14 12:26:06 -08:00
Mouse Reeve
a91d9f67be
Merge pull request #2362 from bookwyrm-social/revoke-image-tasks
...
Adds management command to revoke preview image tasks
2022-11-14 12:20:05 -08:00
Mouse Reeve
b812a5c73e
Adds management command to revoke preview image tasks
2022-11-14 12:09:16 -08:00
Ell Bradshaw
c9adb7ff12
Linting fixes
2022-11-14 01:04:20 -08:00
Ell Bradshaw
b3603bc3f5
Merge branch 'main' into ignore-does-not-exist
2022-11-14 00:31:34 -08:00
André Jaenisch
530d7de309
Use variable instead of string
...
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-11-13 16:59:05 +01:00
Mouse Reeve
ddcaf8e3b8
Use asyncio for broadcasting
2022-11-10 15:41:56 -08:00
Mouse Reeve
49d0590599
Another tweak to how import wait times are calculated
2022-11-10 13:59:27 -08:00
Mouse Reeve
eae1866992
Allow users to temporarily deactivate their accounts ( #2324 )
2022-11-10 13:40:54 -08:00
Mouse Reeve
bbdba9e793
Python formatting
2022-11-10 13:13:53 -08:00
Mouse Reeve
8f2de48b0a
Comments out unrelated test block
2022-11-10 13:05:42 -08:00
Mouse Reeve
48d4149151
Fixes null state
2022-11-10 12:39:07 -08:00
Mouse Reeve
f80e2465ed
Adds tests for recent import average time
2022-11-10 12:29:36 -08:00
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
9e0867af91
Make the import admin table sortable
2022-11-07 11:32:45 -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
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
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
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
40e9428b49
Adds more fields to import admin table and ticks version
2022-11-03 11:30:43 -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
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
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
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
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
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
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
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
78d36ebc39
Fixes typo in tour
2022-09-24 19:41: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
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
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
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
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
1f93dc9c62
Merge pull request #2260 from bookwyrm-social/mentions
...
Refactors how mentions are collected
2022-08-29 15:17:40 -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
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