Commit graph

1397 commits

Author SHA1 Message Date
Mouse Reeve
a3b7063e4b makes inbox csrf exempt 2021-02-16 18:07:57 -08:00
Mouse Reeve
714202986d Fixes person/author confusion and public keys 2021-02-16 17:47:53 -08:00
Mouse Reeve
d81bfb6573 Fixes unfollow 2021-02-16 16:35:28 -08:00
Mouse Reeve
b57a86d4e2 Fixes approving follow requests automatically 2021-02-16 12:58:29 -08:00
Mouse Reeve
f5a022184f Fixes discarding boosts 2021-02-16 12:31:27 -08:00
Mouse Reeve
3f1b62eb98 Fixes Add activity
still janky
2021-02-16 11:04:13 -08:00
Mouse Reeve
b393df8cab Fixes deletion 2021-02-16 09:35:00 -08:00
Mouse Reeve
08c1553e71 Fixes Favs 2021-02-15 21:41:08 -08:00
Mouse Reeve
606d89d3bd Fixes boost, recursive to_model calls 2021-02-15 21:20:00 -08:00
Mouse Reeve
a16b81a6eb Adds actions for all verbs 2021-02-15 20:49:23 -08:00
Mouse Reeve
12a3aa9667 incoming Create flow with tests 2021-02-15 19:41:22 -08:00
Mouse Reeve
81e2021f92 Move handlers to activitypub classes 2021-02-15 18:47:08 -08:00
Mouse Reeve
e810c2bee0 Recursively parse activities 2021-02-15 17:23:17 -08:00
Mouse Reeve
fd19b55961 Basic checks for inbox 2021-02-15 16:27:25 -08:00
Mouse Reeve
f974b9b895 Better blocking checks 2021-02-15 12:51:34 -08:00
Mouse Reeve
8cf7da4b19 Merge branch 'main' into user-creation 2021-02-15 12:26:15 -08:00
Mouse Reeve
65f81bd5f0 Moves blocking to save function
I just like these better than signals??
2021-02-15 12:21:48 -08:00
Mouse Reeve
8cb345886b Show lists on book page 2021-02-15 11:30:22 -08:00
Mouse Reeve
4a58cd42a6 More thorough check to prevent following blocked users 2021-02-12 18:14:51 -08:00
Mouse Reeve
d250127062
Merge pull request #621 from mouse-reeve/fixes-follows
Fixes follows
2021-02-12 16:22:05 -08:00
Mouse Reeve
363609e7be Fixes follows
Yikes
2021-02-12 16:16:22 -08:00
Mouse Reeve
2297fe133d Uses template for generating goal status 2021-02-12 11:52:05 -08:00
Mouse Reeve
0df7be6cfc
Merge pull request #618 from mouse-reeve/template-fixes
Template fixes
2021-02-12 10:10:42 -08:00
Mouse Reeve
03dddaa064 Fixes list display 2021-02-12 09:58:57 -08:00
Mouse Reeve
403cc712c5 Fixes review pluralization 2021-02-12 09:55:25 -08:00
Mouse Reeve
927cb15abd fixes edit user test 2021-02-11 12:42:54 -08:00
Mouse Reeve
47f371b604 Merge branch 'main' into user-view-test 2021-02-11 08:39:48 -08:00
Mouse Reeve
18a86cbe2a More edit user tests 2021-02-11 08:38:45 -08:00
Mouse Reeve
89c0ecdca9 comma in number 2021-02-11 08:24:20 -08:00
Mouse Reeve
c7e7c56a89
Merge pull request #616 from mouse-reeve/list-federation
Fixes bugs in how lists/shelves federate Adds
2021-02-10 19:39:56 -08:00
Mouse Reeve
9b61538f0c
Merge pull request #615 from mouse-reeve/update-list-activity
Update list activity
2021-02-10 19:39:31 -08:00
Mouse Reeve
3497a5c7e4
Merge pull request #614 from mouse-reeve/expand-data-error
Catch expand book data load error
2021-02-10 19:19:14 -08:00
Mouse Reeve
5f7466e92d Fixes bugs in how lists/shelves federate Adds 2021-02-10 19:17:16 -08:00
Mouse Reeve
2a65aa7cc7 More tests 2021-02-10 18:24:09 -08:00
Mouse Reeve
b898f263b7 Another test case for the user view 2021-02-10 18:01:11 -08:00
Mouse Reeve
2a069adc8a Fixes updating lists 2021-02-10 18:00:56 -08:00
Mouse Reeve
41cef9bdfd Catch expand book data load error 2021-02-10 17:54:49 -08:00
Mouse Reeve
3aa7f8afe0 Safer migration runpython function 2021-02-10 17:30:26 -08:00
Mouse Reeve
e918ddf526
Merge pull request #611 from mouse-reeve/default-edition
Don't set default edition if it's already set
2021-02-10 17:23:56 -08:00
Mouse Reeve
107a804230
Merge pull request #610 from mouse-reeve/cover-links
Makes covers clickable in places they aren't
2021-02-10 16:58:04 -08:00
Mouse Reeve
4c2ec43fce Don't set default edition if it's already set 2021-02-10 16:53:51 -08:00
Mouse Reeve
11504e9cef Makes covers clickable in places they aren't
Fixes #598
2021-02-10 16:45:53 -08:00
Mouse Reeve
5e2555dc0e
Merge pull request #609 from mouse-reeve/model-notifications
Refactors generating notifications
2021-02-10 16:45:02 -08:00
Mouse Reeve
848454c50f Fixes templatetag test 2021-02-10 16:31:41 -08:00
Mouse Reeve
b774e946f3 fixes avoiding mention and reply notification 2021-02-10 16:28:50 -08:00
Mouse Reeve
e6b9985f95 Don't need a helper function for creating notifications anymore 2021-02-10 16:23:49 -08:00
Mouse Reeve
e0cfb009e4 Deduplicate notifications in notification model 2021-02-10 16:21:29 -08:00
Mouse Reeve
d9e65aa363 Notifications for follow requests 2021-02-10 16:06:50 -08:00
Mouse Reeve
ac57db5375 Boost notifications 2021-02-10 16:00:02 -08:00
Mouse Reeve
6f748a6a24 Fixes status notifications 2021-02-10 15:18:20 -08:00
Mouse Reeve
74d39c3e24 Move fav notifications to model 2021-02-10 14:31:39 -08:00
Mouse Reeve
106d442a0b Moves import complete notification to model 2021-02-10 14:18:55 -08:00
Mouse Reeve
ca08bfa6f5 Remove duplicate notification generation code in incoming 2021-02-10 14:14:33 -08:00
Mouse Reeve
13d8ccb016 Moves status notifications into model 2021-02-10 14:13:36 -08:00
Mouse Reeve
ed56398667
Merge pull request #607 from mouse-reeve/notifications
Notifications for list additions
2021-02-10 14:08:46 -08:00
Mouse Reeve
b22e56333f Gracefully handle list duplicate additions 2021-02-10 13:50:20 -08:00
Mouse Reeve
8842db3c1b Create notification when adding or suggesting a book to a list 2021-02-10 13:46:56 -08:00
Mouse Reeve
2bf4b17113 Adds notification type referencing lists 2021-02-10 13:15:12 -08:00
Mouse Reeve
88b2504402 Fixes broadcasting on generated notes 2021-02-10 13:09:04 -08:00
Mouse Reeve
222dc118af
Merge pull request #604 from mouse-reeve/link-format-bug
Link format bug
2021-02-10 12:45:04 -08:00
Mouse Reeve
930d9429ef User save() override instead of signal to set user fields
this gets gnarly because of transaction.atomic, so it bears further
testing
2021-02-10 12:43:53 -08:00
Mouse Reeve
475d0cbb26
Merge pull request #603 from mouse-reeve/rss-link
Adds link to rss feed from user page
2021-02-10 12:29:23 -08:00
Mouse Reeve
2f42ec5e37 Fixes execution order for formatting content body for statuses 2021-02-10 12:27:09 -08:00
Mouse Reeve
a61c06c4cc
Merge pull request #601 from mouse-reeve/user-tabs
Only show tabs on user page as appropriate
2021-02-10 12:16:23 -08:00
Mouse Reeve
f75acc385d Adds link to rss feed from user page 2021-02-10 12:13:07 -08:00
Mouse Reeve
5565523d85 Tests bug in link formatting 2021-02-10 12:07:50 -08:00
Mouse Reeve
f46a708f7e Handle connector exceptions with sketchy book data from OL 2021-02-10 12:00:16 -08:00
Mouse Reeve
9a564a846a Better error handling and loggin in get_data 2021-02-10 11:56:08 -08:00
Mouse Reeve
d29257e1ff Only show tabs on user page as appropriate 2021-02-10 11:48:49 -08:00
Mouse Reeve
759a384852
Merge pull request #592 from mouse-reeve/local-paths
Fixes local paths with remote users
2021-02-10 11:38:54 -08:00
Mouse Reeve
7c5b9f563f Fixes double slash in path 2021-02-10 11:11:55 -08:00
Mouse Reeve
96921e4be6
Merge pull request #574 from mouse-reeve/shelve-buttons
Shelve buttons
2021-02-10 09:01:33 -08:00
Mouse Reeve
486b660351
Merge pull request #594 from mouse-reeve/broadcast-fixes
Refactors broadcasting
2021-02-10 08:52:15 -08:00
Mouse Reeve
9c3bec23b8 More mocks in tests 2021-02-09 17:26:27 -08:00
Mouse Reeve
485de039cf
Merge branch 'main' into shelve-buttons 2021-02-09 13:28:00 -08:00
Mouse Reeve
104e4d7cf7 Patch setup in status tests 2021-02-09 13:06:59 -08:00
Mouse Reeve
1d7cea2789 fixes tests with broadcast kwarg 2021-02-09 12:48:46 -08:00
Mouse Reeve
25e8b3ddeb Send activitypub pure mode activities when possible 2021-02-09 12:23:59 -08:00
Mouse Reeve
0682117a06 delete and re-add shelf books in switch edition 2021-02-09 12:07:45 -08:00
Mouse Reeve
8fb08e09fd Filter pending books from list display 2021-02-09 11:40:35 -08:00
Mouse Reeve
9561bb2294 Adds reverse runpython for migration 2021-02-09 11:21:43 -08:00
Mouse Reeve
e998ac28da Fixes broadcasting created status that needs second save 2021-02-09 11:13:02 -08:00
Mouse Reeve
0a554b002d Fixes test for handling direct recipients 2021-02-09 10:43:40 -08:00
Mouse Reeve
76491e4e35 Back off notification polling 2021-02-09 10:38:43 -08:00
Mouse Reeve
4ad51e62c6 Use recipients model attribute in broadcast 2021-02-09 10:26:04 -08:00
Mouse Reeve
0fd2885e7e Tests broadcasting from list views more thoroughly 2021-02-09 09:41:48 -08:00
Mouse Reeve
76e90cb3f6 Fixes remaining test patches 2021-02-08 09:38:28 -08:00
Mouse Reeve
80241e59a7 adds mocks to templatetags tests 2021-02-07 19:17:28 -08:00
Mouse Reeve
2fcfebd4e5 fixes broadcasting for incoming activities 2021-02-07 16:23:20 -08:00
Mouse Reeve
bf6aca5122 fixes mocks on tests 2021-02-07 11:29:24 -08:00
Mouse Reeve
ad7a045582 Makes shelbook user required 2021-02-07 11:29:13 -08:00
Mouse Reeve
ee2b656b08 fixes change password view 2021-02-06 22:37:40 -08:00
Mouse Reeve
6b10e487b6 adding mocks for views tests 2021-02-06 22:37:19 -08:00
Mouse Reeve
272685f27d sketchy fix for boost broadcasting 2021-02-06 21:30:43 -08:00
Mouse Reeve
63fe9777e2 Fixes shelf model tests 2021-02-06 21:02:58 -08:00
Mouse Reeve
b02a2c1aa4 broadcasting for follow, accept, and reject 2021-02-06 19:18:02 -08:00
Mouse Reeve
ffd0759f6f Fixes field and lists tests 2021-02-06 16:13:59 -08:00
Mouse Reeve
f917079c0b Adds update tests for objectmixin 2021-02-06 13:48:02 -08:00
Mouse Reeve
d477b6d3f3 tests create and delete activity for objectmixin 2021-02-06 13:43:09 -08:00
Mouse Reeve
3b17c0ed44 Fixes broadcast recipients with software constraint 2021-02-06 12:41:35 -08:00
Mouse Reeve
ff721896c0 Fixes call to mention_users 2021-02-06 12:06:45 -08:00
Mouse Reeve
c7c975d695 Use save method override instead of a signal
and gets the new test file working
2021-02-06 12:00:47 -08:00
Mouse Reeve
2ef777f87e Use activity type mixin 2021-02-04 14:36:57 -08:00
Mouse Reeve
7381536ad6 circular import issues and added_by migration 2021-02-04 14:27:26 -08:00
Mouse Reeve
5a3a6151a6 separate mixins for AP types 2021-02-04 13:22:27 -08:00
Mouse Reeve
42d80ce238 Remove explicit broadcast calls 2021-02-04 13:21:55 -08:00
Mouse Reeve
44996917c7 Activitypub model code in more files 2021-02-04 12:36:39 -08:00
Mouse Reeve
feb8190d8f Created mixin for ordered collection items 2021-02-04 12:25:07 -08:00
Mouse Reeve
b015d6c9a1 Fixes hiding import book option in search for anonymous users 2021-02-04 11:46:42 -08:00
Mouse Reeve
12e0e6a1f0 Broadcast implicitly from model save 2021-02-04 11:44:31 -08:00
Mouse Reeve
d633826a20 full path in user-based remote id 2021-02-04 10:48:56 -08:00
Mouse Reeve
dfb5c396b0 Moves activitypub mixin to its own file 2021-02-04 10:47:18 -08:00
Mouse Reeve
582ebc0fe3 Fixes local paths with remote users
Fixes #590
2021-02-04 10:31:08 -08:00
Mouse Reeve
ae0034e678 Fixes mismatched html tags 2021-02-03 18:09:07 -08:00
Mouse Reeve
736f28e254 Fixes user tabs linking to logged in user 2021-02-03 17:02:04 -08:00
Mouse Reeve
c03dcaf842 Distinct lists 2021-02-03 16:49:42 -08:00
Mouse Reeve
3f2f27bcac Fixes logged out list view 2021-02-03 16:40:29 -08:00
Mouse Reeve
39d31060e1 Sort list preview by most recently added 2021-02-03 16:11:42 -08:00
Mouse Reeve
476d65552e Hide other people's empty lists from lists page 2021-02-03 16:01:49 -08:00
Mouse Reeve
7af1f6c19d
Merge pull request #585 from mouse-reeve/inline-form
Inline form
2021-02-03 12:56:08 -08:00
Mouse Reeve
1dc02cd5fa
Merge pull request #576 from mouse-reeve/remove-editions
Clear unused editions with poor metadata
2021-02-03 12:55:27 -08:00
Mouse Reeve
7faf639758 Fixes openlibrary connector test 2021-02-03 12:52:13 -08:00
Mouse Reeve
502e235e59 Edit shelf form using component 2021-02-03 12:45:01 -08:00
Mouse Reeve
bcbcdd5b3b Uses component for create shelf form 2021-02-03 12:36:20 -08:00
Mouse Reeve
6ce4be7406 Adds inline form component 2021-02-03 12:25:33 -08:00
Mouse Reeve
0ba7c60e83
Merge pull request #577 from mouse-reeve/lists
Lists
2021-02-03 10:57:19 -08:00
Mouse Reeve
65f3333edb line length fix 2021-02-03 10:42:02 -08:00
Mouse Reeve
1b6dd666d9 Handling incoming list Creates and Updates 2021-02-03 10:34:27 -08:00
Mouse Reeve
627b2ae90a Set header when opening forms 2021-02-02 15:46:58 -08:00
Mouse Reeve
7aa9204cd2 Fixes missing privacy field for to-read statuses 2021-02-02 15:25:34 -08:00
Mouse Reeve
18ef041a25 Fixes broadcast task patch on shelves tests 2021-02-02 15:19:44 -08:00
Mouse Reeve
b8dc307a6b Fixes mocking broadcast task in lists tests 2021-02-02 15:14:33 -08:00
Mouse Reeve
bbc05578fb Fixes tests 2021-02-02 14:59:40 -08:00
Mouse Reeve
6b07911a01 Patches broadcasts in list and shelf tests 2021-02-02 12:17:21 -08:00
Mouse Reeve
3f9bb97693
Merge pull request #583 from mouse-reeve/level
adds icons to discover page
2021-02-02 12:10:59 -08:00
Mouse Reeve
f42a5444e5 User ordered collection subtype for shelves 2021-02-02 11:17:31 -08:00
Mouse Reeve
e61d8b7638 Serialize lists as custom activitypub object 2021-02-02 11:13:15 -08:00
Mouse Reeve
d37f8f68d8 Adds user lists template 2021-02-02 10:13:59 -08:00
Mouse Reeve
05c00b9eca Adds cute lil icons to discover page 2021-02-02 10:13:35 -08:00
Mouse Reeve
d2fc3febb0 Show reading activity panel when no readthroughs exist 2021-02-02 09:44:29 -08:00
Mouse Reeve
23ce639e5c migration to change privacy field type 2021-02-02 09:41:24 -08:00
Mouse Reeve
e53b4e57fa Federating lists and shelves 2021-02-02 09:37:46 -08:00
Mouse Reeve
c7914d1394 Fixes search tests 2021-02-01 13:06:06 -08:00
Mouse Reeve
3e3b21c46a Fixes ap serialization of list lists 2021-02-01 12:03:11 -08:00
Mouse Reeve
e865530142 Search lists 2021-02-01 11:50:47 -08:00
Mouse Reeve
ec7a9f68c2 Adds tabs to user profile page 2021-02-01 11:34:08 -08:00
Mouse Reeve
d7c32cc314 Paginates lists view 2021-01-31 17:34:06 -08:00
Mouse Reeve
6e0d258c97 Cards on list page 2021-01-31 14:03:51 -08:00
Mouse Reeve
fd9b98d443 Fixes logged out list view 2021-01-31 13:38:26 -08:00
Mouse Reeve
5939a72c81 More list models tests 2021-01-31 13:31:49 -08:00
Mouse Reeve
b9b5694165 Fixes bug in removing list item 2021-01-31 13:14:52 -08:00
Mouse Reeve
19b56c26f7 list views tests 2021-01-31 13:12:56 -08:00
Mouse Reeve
944503dde5 Use close button instead of cancel button on edit form 2021-01-31 12:36:53 -08:00
Mouse Reeve
697bcb0edb sidebar css class 2021-01-31 12:31:39 -08:00
Mouse Reeve
6824bdd5ed Fixes shelve menu display 2021-01-31 12:30:33 -08:00
Mouse Reeve
b17761cfc3 remove items from list 2021-01-31 12:15:38 -08:00
Mouse Reeve
47097c6b32 updates user rating tag 2021-01-31 12:10:10 -08:00
Mouse Reeve
13b38d40bb Curation view 2021-01-31 12:07:54 -08:00
Mouse Reeve
a6c5341ad1 curation ui 2021-01-31 11:45:16 -08:00
Mouse Reeve
846489e88e Only show approved list items 2021-01-31 11:21:50 -08:00
Mouse Reeve
a2e69d783d suggest button wording 2021-01-31 11:13:50 -08:00
Mouse Reeve
f15626b2cb Null state for search results 2021-01-31 11:13:05 -08:00
Mouse Reeve
6a68fe9475 Search for books to add to lists 2021-01-31 11:11:26 -08:00
Mouse Reeve
1e9189d43c Suggest recently edited books if we're out of user books 2021-01-31 10:56:40 -08:00
Mouse Reeve
1a4c53da2c Only show delete button to appropriate users 2021-01-31 10:44:46 -08:00
Mouse Reeve
acd922970a Add to and edit lists 2021-01-31 10:34:25 -08:00
Mouse Reeve
4883231347 Fixes model test 2021-01-31 09:08:06 -08:00
Mouse Reeve
d73a1b4ec1 handles list privacy in display 2021-01-31 08:41:11 -08:00
Mouse Reeve
69c2b192a4 Adds list creation form 2021-01-31 08:08:52 -08:00
Mouse Reeve
91483b56f5 Adds views tests 2021-01-31 07:09:03 -08:00
Mouse Reeve
8ef959ba73 Adds little icons, so cute 2021-01-31 06:52:18 -08:00
Mouse Reeve
0815b36ec9 Adds basic view and template files 2021-01-30 21:42:47 -08:00
Mouse Reeve
af65509527 stub test for list model 2021-01-30 21:03:50 -08:00
Mouse Reeve
fe088f21fb Model and migration for lists 2021-01-30 21:00:36 -08:00
Mouse Reeve
45ac13a7ff Clear unused editions with poor metadata 2021-01-30 18:30:07 -08:00
Mouse Reeve
a36de9026b
Merge pull request #575 from mouse-reeve/openlibrary-editions
Ignore openlibrary editions with little to no metadata
2021-01-30 17:49:54 -08:00
Mouse Reeve
9833f5a03d Tests creating editions 2021-01-30 17:44:42 -08:00
Mouse Reeve
661d49d9cc Ignore openlibrary editions with little to no metadata
Also fixes the isbn problem
2021-01-30 17:19:01 -08:00
Mouse Reeve
645e85050c Group modals with shelve button 2021-01-30 16:08:29 -08:00
Mouse Reeve
6ff70d0d2c directory for shelve button templates 2021-01-30 15:59:50 -08:00
Mouse Reeve
765a6a1878 uncomment error handling for bad shelf id 2021-01-30 15:56:22 -08:00
Mouse Reeve
74d37c84be Don't show the main button in the dropdown 2021-01-30 15:49:43 -08:00
Mouse Reeve
0c723eb550 Fixes shelf page template path bug 2021-01-30 15:49:43 -08:00
Mouse Reeve
7afab352b1 Fixes incorrect tempalte path in threaded status page 2021-01-30 15:49:43 -08:00
Mouse Reeve
9b326f7321 Give user control over "want to read" posts 2021-01-30 15:18:38 -08:00
Mouse Reeve
e5fd14b206 Confirmation modal for to-read shelve action 2021-01-30 13:11:43 -08:00
Mouse Reeve
b3bd6822b2 Make sure templates render rather than checking template paths 2021-01-30 12:30:03 -08:00
Mouse Reeve
ac4a178e83 Fixes shelf page template path bug 2021-01-30 12:03:50 -08:00
Mouse Reeve
37710144fa Adds options tempalte 2021-01-30 11:52:31 -08:00
Mouse Reeve
cd65ac7290 Fixes incorrect tempalte path in threaded status page 2021-01-30 11:46:15 -08:00
Mouse Reeve
e5746d6117 Menu list for shelf button options 2021-01-30 11:43:40 -08:00
Mouse Reeve
8add05d7fd Fixes incorrect display of reading progress 2021-01-29 18:06:17 -08:00
Mouse Reeve
9d3f48a1a9 Settings views tests 2021-01-29 17:06:10 -08:00
Mouse Reeve
d1ee26e282 list of federated servers for admin panel 2021-01-29 16:02:59 -08:00
Mouse Reeve
9db327a69e Edit view for site settings 2021-01-29 15:50:46 -08:00
Mouse Reeve
21aadf2920 Adds site settings view 2021-01-29 15:38:42 -08:00
Mouse Reeve
02c466e04a
Merge pull request #568 from mouse-reeve/send-dms
Compose window for dms
2021-01-29 14:23:06 -08:00
Mouse Reeve
93ef9e31ad Send message to a particular user 2021-01-29 11:44:04 -08:00
Mouse Reeve
779a5e0cbf Compose window for dms 2021-01-29 11:14:18 -08:00
Mouse Reeve
640db7e9e3 Fixes more tests for moved-around views 2021-01-29 10:47:47 -08:00