Commit graph

7275 commits

Author SHA1 Message Date
Mouse Reeve
591c4d9b75 Fixes numbering on book lists 2022-07-09 13:33:58 -07:00
Mouse Reeve
85f811022f
Merge pull request #2210 from bookwyrm-social/notification-cw
Show content warning in notification status previews
2022-07-09 13:29:22 -07:00
Mouse Reeve
be5e1be5f6 Use content warnings in notifications 2022-07-09 13:12:46 -07:00
Mouse Reeve
27e9eced67
Merge pull request #2208 from bookwyrm-social/follow-bug
Fixes bug in notifications breaking follows
2022-07-09 12:40:38 -07:00
Mouse Reeve
11a0c1691b Move status_preview snippet to notifications directory
That's the only place it's used, always nice to de-clutter the snippets
directory
2022-07-09 12:40:21 -07:00
Mouse Reeve
f92b4548b1 Fixes get_or_create error when multiple matching notifications exist 2022-07-09 12:30:05 -07:00
Mouse Reeve
c092d952bd Adds test to catch notification error 2022-07-09 12:29:29 -07:00
Mouse Reeve
a7553c0b8c Return HttpResponse instead of redirects for AJAX follows
This is more efficient, and most follow activities are ajax
2022-07-09 12:20:18 -07:00
Mouse Reeve
923495e454 More accurate button display
Now, a follow button will show as pending even if the user doesn't
manually approve followers, if that's the state the request is in.
2022-07-09 12:19:28 -07:00
Mouse Reeve
ed847494ab
Merge pull request #2206 from bookwyrm-social/locales
Adds French notification strings and new admin strings
2022-07-08 15:52:15 -07:00
Mouse Reeve
ef49171c7a Adds French notifiction strings and new admin strings 2022-07-08 15:42:43 -07:00
Mouse Reeve
bd6774fca8
Merge pull request #2202 from bookwyrm-social/settings-warnings
New and improved warnings on the admin dashboard
2022-07-08 15:39:23 -07:00
Mouse Reeve
147d092eac Removes line breaks from warning links 2022-07-08 15:29:55 -07:00
Mouse Reeve
0d05ff348d
Merge pull request #2203 from bookwyrm-social/dms
Improves UI around DMs
2022-07-08 12:30:17 -07:00
Mouse Reeve
36553ef2a9 Suppress protected-access warning on admin dashboard 2022-07-08 12:22:23 -07:00
Mouse Reeve
d0e986c283 Hide DMs from profile page 2022-07-08 12:19:51 -07:00
Mouse Reeve
441fef9e86 Use javascript to send DMs
This fixes the draft cache issue and also the weird redirects
2022-07-08 12:11:00 -07:00
Mouse Reeve
ba7ae46c75 Adds warnings for missing privacy policies and codes of conduct 2022-07-08 11:59:21 -07:00
Mouse Reeve
4a2e191d92 Refactors dashboard warnings
This cleans up the display so that they don't get all squished when a
bunch are present, and creates a layout to make them more DRY
2022-07-08 11:38:27 -07:00
Mouse Reeve
e35ce82052
Merge pull request #2200 from bookwyrm-social/docs-links
Fixes links to documentation pages
2022-07-08 10:26:42 -07:00
Mouse Reeve
b62bb157c0 Fixes links to documentation pages 2022-07-08 09:44:41 -07:00
Mouse Reeve
aedbb6f9e7
Merge pull request #2198 from bookwyrm-social/locales
Locale updates
2022-07-08 09:38:50 -07:00
Mouse Reeve
4af0095237
Merge pull request #2199 from bookwyrm-social/user-admin-deleted
Move deleted users to separate tab in admin panel
2022-07-08 09:38:27 -07:00
Mouse Reeve
65f55fe324 Fixes link to remote instance user list 2022-07-08 09:26:11 -07:00
Mouse Reeve
be86fef42d Move deleted users to a separate tab
Since there's nothing to be done with them, they get their own tab.
2022-07-08 09:21:48 -07:00
Mouse Reeve
5bb001e15f Show avatars in user admin view
I find this helpful as a rough hueristic for how engaged a user is -- if
they've never added an avatar, it's often the case that they never
really got further in to using the app than just registering a username.
Also, on one occassion, a user had an avatar that violated the instance
ToS, which would have been handy to see at a glance in this list.
2022-07-08 09:10:29 -07:00
Mouse Reeve
9df57ff163 Locale updates
Some new strings for Galician
2022-07-08 08:57:39 -07:00
Mouse Reeve
16a76dba72
Merge pull request #2197 from bookwyrm-social/admin-perms
Admin perms
2022-07-07 14:15:38 -07:00
Mouse Reeve
a972c58f3b Fixes errors in permissions 2022-07-07 14:01:51 -07:00
Mouse Reeve
948f2964ac Updates admin tests to use perms instead of superuser
Superuser overrides all perms, so this was hiding simple typo-related
bugs in the permissions system
2022-07-07 14:01:05 -07:00
Mouse Reeve
2eaffc7249
Merge pull request #2195 from bookwyrm-social/a-farcical-parade-of-errors-when-reading-multiple-editions
A farcical parade of errors when reading multiple editions
2022-07-07 12:31:56 -07:00
Mouse Reeve
742d97b177 Python formatting 2022-07-07 12:23:10 -07:00
Mouse Reeve
76c466ee45 Fixes cache invalidation for editions
Your reading status is shown across all editions of a work, so when you
change your status in relation to the edition you're currently reading,
it needs to invalidate the cached values for all editions of that work.
2022-07-07 12:21:24 -07:00
Mouse Reeve
076ba6f0ae Dramatically reduce cache duration for reading statuses
I originally set this for a very long timeout because this value should
be invalidated when it needs to be by the models, and if that worked
perfectly, this would reduce queries dramatically for books that show up
in ones feed frequently, but don't change status (for example, a book
you read and your friend is currently posting about). In practice, of
course, there are errors in invalidating this cache which leave this
value appearing extremely broken and it's next to impossible to fix.

