1
0
Fork 0
Commit graph

33 commits

Author SHA1 Message Date
235e877b3d Reverse order of notification users lists
Should show newest first
2022-07-14 11:00:05 -07:00
f92b4548b1 Fixes get_or_create error when multiple matching notifications exist 2022-07-09 12:30:05 -07:00
a972c58f3b Fixes errors in permissions 2022-07-07 14:01:51 -07:00
26a1f75e91 Group notification types by feature 2022-07-06 19:15:48 -07:00
7fe722b595 Fixes follow request notifications
Since the main way to interact with them is by approving them in the
notification, I didn't group them
2022-07-05 15:04:14 -07:00
e54c563865 Consistent use of plurals 2022-07-05 14:49:04 -07:00
8cbf8f62c7 List add notifications 2022-07-05 14:15:12 -07:00
41f42e33ed Moves list add notification into notification model
Right now notifications are a mix of post-save signals and clauses in
the save function of the model. I'm not actually sure which is better,
but I'm moving them to signals where it's straightforward to be
consistent.
2022-07-05 13:28:09 -07:00
736d29ea20 Updates group leave and remove notifications 2022-07-05 13:05:28 -07:00
971bed9942 Notification field is read, not unread
Oops
2022-07-04 21:32:35 -07:00
801ba03aaf Keep group as a foreign key field 2022-07-04 20:32:13 -07:00
aeefd5a3e9 Use signal for creating group invite notification 2022-07-04 20:24:29 -07:00
03f5a3f2c1 Use enums for notification types 2022-07-04 20:19:18 -07:00
b193652a67 Python formatting 2022-07-04 19:58:27 -07:00
62e57ac931 Adds notify and unnotify helper class methods
In the new paradigm, a notification related to a status has users added
to it and removed from it, rather than a new notification being added
every time. These helper functions make this behavior consistent.
2022-07-04 19:48:10 -07:00
a9a2da0957 Keep status as a single field 2022-07-04 19:20:04 -07:00
a2a04da493 Adds many to many related items to notifications 2022-04-09 09:44:42 -07:00
8d266fda4d Removes unused related_book field on notification model 2022-04-08 15:21:38 -07:00
f92863ad3e Notify when import completes 2021-11-14 09:56:23 -08:00
6bc86f189f notify group members of group changes
Send a notification to all group members when group name, description, or privacy are changed.
2021-10-22 20:23:45 +11:00
1634c8774e remove useless field in Notifications model 2021-10-15 17:59:39 +11:00
90d92edd75 disable pylint on NotificationType now being "too long" 2021-10-05 08:10:23 +11:00
52a083a907 revert name change for Group, GroupMember
these were named as BookwyrmGroup and BookwyrmGroupMember due to a misunderstanding about related_name and a dodgy development environment. This naming makes more sense.
2021-10-02 16:52:34 +10:00
21e6ed7388 complete group notifications
- notify group members when a new member accepts an invitation
- notify all group members when a member leaves or is removed
- notify ex-member when they are removed
2021-10-02 15:48:55 +10:00
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
50ca3eef31 Encompass all status models in notification signal 2021-09-22 11:10:37 -07:00
a4ac25bfae Move notifications to signals 2021-09-22 09:24:39 -07:00
3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
e5750de3dd Notify admins when a report is filed 2021-03-16 12:57:23 -07:00
70296e760b Runs black 2021-03-08 08:49:10 -08:00
e0cfb009e4 Deduplicate notifications in notification model 2021-02-10 16:21:29 -08:00
2bf4b17113 Adds notification type referencing lists 2021-02-10 13:15:12 -08:00
521934b4f3 Moves models that don't inherit Status to their own files 2021-01-01 10:46:15 -08:00