Commit graph

8291 commits

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