Commit graph

7837 commits

Author SHA1 Message Date
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