Commit graph

1342 commits

Author SHA1 Message Date
Joachim 00c2930290 Black 2022-12-17 17:56:28 +01:00
Joachim cd940e2c40 Add tests for remove_user_preview_image_task 2022-12-17 17:49:39 +01:00
Joachim 8c34b23c35 Disable preview images generation for remote users 2022-12-17 11:39:10 +01:00
Mouse Reeve 7ff654720c updates tests 2022-12-16 14:45:32 -08:00
Mouse Reeve 89478ac87e
Merge pull request #2491 from chdorner/register-tz-support
Detect preferred timezone via JavaScript on register
2022-12-11 14:49:29 -08:00
Christof Dorner 13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
Mouse Reeve bb5564461c
Merge pull request #2398 from bookwyrm-social/html-in-activitypub
Render markdown to html when using activitypub
2022-12-11 13:43:36 -08:00
Mouse Reeve a6604c197d Updates tests 2022-12-11 13:19:26 -08:00
Mouse Reeve 58e8c0b5ec Merge branch 'main' into admin-roles 2022-12-11 11:58:54 -08:00
Mouse Reeve 734fb5ad34
Merge pull request #2489 from chdorner/user-reviews-comments-tab
Add new user tab listing only reviews and comments
2022-12-11 11:53:31 -08:00
Mouse Reeve c314c9b5e3
Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
2022-12-11 11:37:09 -08:00
Mouse Reeve a25a5b1032 Updates expected number of groups in tests 2022-12-11 11:35:48 -08:00
Jascha Urbach ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Christof Dorner fbd8e22b97 Add new user tab listing only reviews and comments 2022-12-11 20:24:00 +01:00
Mouse Reeve b4ddf281b5 Trying to fix an unreliable unit test regex 2022-12-11 11:13:16 -08:00
Mouse Reeve bffde6703c
Merge branch 'main' into html-in-activitypub 2022-12-05 17:46:31 -08:00
Mouse Reeve 97358da503
Merge pull request #2452 from indutny/fix/gh-2451
Fix serialization of JSON-LD subarrays
2022-12-05 09:53:27 -08:00
Fedor Indutny cdc833657f Fix serialization of JSON-LD subarrays
Properties like "tag" could be lists containing multiple subclasses of
ActivityObject. Make sure to serialize them recursively instead of
outputting them as they are, because otherwise we could get a bunch of
nulls in the resulting JSON and that wouldn't necessarily be a valid
JSON-LD object.

Fix: #2451
2022-12-04 18:12:39 -08:00
Mouse Reeve 26a05d2182 Adds tests for impressum page 2022-12-04 13:13:05 -08:00
Mouse Reeve 5172f67c35
Merge pull request #2450 from bookwyrm-social/impressum
Adds database fields for legal page/impressum
2022-12-04 12:12:26 -08:00
Mouse Reeve b7b7b2680e Fixes unit test 2022-12-04 11:44:42 -08:00
Rick Osborne 862260294a
StoryGraph import ISBN tweak
Looks like SG updated their CSV headers just a little, so that the importer
hadn't been picking up the ISBN.
2022-12-02 19:16:22 -08:00
Mouse Reeve 81ab08aaa3 Fixes editing links 2022-11-25 08:28:45 -08:00
Mouse Reeve dd83e32f32 Fixes unit test 2022-11-23 22:00:34 -08:00
Mouse Reeve 46b663b139 Rename new user to avoid duplication 2022-11-17 15:10:11 -08:00
Mouse Reeve 34f05c135b Adds unit tests for list of admins method 2022-11-17 14:59:46 -08:00
Mouse Reeve 2d3ec93086 Updates unit tests 2022-11-17 14:06:43 -08:00
Mouse Reeve f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
Mouse Reeve 317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
Mouse Reeve ddcaf8e3b8 Use asyncio for broadcasting 2022-11-10 15:41:56 -08:00
Mouse Reeve 49d0590599 Another tweak to how import wait times are calculated 2022-11-10 13:59:27 -08:00
Mouse Reeve eae1866992
Allow users to temporarily deactivate their accounts (#2324) 2022-11-10 13:40:54 -08:00
Mouse Reeve bbdba9e793 Python formatting 2022-11-10 13:13:53 -08:00
Mouse Reeve 8f2de48b0a Comments out unrelated test block 2022-11-10 13:05:42 -08:00
Mouse Reeve f80e2465ed Adds tests for recent import average time 2022-11-10 12:29:36 -08:00
Mouse Reeve b64f0511a5 Another mock 2022-11-07 10:07:37 -08:00
Mouse Reeve 141d3aa813 Updates mocks in tests 2022-11-07 09:50:05 -08:00
Mouse Reeve 6e748c5476 Typo fix 2022-11-05 18:16:59 -07:00
Mouse Reeve 14e61fa32d Adds extremely basic tests file 2022-11-03 10:55:21 -07:00
Mouse Reeve 0ba4dbbc6f Fixes pagination and user links on import admin 2022-11-03 10:54:59 -07:00
Mouse Reeve 881d5682e3 Updates test mock 2022-11-01 18:20:56 -07:00
Hugh Rundle 905aa66f38 add test_post_login_with_2fa 2022-10-15 07:47:20 +11:00
Hugh Rundle f55adbadf4 fix 2fa tests 2022-10-15 07:47:20 +11:00
Hugh Rundle 119b4bf2ff clean up tests
- remove unnecessary crap
- add missing tests
2022-10-15 07:47:20 +11:00
Hugh Rundle 9d36722783 code formatting 2022-10-15 07:47:20 +11:00
Hugh Rundle b63d4bec60 add tests for 2fa 2022-10-15 07:47:20 +11:00
Mouse Reeve 74b89b2d4a That test didn't work 2022-10-04 12:09:05 -07:00
Mouse Reeve 5b5e15d48b Just adds a couple tests 2022-10-04 11:40:01 -07:00
Mouse Reeve 3a73ced5fa Adds a couple tests to annual review views
Also I tweaked the save functions so they don't broadcast
2022-09-19 14:38:30 -07:00
Mouse Reeve fdc477afdf
Merge pull request #2258 from bookwyrm-social/form-perms
Check permissions automatically on form save
2022-09-19 13:32:41 -07:00