Commit graph

616 commits

Author SHA1 Message Date
Mouse Reeve c7883cd615 Updates migrations
To get the app working again I ran resetdb, let it crash in initdb,
then ran the migration, then re-ran initdb
2020-09-21 08:10:37 -07:00
Mouse Reeve d1f1260640 Renames fr_celery dir to celerywyrm 2020-09-17 14:19:27 -07:00
Mouse Reeve f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Mouse Reeve b42faad556
Merge pull request #197 from mouse-reeve/model-files-redo
Separates out models into more files
2020-09-17 13:28:03 -07:00
Mouse Reeve 431220fc7d Separates out models into more files 2020-09-17 13:09:11 -07:00
Mouse Reeve 8bbf1fe252
Use dataclasses to define activitypub (de)serialization (#177)
* Use dataclasses to define activitypub (de)serialization
2020-09-17 13:02:52 -07:00
Mouse Reeve 2c0a07a330
Update LICENSE 2020-08-19 18:54:42 -07:00
Mouse Reeve e0f5339089
Merge pull request #194 from cthulahoops/fix_digest_test
Fix invalid digest test.
2020-08-19 07:06:14 -07:00
Adam Kelly 2e080055ea Fix invalid digest test. 2020-08-19 14:26:55 +01:00
Mouse Reeve 8fc67d7b3c
Merge pull request #193 from cthulahoops/wrong_digest_algorithm
Use the correct digest algorithm. (Fixes: #191)
2020-08-19 05:55:53 -07:00
Adam Kelly 54f381c1d8 Raise don't return an exception if digest is wrong. 2020-08-19 13:53:17 +01:00
Adam Kelly 1b2fb445ca Use the correct digest algorithm. (Fixes: #191) 2020-08-19 13:33:58 +01:00
Mouse Reeve 9f894c1622
Update LICENSE 2020-08-18 19:52:46 -07:00
Mouse Reeve c96eb14d2e
Update LICENSE 2020-08-18 17:19:48 -07:00
Mouse Reeve f3e4d77b9a Upgrade Pillow library 2020-08-10 13:15:18 -07:00
Mouse Reeve a6593eced7
Merge pull request #189 from cincodenada/fix/tagging-remote-id
Look up book by remote_id when adding tag
2020-07-04 16:47:50 -07:00
Joel Bradshaw 18b7835022 Look up book by remote_id when adding tag
This is what downstream expects, I think this is the right level to convert
2020-07-04 16:35:24 -07:00
Mouse Reeve 2840b9f22a
Update README.md 2020-06-28 15:47:36 -07:00
Mouse Reeve 564d9627bc
Merge pull request #186 from loganmhb/author-display-name
Add Author.display_name to decide which name to display
2020-06-17 15:33:24 -07:00
Logan Buckley a56855d5e4 Implement and use Author.display_name 2020-06-17 18:16:19 -04:00
Mouse Reeve a1f6a96fae
Merge pull request #185 from loganmhb/docker-setup-tweaks
Tweaks needed to get running with docker-compose locally
2020-06-17 11:20:23 -07:00
Logan Buckley 71bd7412e6 Tweaks needed to get running with docker-compose locally 2020-06-17 12:53:44 -04:00
Mouse Reeve 1a3cf4e3a6
Merge pull request #183 from mouse-reeve/dependabot/pip/django-3.0.7
Bump django from 3.0.3 to 3.0.7
2020-06-16 17:36:19 -07:00
Mouse Reeve a0cc88d316
Merge pull request #182 from cthulahoops/site_settings
Add instance settings.
2020-06-16 17:35:49 -07:00
dependabot[bot] 53f82f21f6
Bump django from 3.0.3 to 3.0.7
Bumps [django](https://github.com/django/django) from 3.0.3 to 3.0.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.0.3...3.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-05 20:44:33 +00:00
Adam Kelly 70e69f73cb Add manage invites page. 2020-06-03 17:38:30 +01:00
Adam Kelly 48f7fd34a7 Allow account registration with invites. 2020-06-01 22:34:45 +01:00
Adam Kelly e0a009a0f1 Reject registrations if not allowed by settings. 2020-06-01 22:02:38 +01:00
Adam Kelly fffffc1f32 Include db migration. 2020-06-01 21:26:47 +01:00
Adam Kelly 92a669ffaf Add instance settings.
Addresses: #58

Currently implemented:

* Instance name
* Instance description
* Code of conduct
* Allow registration

I decided to store this in the database so that settings can be easily
changed at runtime through the web interface. (This web interface does
not exist.)
2020-06-01 19:54:08 +01:00
Mouse Reeve 4d6ecafcf4
Merge pull request #181 from mouse-reeve/test-dirs
Move tests into directories
2020-05-29 13:50:22 -07:00
Mouse Reeve 55146190a6 Move tests into directories 2020-05-26 13:53:14 -07:00
Mouse Reeve 6b551709cc
Merge pull request #178 from cthulahoops/use_fetch_remote_user
Use fetch_remote_user and key refreshes.
2020-05-23 13:22:22 -07:00
Adam Kelly 9af410f921 Silently ignore unauthorised deletes.
Fixes: #166
2020-05-22 14:20:27 +01:00
Adam Kelly ae7339928c Move signature checking logic out of shared_inbox. 2020-05-22 13:53:56 +01:00
Adam Kelly 5cfc9aa8de Fetch updated key if old key is invalid. 2020-05-22 13:49:56 +01:00
Adam Kelly 17734940ac Use get_or_create_remote_user from get_public_key. 2020-05-21 16:51:01 +01:00
Mouse Reeve 00bd8928b0
Merge pull request #176 from cthulahoops/digests
Verify http digest is correct if specified in signature.
2020-05-20 08:17:00 -07:00
Adam Kelly b1516f18be Check that the date in the signature isn't too old. 2020-05-20 15:29:51 +01:00
Adam Kelly 52eeabc5bb Don't crash if nodeinfo is unavailable. 2020-05-19 21:58:30 +01:00
Adam Kelly 58630a053f Add digests for outgoing messages, and testing. 2020-05-19 21:33:47 +01:00
Adam Kelly 0c22019306 Verify http digest is correct if specified in signature. 2020-05-19 13:17:09 +01:00
Mouse Reeve b54c6f7855
Merge pull request #174 from mouse-reeve/remote-user
Fixes remote user code
2020-05-18 18:29:37 -07:00
Mouse Reeve 373a378452 Verify that the remote user is who they say they 2020-05-18 18:26:00 -07:00
Mouse Reeve 1b48ca2f85 don't let id be none on remote_user 2020-05-18 09:53:31 -07:00
Mouse Reeve a0507edcac Fixes remote user code
and tests!
2020-05-18 09:53:31 -07:00
Mouse Reeve b203ae5b33
Merge pull request #175 from mouse-reeve/docker-nginx
Nginx config
2020-05-18 08:10:41 -07:00
Mouse Reeve dbabeab470 Nginx config
Fixes #152 (hopefully???)
Fixes #130
Fixes #125
2020-05-17 20:28:46 -07:00
Mouse Reeve 845401bd62
Merge pull request #173 from cthulahoops/signature_refactor
Refactor signatures into own module.
2020-05-17 12:11:46 -07:00
Adam Kelly 12bedf3316 Allow arguments to fr-dev test 2020-05-15 11:22:27 +01:00