This change makes each of the timeouts related to reading an hour, which
will still give performance benefit when browsing the site (especially
for loading the same book multiple times on a page), but resolve
naturally if the cache gets into a bad state.
2022-07-07 12:06:06 -07:00
Mouse Reeve
8e18c21460
Merge pull request #2192 from bookwyrm-social/tests
Tests for image generator file
2022-07-07 11:47:18 -07:00
Mouse Reeve
1a082b5ee8 Settings 2022-07-07 11:37:34 -07:00
Mouse Reeve
3d2752e388
Merge pull request #2193 from bookwyrm-social/locales
Updates locales
2022-07-07 11:04:18 -07:00
Mouse Reeve
ae58d2f74a Updates locales
Hella new translation strings
2022-07-07 10:48:28 -07:00
Mouse Reeve
634ed50044 Tests for image generator file
This isn't what I need to be working on right now but it bugs me
immensely that the test coverage is at 89% and not 90% and this was the
lowest hanging fruit to get more coverage. Truly a me problem.
2022-07-07 10:24:19 -07:00
Mouse Reeve
0b7c8e8dc0
Merge pull request #2082 from bookwyrm-social/notifications
Notifications refactor
2022-07-07 09:34:19 -07:00
Mouse Reeve
a5e761b134 Group accept and leave notification 2022-07-07 08:55:17 -07:00
Mouse Reeve
e032d7fd5a
Merge pull request #2190 from bookwyrm-social/forgot-password-email
Update password reset copy so as not to reveal whether the email exists
2022-07-06 20:00:24 -07:00
Mouse Reeve
fd5e513ad6 Update password reset copy so as not to reveal whether the email exists
A malicious user could use this to test which email addresses are in the
user database.
2022-07-06 19:34:00 -07:00
Mouse Reeve
cded3e973d Fixes html on notifications page 2022-07-06 19:16:14 -07:00
Mouse Reeve
26a1f75e91 Group notification types by feature 2022-07-06 19:15:48 -07:00
Mouse Reeve
6a5323c6e7 More tests for more notification types 2022-07-06 19:15:35 -07:00
Mouse Reeve
96bf99034c
Merge pull request #2189 from bookwyrm-social/extraneous_page_number
Removed incorrect and duplicate page indicator from content status
2022-07-06 16:38:09 -07:00
Mouse Reeve
060afd599d
Merge pull request #2188 from bookwyrm-social/more-tests
More tests
2022-07-06 15:31:41 -07:00
Mouse Reeve
4bb3a7e4cd Removed incorrect and duplicate page indicator from content status 2022-07-06 15:27:48 -07:00
Mouse Reeve
04f9b9180d Adds test file for utils 2022-07-06 15:07:46 -07:00