Commit graph

8965 commits

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