Commit graph

7270 commits

Author SHA1 Message Date
Mouse Reeve
d09aa2ded2
Merge pull request #2187 from bookwyrm-social/missing-migration
Adds another missing migration
2022-07-06 12:33:07 -07:00
Mouse Reeve
079f6d304e Python formatting 2022-07-06 12:22:07 -07:00
Mouse Reeve
9fceeb3eda Adds another missing migration 2022-07-06 12:17:24 -07:00
Mouse Reeve
476a7b73a2
Merge pull request #2186 from bookwyrm-social/test-coverage
Adds test coverage command and some more miscellaneous tests
2022-07-06 11:32:49 -07:00
Mouse Reeve
b2a8a04092 Removes unnecessary imports 2022-07-06 11:24:04 -07:00
Mouse Reeve
9c21d1c06f Adds more automod tests 2022-07-06 11:15:30 -07:00
Mouse Reeve
7a9d320afd Expands automod view test 2022-07-06 10:52:50 -07:00
Mouse Reeve
574c1db732 Adds more templatetag tests 2022-07-06 10:52:45 -07:00
Mouse Reeve
87434fbb9d Adds a couple more edit book views tests 2022-07-06 10:38:22 -07:00
Mouse Reeve
f5638c1e44 Removed unused helper function 2022-07-06 10:05:55 -07:00
Mouse Reeve
f4dd14acad Adds more webfinger tests for helper functions 2022-07-06 10:05:47 -07:00
Mouse Reeve
c48fbd8753 Separates reporting and report admins tests 2022-07-06 09:47:48 -07:00
Mouse Reeve
afd3b27d78 Adds coverage command to bw-dev 2022-07-06 09:47:33 -07:00
Mouse Reeve
b61a4ab994 Adds tests for unnotify 2022-07-06 08:51:35 -07:00
Mouse Reeve
e8a570b687
Merge pull request #2185 from bookwyrm-social/userless-link-domain
Adds missing migration
2022-07-05 18:09:45 -07:00
Mouse Reeve
003ef65db5 Adds missing migration 2022-07-05 18:01:10 -07:00
Mouse Reeve
cccf0ec3a0
Merge pull request #2184 from bookwyrm-social/userless-link-domain
Handle link domains with no associated user
2022-07-05 17:51:12 -07:00
Mouse Reeve
d4f8a5f448 Fixes links to report modals 2022-07-05 17:43:03 -07:00
Mouse Reeve
4f386e8c4e Allow reports with no associated user 2022-07-05 17:19:03 -07:00
Mouse Reeve
0be4fec167 Don't assume that link domains have a known user
This is an edge case, and they OUGHT to have a user, but if the user was
deleted for a remote link, the field won't be able to resolve and the
user will be unset.
2022-07-05 16:51:03 -07:00
Mouse Reeve
24349b0a4c Updates notification view tests 2022-07-05 16:20:27 -07:00
Mouse Reeve
37bcb031f7 Adds notification model unit tests 2022-07-05 16:03:25 -07:00
Mouse Reeve
f7e02061cb
Merge pull request #2183 from bookwyrm-social/dependabot/pip/django-3.2.14
Bump django from 3.2.13 to 3.2.14
2022-07-05 16:01:03 -07:00
dependabot[bot]
1e0055663b
Bump django from 3.2.13 to 3.2.14
Bumps [django](https://github.com/django/django) from 3.2.13 to 3.2.14.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.13...3.2.14)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 22:45:57 +00:00
Mouse Reeve
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
Mouse Reeve
e54c563865 Consistent use of plurals 2022-07-05 14:49:04 -07:00
Mouse Reeve
7508ae9eae Separate vars for user count and display counts 2022-07-05 14:25:42 -07:00
Mouse Reeve
8cbf8f62c7 List add notifications 2022-07-05 14:15:12 -07:00
Mouse Reeve
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
Mouse Reeve
736d29ea20 Updates group leave and remove notifications 2022-07-05 13:05:28 -07:00
Mouse Reeve
c65381adf9 Comma format count of other users in a notification 2022-07-05 12:49:02 -07:00
Mouse Reeve
79f3382ece Updates reports notification 2022-07-05 12:48:10 -07:00
Mouse Reeve
9e94a13acf Updates mention and reply notifications 2022-07-05 12:40:41 -07:00
Mouse Reeve
ee71f5df21 Updates language on boosts 2022-07-05 12:28:48 -07:00
Mouse Reeve
fc375bbab4 Finishes fav status translation strings 2022-07-05 12:21:22 -07:00
Mouse Reeve
97b53d4998
Merge pull request #2180 from bookwyrm-social/set-access-level-user
Fixes setting access level to "user"
2022-07-05 12:08:30 -07:00
Mouse Reeve
e2a50230c7 Fixes setting acces level to "user"
This wasn't working because "user" isn't a group, it's the absense of
any group.
2022-07-04 21:44:55 -07:00
Mouse Reeve
f76d661e07 Updates templates for fav notifications 2022-07-04 21:32:53 -07:00
Mouse Reeve
971bed9942 Notification field is read, not unread
Oops
2022-07-04 21:32:35 -07:00
Mouse Reeve
801ba03aaf Keep group as a foreign key field 2022-07-04 20:32:13 -07:00
Mouse Reeve
9948dd2356 Use enums in more models 2022-07-04 20:27:56 -07:00
Mouse Reeve
aeefd5a3e9 Use signal for creating group invite notification 2022-07-04 20:24:29 -07:00
Mouse Reeve
03f5a3f2c1 Use enums for notification types 2022-07-04 20:19:18 -07:00
Mouse Reeve
72a8229a5c Updates group notifications 2022-07-04 20:05:39 -07:00
Mouse Reeve
b193652a67 Python formatting 2022-07-04 19:58:27 -07:00
Mouse Reeve
dc8e61f316 Updates reports created in automod task 2022-07-04 19:57:58 -07:00
Mouse Reeve
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
Mouse Reeve
a9a2da0957 Keep status as a single field 2022-07-04 19:20:04 -07:00
Mouse Reeve
0cc2bc269e Updates view 2022-07-04 18:51:07 -07:00
Mouse Reeve
c7ecbb2fdf New migration file
I don't know why it felt important to do this but it did. The migrations
are in one file now and don't need a merge migration.
2022-07-04 18:42:56 -07:00