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
74b89b2d4a
That test didn't work
2022-10-04 12:09:05 -07:00
5b5e15d48b
Just adds a couple tests
2022-10-04 11:40:01 -07:00
78d36ebc39
Fixes typo in tour
2022-09-24 19:41:37 -07:00
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
fdc477afdf
Merge pull request #2258 from bookwyrm-social/form-perms
...
Check permissions automatically on form save
2022-09-19 13:32:41 -07:00
7d61cb55bc
Ignore pylint complaints about argument counts to form saves
2022-09-19 13:23:18 -07:00
35aebacf70
Fixes theme form and adds view tests
2022-09-19 13:13:21 -07:00
bf092ec44e
Small fixes
2022-09-19 12:10:27 -07:00
4c099afc63
Python formatting
2022-09-19 11:23:40 -07:00
37dacaff6f
Fixes creating notifications for auto-moderation reports
2022-09-19 11:11:08 -07:00
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
9d8d85ebc1
Invite perms checks
2022-09-19 10:26:40 -07:00
1e988cae6c
More edit book lines
2022-09-19 10:26:29 -07:00
be480e40f0
Updates links form saves
2022-09-19 10:18:30 -07:00
3fd573c0da
Check perms on site model form
2022-09-19 10:16:38 -07:00
b0d8697006
Adds missing save in edit book view
2022-09-19 10:16:29 -07:00
330be16516
Adds permissions checking for admin models
2022-09-19 10:12:47 -07:00
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
b0236b95bd
Merge branch 'main' into form-perms
2022-09-19 09:32:48 -07:00
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
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
81d5195d20
Adds test
2022-09-15 11:12:05 -07:00
fcd96c332d
Null state
2022-09-15 11:09:07 -07:00
d76eae358f
Show queues and runtime instead of start time
2022-09-15 10:53:08 -07:00
3739bdbf81
Better comments
2022-09-15 09:49:58 -07:00
0f55b76a93
Adds celery status view
2022-09-14 18:58:51 -07:00
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
aa18179dbc
add migration
2022-09-10 10:27:17 +10:00
0ad3dc6245
allow 0.5 star ratings
2022-09-10 07:24:11 +10:00
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
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
351292fcda
Catches places where form.save() needs the request
...
Thank you, tests.
2022-09-08 11:02:17 -07:00
c71d133d2c
Merge pull request #2288 from mooseyboots/del-notifs-button
...
conditional display of notifs button
2022-09-08 10:16:07 -07:00
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
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
68d91086ed
add wonky ISBN test
2022-08-30 19:57:25 +10:00
1f93dc9c62
Merge pull request #2260 from bookwyrm-social/mentions
...
Refactors how mentions are collected
2022-08-29 15:17:40 -07:00
e782b3f360
Fixes logic that displays search remote or manually add link
2022-08-29 14:03:47 -07:00
98562dc92f
Allow x in isbn path
2022-08-29 13:41:49 -07:00
775ee6f590
Merge pull request #2283 from hughrun/halfstars
...
fix visibility of stars when editing a review
2022-08-29 13:39:47 -07:00
f0effb9d3e
Uses theme in remote follow template
2022-08-29 07:10:36 -07:00
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
18d3d2f85d
linting
2022-08-28 17:30:46 +10:00
f219851f3a
strip leading and following spaces from ISBN
2022-08-28 17:28:00 +10:00
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
58c3a4c2bc
Merge pull request #2277 from hughrun/permissions
...
hide replies to posts user cannot see
2022-08-23 19:48:36 -07:00
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