Commit Graph

3937 Commits

Author SHA1 Message Date
18735bdd42 use update() to remove orphaned groups on list edit
Using add() broadcasts the database change, which is unnecessary potentially broadcast AP messages twice.
2021-10-10 12:04:03 +11:00
d6a5794ac3 do not load list edit form if viewer not authenticated 2021-10-10 12:02:27 +11:00
83f46b6cda remove print() statement
Whoops accidentally left this behind from manual troubleshooting
2021-10-10 12:01:21 +11:00
252ff0d689 emblacken files
Wouldn't it be great if I just remembered to run Black before every commit?
2021-10-09 22:15:24 +11:00
b3cc9e5b75 remove user and their lists from group when group.user blocks them
Lists are changed to closed curation with no group.
2021-10-09 22:13:12 +11:00
9940abfd81 refactor removing user from group
This is in preparation for removing a user and their lists when the group owner blocks them.
Remove the user via models.group
Remove the lists via models.list
2021-10-09 22:11:46 +11:00
1bf5758e01 overide filters for groups and group lists
- use more sensible query for displaying groups on user page
- privacy_filter now allows group members to see followers_only and private lists and groups they would otherwise not see
2021-10-09 16:11:11 +11:00
714a369246 only show list edit form to list.user 2021-10-09 16:10:00 +11:00
056150d583 CASCADE group.user
Delete groups when group.user is deleted.
2021-10-08 21:21:19 +11:00
39e002ee13 Merge remote-tracking branch 'origin/bookwyrm-groups' into bookwyrm-groups
Merge changes from main project into local branch
2021-10-08 18:53:59 +11:00
5a4026cda3 group views tests 2021-10-08 18:47:03 +11:00
05bde27944 remove commented out code 2021-10-08 18:46:30 +11:00
48fc85c761 adjust commenting on js file 2021-10-08 18:45:28 +11:00
4ba3234f6c Merge branch 'main' into bookwyrm-groups 2021-10-07 17:27:11 -07:00
3003b103e4 add group views tests
TODO: the POST test needs to test that the group was actually updated.
2021-10-08 08:38:00 +11:00
674aa484fd Use target language in choice list 2021-10-06 16:58:27 -07:00
982cd49c51 Fixes english grammar weirdness 2021-10-06 16:33:07 -07:00
b23f6afa6c Adds context to curation type "open" 2021-10-06 16:24:23 -07:00
26de524247 Update language on login and edit preference 2021-10-06 13:01:29 -07:00
c0af69045c Adds language customization to preferences 2021-10-06 12:20:05 -07:00
ba5ec878fa Adds language preference to database 2021-10-06 12:19:52 -07:00
73a8f89bee Merge branch 'main' into bookwyrm-groups 2021-10-06 11:37:38 -07:00
8d00ef4318 Style cleanup 2021-10-06 11:23:36 -07:00
53e5762563 Status-specific filters in status model 2021-10-06 11:19:13 -07:00
34d6c88861 Move privacy levels filter to clearer location 2021-10-06 11:15:17 -07:00
2307cb2227 Filter followers only in place
It's only used in one spot
2021-10-06 11:12:03 -07:00
68b6b1fbae User override in child class instead of if/else for privacy_filter 2021-10-06 11:08:54 -07:00
97cc129478 Updates calls to privacy_filter 2021-10-06 10:37:09 -07:00
b2671e78ef Moves privacy filter to model class 2021-10-06 09:48:11 -07:00
67c83b8d32 Merge pull request #1507 from bookwyrm-social/api-images
Fixes image paths in endpoints
2021-10-06 09:32:51 -07:00
4c539bc7eb Fixes image paths in endpoints 2021-10-06 08:49:07 -07:00
094931d6d1 Display half-stars in generated statuses for federation.
Fixes #1505
2021-10-06 11:37:27 +02:00
ec7d0db843 linting fixes 2021-10-05 21:48:59 +11:00
f8e0de1ea9 run black for clean code
Godammit Hugh remember to do this before pushing new code.
2021-10-05 21:32:48 +11:00
b3dc81dea0 update tests 2021-10-05 21:29:46 +11:00
6fde19e9b1 lint fixes 2021-10-05 21:29:33 +11:00
cdf7775e05 add test for Group views 2021-10-05 21:06:09 +11:00
fe87e815e6 database migrations for Groups 2021-10-05 20:41:48 +11:00
b1bb43d143 lint Group views file 2021-10-05 18:04:47 +11:00
cc8db1c353 linting fixes
- remove unused imports
- add class docstrings
2021-10-05 09:05:20 +11:00
484e9ed959 fix user Groups view pagination function 2021-10-05 08:14:52 +11:00
90d92edd75 disable pylint on NotificationType now being "too long" 2021-10-05 08:10:23 +11:00
78f5003407 lint raise_visible_to_user
Don't return True unnecessarily
2021-10-05 08:09:24 +11:00
2a97458878 Merge pull request #1504 from bookwyrm-social/follow-request-recs
Remove follow suggestion on request
2021-10-04 13:14:32 -07:00
f99a61b6bd Remove follow suggestion on request 2021-10-04 12:52:51 -07:00
ebbc56b3d0 Merge pull request #1503 from bookwyrm-social/dashboard
More! Charts!
2021-10-04 11:59:46 -07:00
636eca97cb Better mobile display 2021-10-04 11:22:14 -07:00
2335945a50 Python formatting 2021-10-04 11:16:02 -07:00
551b49b903 Adds works chart and updates colors 2021-10-04 11:14:50 -07:00
37cd7e684c Updates chart markup 2021-10-04 10:53:22 -07:00