Mouse Reeve
1ae3830ae4
Removes test state of signatures
2020-12-04 08:42:34 -08:00
Mouse Reeve
de6147ecfa
Ignore many to many activitypub serialization of non-lists
2020-12-04 08:29:54 -08:00
Mouse Reeve
ae8d0e1974
Adds sort order for outbox
2020-12-04 08:07:47 -08:00
Mouse Reeve
d92fb53333
Handle absent remote ids
...
it oughtent get to this state, but...
2020-12-03 17:23:08 -08:00
Mouse Reeve
646ced80ce
Test fixes
2020-12-03 17:18:23 -08:00
Mouse Reeve
bbbfbe721e
Removes update user test
2020-12-03 16:23:13 -08:00
Mouse Reeve
27c45c0584
Catch json decode error in loading data
2020-12-03 13:42:02 -08:00
Mouse Reeve
b1640c5dc9
Sets mocks up for incoming tests
2020-12-03 13:35:51 -08:00
Mouse Reeve
9c6db1cc0e
Updates connector tests
2020-12-03 13:22:50 -08:00
Mouse Reeve
de7e64932a
Fixes name of book field on status
2020-12-03 13:15:05 -08:00
Mouse Reeve
3a75127301
Removes half-baked field serializers
2020-12-03 13:00:04 -08:00
Mouse Reeve
e87236d78f
Remove unnecessary user create action
2020-12-03 12:57:44 -08:00
Mouse Reeve
6d137ccada
mock celery task in test signing
2020-12-03 12:50:21 -08:00
Mouse Reeve
77a1fc26f1
Save key pair when creating new User
2020-12-03 12:45:01 -08:00
Mouse Reeve
a85043b351
Updates to_model to use fields
2020-12-03 12:35:57 -08:00
Mouse Reeve
8fb8e93e37
Merge pull request #375 from mouse-reeve/username-regex
...
Allow usernames with dots
2020-12-02 15:27:03 -08:00
Mouse Reeve
2cf73188f2
fixes localname regex
2020-12-02 15:24:43 -08:00
Mouse Reeve
b5e92fe65e
Allow usernames with dots
2020-12-02 15:21:15 -08:00
Mouse Reeve
d7e9a00cf1
Fixes password reset flow
2020-12-02 15:19:29 -08:00
Mouse Reeve
1610d81ce6
fixes some of the signing test issues
2020-11-30 19:53:42 -08:00
Mouse Reeve
fee5846aa8
Fixes generating new key paris for user
...
and the broadcast test
2020-11-30 19:33:50 -08:00
Mouse Reeve
eb6206252d
cleans up ordered collection mixin
2020-11-30 19:24:31 -08:00
Mouse Reeve
1ec2f20486
avoid naming clash is to_activity for field vs model
2020-11-30 14:54:45 -08:00
Mouse Reeve
77aead722d
serialize book and author models
2020-11-30 14:40:26 -08:00
Mouse Reeve
3966c84e08
Updates status model and serializer
2020-11-30 14:24:31 -08:00
Mouse Reeve
8bc0a57bd4
Remove outdated user fields
2020-11-30 11:40:04 -08:00
Mouse Reeve
74a58e5267
Use custom model fields in user model
2020-11-30 10:32:29 -08:00
Mouse Reeve
96563598bf
mock celery tasks for broadcast tests
2020-11-29 10:13:30 -08:00
Mouse Reeve
205fa0d465
set user's remote server in a celery task
2020-11-29 10:08:19 -08:00
Mouse Reeve
9ddd60ce16
Fixes broadcast tests
2020-11-29 09:40:15 -08:00
Mouse Reeve
e9be31e9c1
merge migrations
2020-11-28 19:06:40 -08:00
Mouse Reeve
d8fdc66450
removes outdated update book code
2020-11-28 19:03:37 -08:00
Mouse Reeve
c9433a3c7e
Simplify bookwyrm connector abstract
2020-11-28 18:56:28 -08:00
Mouse Reeve
9d84346d3c
remove need for get_or_create_book
2020-11-28 18:46:50 -08:00
Mouse Reeve
34e8fb3e5c
style fix and removing stray print statement
2020-11-28 18:28:09 -08:00
Mouse Reeve
1789b091d6
not all that better way to distinguish add book to shelf vs tag
2020-11-28 18:23:34 -08:00
Mouse Reeve
b4fe9f160f
Correctly look up books by remote/origin id
2020-11-28 18:11:52 -08:00
Mouse Reeve
dfd730757d
handle unset default editions
2020-11-28 17:42:09 -08:00
Mouse Reeve
72c7829bab
Preserve remote_id syntax for authors and books
2020-11-28 17:29:03 -08:00
Mouse Reeve
7ed2e310c0
User origin ids for books and authors
2020-11-28 13:40:09 -08:00
Mouse Reeve
1483b0b62c
Merge branch 'main' into follow-remote-ids
2020-11-28 13:14:53 -08:00
Mouse Reeve
0a8ef98854
use localized remote_ids for books
2020-11-28 13:14:18 -08:00
Mouse Reeve
421a13fda0
automatically load authors and editions
2020-11-28 13:00:04 -08:00
Mouse Reeve
e99394e6f7
User serializer to create follow request
2020-11-28 12:25:53 -08:00
Mouse Reeve
76ce20a5e0
Fixes tests
2020-11-28 11:52:00 -08:00
Mouse Reeve
b0202eb8e8
Remove special remote user handling code
...
also fixes date parsing
2020-11-28 11:48:17 -08:00
Mouse Reeve
fd7e476c9b
refactors tag model to fit ordered collection structure
2020-11-28 11:04:54 -08:00
Mouse Reeve
a93b5cf5bc
Use remote_id resolver to load books, user
2020-11-28 10:18:24 -08:00
Mouse Reeve
e0fec9f570
fixes incorrect decorators
2020-11-28 09:17:24 -08:00
Mouse Reeve
81bdd2b3f1
Merge branch 'main' into follow-remote-ids
2020-11-28 08:40:37 -08:00
Mouse Reeve
1c8a0c942a
Merge branch 'main' into quick-add-description
2020-11-28 08:36:46 -08:00
Mouse Reeve
b2ca67a67c
Make adding a description require edit perms
2020-11-28 08:29:55 -08:00
Mouse Reeve
9c33d0ebfa
use require_GET decorator
2020-11-28 08:22:25 -08:00
Mouse Reeve
78fa949237
Inline form to add description to book
2020-11-28 07:55:31 -08:00
Mouse Reeve
ebb82287c2
First pass at recursively resolving foreign keys
2020-11-27 22:10:38 -08:00
Mouse Reeve
5638597112
Fixes errors caught in tests
2020-11-27 20:27:56 -08:00
Mouse Reeve
86cbb3edbd
Merge branch 'main' into activitypub-cleanup
2020-11-27 20:13:32 -08:00
Mouse Reeve
4626d94ab9
handle image attachments recursively
2020-11-27 20:11:46 -08:00
Mouse Reeve
2480690378
Automatically handle image fields in model serializer
2020-11-27 18:26:07 -08:00
Mouse Reeve
4ae785a7f7
move image activity to its own file
2020-11-27 17:59:46 -08:00
Mouse Reeve
624ff71a11
Makes attachment Images a serializable class
2020-11-27 17:20:01 -08:00
Joel Bradshaw
d8b2afff3d
Replace naive datetimes with aware ones
2020-11-27 16:35:03 -08:00
Mouse Reeve
69a6644011
Corrects activitypub fields to camelcase in Book
2020-11-27 15:34:47 -08:00
Mouse Reeve
7b6035898b
Serialize activitypub authors from data in connector
2020-11-27 14:54:08 -08:00
Mouse Reeve
f593970332
Merge branch 'main' into refactor-bookwyrm-connector
2020-11-27 14:26:02 -08:00
Mouse Reeve
9e48328e9e
Mocks broadcast task for outgoing shelve tests
2020-11-27 14:18:45 -08:00
Mouse Reeve
4ec557fc5d
fixes unit tests for incoming and outgoing follows
2020-11-27 14:15:13 -08:00
Mouse Reeve
f173d674ac
Mock fetch_user function which makes http request
2020-11-27 13:53:38 -08:00
Mouse Reeve
a8f3ddec05
Trying to avoid issues from execusing http requests
2020-11-27 13:39:33 -08:00
Mouse Reeve
829615cdd7
Fixes celery mocks on more signature unit tests
2020-11-27 13:18:10 -08:00
Mouse Reeve
73279d65d7
Fix test remote signer and comment out failing tests
2020-11-27 13:08:01 -08:00
Mouse Reeve
48ab993861
Mocks celery task for follow request
2020-11-27 13:02:26 -08:00
Mouse Reeve
0c01af4042
Another nondeterministic list order problem
2020-11-27 12:42:01 -08:00
Mouse Reeve
44a0ef3b0b
Fixes nondeterministic order of query causing test failure
2020-11-27 12:25:01 -08:00
Mouse Reeve
257a29dcfd
Comment out failing tests
...
Obviously this is not a SOLUTION, it's an intermediary step in resolving
the redis dependency issues. this PR isn't mergable until the tests are
restored.
2020-11-27 11:53:30 -08:00
Mouse Reeve
9b79eb5fc3
Removes outdated test of bookwyrm connector updater
2020-11-25 11:44:19 -08:00
Mouse Reeve
4f6ce0307d
fixes import in abstract connector unit test
2020-11-25 11:24:36 -08:00
Mouse Reeve
0ec40ae748
Merge branch 'main' into refactor-bookwyrm-connector
2020-11-25 11:21:13 -08:00
Mouse Reeve
aed360d07e
Fixes serializer handling default dataclass fields
2020-11-25 11:16:01 -08:00
Mouse Reeve
9b57cfd331
Fixes default lists on activitypub dataclasses
2020-11-25 10:45:39 -08:00
Mouse Reeve
641ac22786
remove outdated tests
2020-11-24 16:26:28 -08:00
Mouse Reeve
847014720e
Refactors bookwyrm connector to use activitypub serializer
2020-11-24 16:05:00 -08:00
Mouse Reeve
7b4847852a
Merge migrations manually
2020-11-24 13:42:47 -08:00
Mouse Reeve
3dc0fc7e8f
Merge branch 'main' into edit-books-erros
2020-11-24 13:40:53 -08:00
Mouse Reeve
1fd498c306
Display error messages in edit book form
2020-11-24 13:37:35 -08:00
Mouse Reeve
9bbedc5d9a
Fixes field causing form invalidation when editing books
2020-11-24 13:25:58 -08:00
Mouse Reeve
6cc1e241fe
display images at a reasonable size
2020-11-24 12:07:00 -08:00
Mouse Reeve
ff5a0f7bc2
Adds alt text to status images
2020-11-24 11:44:13 -08:00
Mouse Reeve
45a0bd79fd
Very basic image display
2020-11-24 11:28:17 -08:00
Mouse Reeve
ad7ce6595b
Receive and save incoming images
2020-11-24 11:25:07 -08:00
Mouse Reeve
88e4705717
Use attachment database table
2020-11-23 20:42:05 -08:00
Mouse Reeve
17fca8181b
Simplify user creation code
2020-11-23 13:50:14 -08:00
Mouse Reeve
e2debd855c
Convert activitypub Image into model ImageField
2020-11-23 13:43:46 -08:00
Mouse Reeve
5526b4773e
Formatter for converting model images to AP Images
...
Replaces reduntant properties on user and book models
2020-11-23 13:07:26 -08:00
Mouse Reeve
dab0aeffb2
Adds image attachment field to status model
2020-11-23 12:48:41 -08:00
Mouse Reeve
56638f79cf
Merge pull request #359 from mouse-reeve/activity-tags
...
Serialize and deserialize activitypub "Tags" on statuses
2020-11-22 09:35:19 -08:00
Mouse Reeve
5e34d136fd
Merge pull request #361 from cincodenada/fix-navbar
...
Fix navbar on mobile, make search an addon
2020-11-20 21:51:33 -08:00
Joel Bradshaw
df2dc5a8a1
Remove placebo class
...
is-third-mobile was the wrong class, it turns out just column is what
was making it work like I wanted it to
2020-11-20 21:27:50 -08:00
Joel Bradshaw
8945e70e42
Fix navbar on mobile, make search an addon
...
In reading up on Bulma I found the has-addons option which is a nice
touch, I think
2020-11-20 21:19:26 -08:00
Mouse Reeve
56b6fb9c97
Merge pull request #360 from mouse-reeve/shelve_buttons
...
Fixes unset active shelf in shelve button pulldown
2020-11-20 21:18:28 -08:00
Mouse Reeve
448efff648
Fixes unset active shelf in shelve button pulldown
2020-11-20 10:05:37 -08:00
Mouse Reeve
9a55dba315
Special handling for setting many to many fields in serializer
2020-11-20 09:59:55 -08:00
Mouse Reeve
72b4c150f6
(De)serializers for tag fields
2020-11-20 09:28:54 -08:00
Mouse Reeve
73e41d568e
Serialize model user and book tags to activitypub
2020-11-20 08:14:16 -08:00
Joel Bradshaw
1d0c0ae5c5
Add rename_app command and use it
...
This allows users to migrate from a pre-rename database without
resetting their database, hopefully
2020-11-19 13:49:53 -08:00
Mouse Reeve
6553e5df34
Makes sure pages have h1 header heirarchy
2020-11-18 12:31:53 -08:00
Mouse Reeve
680211cff5
refactors re-shelve button dropdown to be accessible
...
still looks janky as heck, but fixes #350
2020-11-16 16:34:26 -08:00
Mouse Reeve
699a661f00
Remove broken add book link
2020-11-13 12:18:13 -08:00
Mouse Reeve
28e1c9525c
tweaks search rankings for better results
2020-11-13 11:03:39 -08:00
Mouse Reeve
6300c37a4e
Select all checkbox
2020-11-13 10:14:24 -08:00
Mouse Reeve
86504989b4
fixes import matching with local books
2020-11-13 09:59:57 -08:00
Mouse Reeve
e3a803b907
Allow import retry
2020-11-13 09:02:41 -08:00
Mouse Reeve
083b576bc4
fixes broken activity serializer error import
2020-11-13 07:34:37 -08:00
Mouse Reeve
211ac4241b
Merge pull request #348 from mouse-reeve/incoming-errors
...
Incoming errors
2020-11-12 14:38:57 -08:00
Mouse Reeve
1ad347ffdb
Merge pull request #346 from mouse-reeve/trim-text
...
Collapse long review text
2020-11-12 14:38:43 -08:00
Mouse Reeve
1f11ffd646
Uses task.ready for checking if the job is running
2020-11-12 14:11:39 -08:00
Mouse Reeve
932b4f8b81
Small fix in goodreads import error handling
2020-11-12 14:01:17 -08:00
Mouse Reeve
032ce8efba
Show failed books
2020-11-12 13:52:57 -08:00
Mouse Reeve
799496bb86
Move past all book loading exceptions during import
2020-11-12 13:33:12 -08:00
Mouse Reeve
74236c4810
Handle errors tryingt o load covers from instances
2020-11-12 13:20:32 -08:00
Mouse Reeve
0a2d762d3b
Fixes error state when there are author duplicates
...
there shouldn't be, but it shouldn't crash a goodreads import either
2020-11-12 13:16:26 -08:00
Mouse Reeve
ffeed6047e
Fixes reporting import task status
2020-11-12 13:12:08 -08:00
Mouse Reeve
123fe5e769
Error handling in remote user
2020-11-12 12:27:49 -08:00
Mouse Reeve
4ccf1c4818
Small html style changes on import pages
2020-11-12 12:22:06 -08:00
Mouse Reeve
c0bc4f3903
Catch error trying to get status id in delete
2020-11-12 12:02:43 -08:00
Mouse Reeve
648e7a7581
Special error for catching activitypub serialization issues
2020-11-12 11:59:34 -08:00
Mouse Reeve
2f0b91d843
Merge pull request #343 from mouse-reeve/readthrough-ui
...
Make readthrough edit/delete toggle a button
2020-11-12 11:41:34 -08:00
Mouse Reeve
23ef1e8b7d
Collapse long review text
2020-11-12 11:40:20 -08:00
Mouse Reeve
44b798b423
Puts reply form below button that shows it
...
still think this is janky.
2020-11-11 18:32:52 -08:00
Mouse Reeve
801c2cdad2
Make readthrough edit/delete toggle a button
2020-11-11 16:47:11 -08:00
Mouse Reeve
ad948e7313
Remove more info box when it's not used
2020-11-11 11:52:14 -08:00
Mouse Reeve
c1567826ca
Paginate reviews page
2020-11-11 10:50:51 -08:00
Mouse Reeve
90d0d721dd
Paginates user activity feed
2020-11-11 10:43:47 -08:00
Mouse Reeve
91a32c014e
Uses django paginator for feed page
2020-11-11 10:35:34 -08:00
Mouse Reeve
1d0b7fa64f
Proper privacy on user page shelf previews
2020-11-11 10:14:04 -08:00
Mouse Reeve
c08be903b1
Merge pull request #338 from mouse-reeve/code-cleanup
...
Code cleanup
2020-11-10 22:29:30 -08:00
Mouse Reeve
56850b9574
Merge pull request #336 from mouse-reeve/user-shelves
...
User-created shelves
2020-11-10 22:06:40 -08:00
Mouse Reeve
1e7b5f7981
remove unused forms
...
also some more get_object_or_404s
2020-11-10 22:06:06 -08:00
Mouse Reeve
de7de3d3d5
json view for tags page
2020-11-10 21:50:05 -08:00
Mouse Reeve
c3d2018411
Unused forms
2020-11-10 21:47:28 -08:00
Mouse Reeve
d71b451eef
More model ids in urls
2020-11-10 21:45:22 -08:00
Mouse Reeve
4297e8647d
put status id in path for delete-status
2020-11-10 21:39:24 -08:00
Mouse Reeve
7f9cc31040
consistent style for urls
2020-11-10 21:34:26 -08:00
Mouse Reeve
8ae05c1350
Use get_object_or_404
2020-11-10 21:13:13 -08:00
Mouse Reeve
a6796275b8
Fixes duplicate ids
2020-11-10 20:50:46 -08:00
Mouse Reeve
60e699efeb
Make shelves delete-able
2020-11-10 20:33:46 -08:00
Mouse Reeve
ee59c64a10
Edit shelf
2020-11-10 20:11:21 -08:00
Mouse Reeve
c16047d0bc
Control display of shelves based on privacy settings
2020-11-10 16:43:52 -08:00
Mouse Reeve
176257eb85
SHow privacy icon on shelves
2020-11-10 16:18:48 -08:00
Mouse Reeve
81d09a3d1b
Fixes aria that should be role
2020-11-10 14:57:44 -08:00