Hugh Rundle
70e0128052
non-owners can't add users to groups
...
- hide add-user pages from non-owners
- hide user searchbox from non-owners
- fix find-user searchbox being in wrong place where no results
2021-10-02 14:41:23 +10:00
Hugh Rundle
0984972b05
group membership invitations
...
- fix display of group information on user and group pages
- send, receive, accept and reject invitations
2021-10-02 12:30:48 +10:00
Hugh Rundle
2f42161dda
disambiguate groups and prep for group invitations
...
- rename Group to BookwyrmGroup
- create group memberships and invitations
- adjust all model name references accordingly
2021-10-02 10:10:37 +10:00
Hugh Rundle
66494e7788
fix reverse reference to user bookwyrm_groups
2021-09-28 18:53:11 +10:00
Hugh Rundle
fb823189a0
don't allow non-local users to join groups (yet)
...
Groups are not compatible with ActivityPub because I don't know what I'm doing.
NOTE: this is super hacky, fix ASAP
2021-09-27 21:48:40 +10:00
Hugh Rundle
1a02af1450
allow members to see groups and their lists
...
- add additional logic to visible_to_user, for groups and their objects
- cleans up some queries in Group view
NOTE: I can't work out how to make group lists only visible
to users who should be able to see them, on user group listings.
They still can't access the actual group, but can see it on
user pages. This is potentialy problematic.
2021-09-27 20:24:25 +10:00
Hugh Rundle
c87712c995
allow group members to add items to group lists directly
...
NOTE: this will be the case regardless of privacy settings of the list
2021-09-27 18:41:29 +10:00
Hugh Rundle
81e5ff5b76
show groups on member pages if allowed
...
- display groups on user pages when not the logged in user
- restrict visibility of groups on user pages and group pages themselves according to privacy settings
2021-09-27 17:51:18 +10:00
Hugh Rundle
e38d7b63f3
make groups actually editable
2021-09-27 16:49:56 +10:00
Hugh Rundle
493ed14f34
better group creation form logic and placement
2021-09-27 16:39:12 +10:00
Hugh Rundle
2874e52309
rationalise group creation and prep for group privacy
2021-09-27 15:34:14 +10:00
Hugh Rundle
5fccb991a7
remove list from group when changing curation
...
Allows 'group' to be blank when saving a list.
Removes the 'group' field when saving a list with curation other than 'group' - this stops the list "sticking" to a group after it is changed from group curation to something else.
2021-09-26 18:28:16 +10:00
Hugh Rundle
f3a3ba5f01
pass group value to list views and vice-versa
2021-09-26 15:56:02 +10:00
Hugh Rundle
ec0720514e
don't allow non-manager to add and remove group members
2021-09-25 20:25:30 +10:00
Hugh Rundle
b645d75303
add and remove users from groups
2021-09-25 17:34:44 +10:00
Hugh Rundle
7c0deabcb2
update urls and group view for searching users to add to group
2021-09-25 11:14:04 +10:00
Hugh Rundle
273ad9a466
add create_group to __init__.py
...
you probably want this otherwise nothing previously added for group creation will work :-)
2021-09-25 10:55:32 +10:00
Hugh Rundle
d4fcf88cf5
add list cards to groups page
...
- add list cards to groups page based on lists page
- add sort to members on group page
2021-09-24 21:57:01 +10:00
Hugh Rundle
86a60d58e5
add user cards to group pages
2021-09-24 21:24:06 +10:00
Hugh Rundle
9b6d2a9d88
add group page
2021-09-24 20:34:11 +10:00
Hugh Rundle
f32a2cc4d0
group creation form can now be submitted!
...
Whoops
2021-09-24 15:04:52 +10:00
Hugh Rundle
4e93b09067
create group form
...
adds a group creation form to user dashboard
2021-09-24 14:12:36 +10:00
Hugh Rundle
3e3c90ec03
add views for groups
2021-09-24 07:49:25 +10:00
Mouse Reeve
2419942770
Create model function to update user last active date
2021-09-22 08:35:20 -07:00
Mouse Reeve
ea303fb285
Updating string format synatx part 3
2021-09-20 16:45:26 -07:00
Mouse Reeve
cf3157a3b5
Merge branch 'main' into pylint-update
2021-09-20 16:31:27 -07:00
Mouse Reeve
89fad59793
Query efficiency in user view
2021-09-20 15:25:29 -07:00
Mouse Reeve
aa0ffd86c0
Fetch related items when loading list page
2021-09-20 14:49:07 -07:00
Mouse Reeve
22ead6ba46
More efficient followers query
2021-09-20 14:29:01 -07:00
Mouse Reeve
38c66b208c
Adds customizable invite request copy
2021-09-18 15:45:04 -07:00
Mouse Reeve
385da1ea43
Handle get request to /register path
2021-09-18 15:08:02 -07:00
Mouse Reeve
acfb1bb376
Updating string format synatx part 2
2021-09-18 11:32:00 -07:00
Mouse Reeve
6022e7b232
Adds IP blocklist views
2021-09-17 13:04:10 -07:00
Mouse Reeve
be7fae2053
Show recent servers first
2021-09-12 10:02:15 -07:00
Mouse Reeve
0f3e71978e
Federated and blocked tabs
2021-09-11 14:41:52 -07:00
Mouse Reeve
03a5ac9c3f
Use elided page range for federated peer list
2021-09-11 14:27:42 -07:00
Mouse Reeve
09e49c70ed
Fixes peers endpoint
2021-09-11 13:30:27 -07:00
Mouse Reeve
e801c7d991
Cleaner chart intervals
2021-09-11 09:32:29 -07:00
Mouse Reeve
84b90db4bb
Adds filtering to admin panel
2021-09-11 08:47:16 -07:00
Mouse Reeve
1f53ce33a8
Fixes user stats reporting
2021-09-11 07:52:56 -07:00
Mouse Reeve
19cdda372c
Tidies up charts
2021-09-11 07:14:14 -07:00
Mouse Reeve
a79fb14686
Basic dashboard page
2021-09-10 21:12:08 -07:00
Mouse Reeve
e515912dbc
Move admin views into their own directory
2021-09-10 18:50:31 -07:00
Mouse Reeve
9413dacaf2
Updates instance info endpoint
2021-09-10 11:44:51 -07:00
Mouse Reeve
3a7717e22f
Fixes status code variable in http response
2021-09-10 08:59:18 -07:00
Mouse Reeve
3c38a64a81
Return http responses for ajax requests
2021-09-10 08:03:22 -07:00
Mouse Reeve
de3c79ce21
Merge branch 'main' into email-blocking
2021-09-08 17:43:08 -07:00
Mouse Reeve
15344b6a8e
Let moderators delete users
2021-09-08 17:21:45 -07:00
Mouse Reeve
916be2552d
View for moderators deleting users
2021-09-08 16:58:16 -07:00
Mouse Reeve
658e12eb86
Allow admins to suspend pending users
2021-09-08 16:47:12 -07:00