Mouse Reeve
3fe7b95786
Fixes setting remote user username on update
2021-01-04 10:42:31 -08:00
Mouse Reeve
4090b336db
Fixes outgoing test users
2021-01-04 10:20:49 -08:00
Mouse Reeve
15b9f62136
Fixes users in views tests
2021-01-04 10:08:45 -08:00
Mouse Reeve
50f61f5d19
Merge branch 'main' into validate-username
2021-01-04 09:41:17 -08:00
Mouse Reeve
34e9847da3
Still need to remove validator arg in username field
2021-01-04 09:40:23 -08:00
Mouse Reeve
d8eb3454d6
Fixes null value in status attachment array
2021-01-03 20:03:35 -08:00
Mouse Reeve
b608e36946
Filter books for discover page for privacy
2021-01-03 15:44:07 -08:00
Mouse Reeve
c0bd0736d3
Hide join button when registration is closed
2021-01-03 15:41:20 -08:00
Mouse Reeve
6668f54889
Fixes openlibrary test and navbar hover aria unfurl
2021-01-03 14:41:10 -08:00
Mouse Reeve
eec3e6c4b4
Hide top bar login form on login page
2021-01-03 14:35:28 -08:00
Mouse Reeve
7242adadaa
Hide login form for authenticated users
2021-01-03 14:31:32 -08:00
Mouse Reeve
0247f89c0b
Use recent reviews instead of most reviewed books
2021-01-03 14:28:28 -08:00
Mouse Reeve
8e923d6333
User container class in layout
2021-01-03 12:53:51 -08:00
Mouse Reeve
e3fa0afa9a
Hide large logo on mobile
2021-01-03 11:52:37 -08:00
Mouse Reeve
721d20efab
Creates snippets for discover preview boxes
2021-01-03 11:24:26 -08:00
Mouse Reeve
ef42d29bd9
Discovery landing page
2021-01-03 11:10:04 -08:00
Mouse Reeve
04eb518633
Make the top bar dropdown accessible to NVDA screenreaders
...
plus, it's just better for this to be a ul
2021-01-03 10:03:57 -08:00
Mouse Reeve
18e0347077
Merge pull request #470 from mouse-reeve/duplicate-replies-in-feed
...
Fixes replies showing up twice in feed
2021-01-03 08:32:01 -08:00
Mouse Reeve
1187016aba
Merge pull request #469 from mouse-reeve/user-search
...
Search on username and localname in user search
2021-01-03 08:31:46 -08:00
Mouse Reeve
4d4b27e844
Fixes replies showing up twice in feed
2021-01-03 08:17:00 -08:00
Mouse Reeve
e54e1f2459
Tests user search
2021-01-03 07:57:57 -08:00
Mouse Reeve
b5ce7a0c25
Search on username and localname in user search
2021-01-03 07:48:57 -08:00
Renato "Lond" Cerqueira
b389cfb013
Use user-agent to determine whether to show pure representation
...
Together with #434 and #435 , this fixes #429 . Use the user-agent to
determine if the call is coming from a BookWyrm instance or not. If it's
not, give a pure activitypub representation for the status. Otherwise,
give a BookWyrm one, to allow for a complete integration between
instances.
2021-01-03 14:24:03 +01:00
Mouse Reeve
8afd111ff4
Merge pull request #466 from mouse-reeve/search-tweaks
...
Search tweaks
2021-01-02 16:30:28 -08:00
Mouse Reeve
d3c181cacb
Re-sorts search results after deduplication
2021-01-02 16:09:54 -08:00
Mouse Reeve
a413c87963
Separate search for unique identifiers out from text search
2021-01-02 15:58:25 -08:00
Mouse Reeve
a2e8cf1993
Return best matching edition instead of default in search
2021-01-02 15:15:25 -08:00
Mouse Reeve
afa1921968
Deduplicates search results
2021-01-02 14:33:01 -08:00
Mouse Reeve
4c968c417b
cleans up search tests
2021-01-02 14:20:39 -08:00
Mouse Reeve
22f5fa154c
Add readthroughs even when a book is already shelved
2021-01-02 13:26:42 -08:00
Mouse Reeve
b2c22c5b7f
Tests handle import shelving
2021-01-02 13:09:40 -08:00
Mouse Reeve
8c8aae2c92
Check if a book is already shelved after import
2021-01-02 12:08:30 -08:00
Mouse Reeve
3344eed3b9
Tests for goodreads import lookup
2021-01-02 11:35:56 -08:00
Mouse Reeve
97b56e9bc2
Removes references to max entries in views
2021-01-02 09:45:51 -08:00
Mouse Reeve
204967e421
Adds tests file for goodreads import
2021-01-02 09:42:50 -08:00
Mouse Reeve
1f5d95e2be
Removes import limit
2021-01-02 09:42:33 -08:00
Mouse Reeve
1e7aa283c2
Patches celery calls in connector tests
2021-01-02 09:08:37 -08:00
Mouse Reeve
86060f795d
Updates tests
2021-01-02 08:55:42 -08:00
Mouse Reeve
d828b0ead9
Remove books manager at long last
2021-01-02 08:14:28 -08:00
Mouse Reeve
e169565e00
Makes expanding book data fully part of the connector
2021-01-02 07:45:45 -08:00
Mouse Reeve
fc8f43273e
Merge pull request #459 from mouse-reeve/status-model-files
...
Moves models that don't inherit Status to their own files
2021-01-01 11:23:23 -08:00
Mouse Reeve
521934b4f3
Moves models that don't inherit Status to their own files
2021-01-01 10:46:15 -08:00
Mouse Reeve
bb5ae850e1
Mention users implicitly (without needing @mentions)
2021-01-01 09:35:14 -08:00
Mouse Reeve
b3449040d9
Fixes server error posting status
2021-01-01 07:27:56 -08:00
Mouse Reeve
1246042c12
move some code around for readability
2020-12-31 16:30:04 -08:00
Mouse Reeve
c5a3e57bb4
Script for removing duplicates in book data
2020-12-31 16:03:54 -08:00
Mouse Reeve
87b8e5f39d
Merge pull request #451 from mouse-reeve/views-tests
...
Views tests
2020-12-31 14:03:34 -08:00
Mouse Reeve
2f9123c206
Add sort order to followers/following ordered collection querysets
2020-12-31 13:47:26 -08:00
Mouse Reeve
e066c53dd0
tests hella views
2020-12-31 13:45:36 -08:00
Mouse Reeve
a444c5f6fc
Fixes model deduplication from data
2020-12-31 12:22:00 -08:00
Mouse Reeve
141e7b90e8
Cleans up abstract connector tests
...
a buncha linting errors and junk we don't need in setup
2020-12-31 11:11:59 -08:00
Mouse Reeve
03ed1cfa94
Small syntax changes in openlibrary connector
2020-12-31 11:03:30 -08:00
Mouse Reeve
9afbf3196f
Cleans up paths in import model tests
2020-12-31 09:49:27 -08:00
Mouse Reeve
171d09599c
Fixes author path in openlibrary connector
2020-12-31 09:32:40 -08:00
Mouse Reeve
c1e1bdac4b
Fixes url formatting in openlibrary connector
2020-12-31 09:19:39 -08:00
Mouse Reeve
69af2f4cd3
Fixes untag
2020-12-31 08:42:09 -08:00
Mouse Reeve
a7a586ea90
Fixes tagging
2020-12-31 08:30:51 -08:00
Mouse Reeve
29ee027f6d
Tests tag page and orders tag collection json
2020-12-31 08:05:24 -08:00
Mouse Reeve
d04a1956f5
Test that editions page loads
2020-12-31 07:52:08 -08:00
Mouse Reeve
7bcf0a1d53
Fixes missing code for editions list json
2020-12-31 07:46:35 -08:00
Mouse Reeve
17b9c6ecc5
Adds label to reply textarea
2020-12-30 17:38:38 -08:00
Mouse Reeve
dc68fdd53e
User generated local paths
2020-12-30 17:36:35 -08:00
Mouse Reeve
d821a08cff
include tags in replies
...
I was against this but apparently it helps the replies actually WORK
2020-12-30 16:33:04 -08:00
Mouse Reeve
d42ebbaf4a
Link to local versions of statuses in notifications
2020-12-30 16:10:32 -08:00
Mouse Reeve
885bb023a3
Sort shelves by shelfbook updated date
2020-12-30 16:07:29 -08:00
Mouse Reeve
670036f8a9
Fixes user preview on rating display
2020-12-30 15:52:17 -08:00
Mouse Reeve
c33095dfe0
Merge pull request #442 from mouse-reeve/views-tests
...
Views tests
2020-12-30 15:51:54 -08:00
Mouse Reeve
4e413a3779
Adds tests for generating feeds
2020-12-30 14:57:57 -08:00
Mouse Reeve
48f002727a
small change and test to get_user_from_username
2020-12-30 14:57:43 -08:00
Mouse Reeve
45c13bd76c
Only get reviews when loading user data
2020-12-30 13:16:09 -08:00
Mouse Reeve
c1243b5c21
Makes outbox filter-able
2020-12-30 13:14:16 -08:00
Mouse Reeve
747167c579
Merge pull request #439 from mouse-reeve/filter-outbox
...
Updates outbox
2020-12-30 13:13:47 -08:00
Mouse Reeve
2e36da3f9e
Merge pull request #438 from mouse-reeve/accept-button-color
...
Makes follow request button a different color than an unread notification
2020-12-30 12:44:18 -08:00
Mouse Reeve
babc604397
Fixes outbox privacy
2020-12-30 12:41:19 -08:00
Mouse Reeve
88d8b6e577
Cleans up outbox function
2020-12-30 12:38:34 -08:00
Mouse Reeve
b71eda6e38
Merge pull request #434 from renatolond/activitypub/use_activitypub_content_type
...
Create a ActivitypubResponse class and use it in the views
2020-12-30 12:37:04 -08:00
Renato "Lond" Cerqueira
44a8184f72
Create a ActivitypubResponse class and use it in the views
...
This improves compatibility with other fediverse software by using the
expected content type for any api calls.
2020-12-30 21:25:28 +01:00
Mouse Reeve
877e3356e5
Merge pull request #436 from mouse-reeve/search-errors
...
Catch error response decoding json in search connector
2020-12-30 12:18:43 -08:00
Mouse Reeve
e290dec035
Merge pull request #437 from mouse-reeve/version-setting
...
Set application version number in settings
2020-12-30 12:16:47 -08:00
Mouse Reeve
8bb7a081c2
Makes follow request button a different color than an unread
...
notification
Fixes #420
2020-12-30 12:12:32 -08:00
Mouse Reeve
e0adb3307b
Gracefully handle unknown status types
...
Fixes #432
2020-12-30 12:05:20 -08:00
Mouse Reeve
5623c268d6
Set application version number in settings
2020-12-30 11:55:13 -08:00
Mouse Reeve
d3161ea361
Send appropriate error codes back with error pages
2020-12-30 11:42:07 -08:00
Mouse Reeve
490591623f
Adds test for search view
2020-12-30 11:37:49 -08:00
Mouse Reeve
e5a914c3c2
Fixes API search causing 500 error
2020-12-30 11:37:26 -08:00
Mouse Reeve
8ffb22291a
Add connector to tested fields on search result
2020-12-30 09:51:37 -08:00
Mouse Reeve
c8d031e311
Tests connector search
2020-12-30 09:48:37 -08:00
Mouse Reeve
6a8353de09
Adds test for SearchResult dataclass
...
also just cleans up the styles in the test file for linting
2020-12-30 09:26:02 -08:00
Mouse Reeve
d7db6d50ba
Log errors in conenctor search
2020-12-30 09:14:07 -08:00
Mouse Reeve
21f67c9e28
Catch error response decoding json in search connector
2020-12-30 09:11:00 -08:00
Renato "Lond" Cerqueira
fb10cb35ad
Add BookWyrm user-agent to http requests
...
This allows other software to identify BookWyrm in calls, as well as
will allow BookWyrm to differentiate between calls done from other
fediverse software and BookWyrm to answer with specific BookWyrm data.
2020-12-30 12:36:50 +01:00
Mouse Reeve
74a25f205b
Validator for username field
2020-12-28 14:14:22 -08:00
Mouse Reeve
7e987fc446
Updates unit tests for new username handling
...
still some failing tho
2020-12-27 17:21:01 -08:00
Mouse Reeve
26c0880fe4
Merge pull request #425 from mouse-reeve/import-error
...
Fixes goodreads import failing on every book
2020-12-27 14:45:31 -08:00
Mouse Reeve
ac261d7b1a
Send connector with search result
...
also fix typo in get_work_from_edition_data function
2020-12-27 14:33:34 -08:00
Anton Strömkvist
97a5364b70
Fix docstring for to_reject_activity
2020-12-27 23:31:14 +01:00
Mouse Reeve
9f74e95b00
stylistic cleanup of import model tests
2020-12-27 13:32:27 -08:00
Mouse Reeve
e89bfdc572
Makes registration user/localname fields more sensible
2020-12-24 11:39:57 -08:00
Mouse Reeve
25d72c5d1e
Save attachments on incoming statuses
2020-12-23 13:38:36 -08:00
Mouse Reeve
365408e86b
Handle reverse serialized fields with no serialized field
2020-12-23 13:33:46 -08:00
Mouse Reeve
a3df0847e1
Fixes celery tasks expanding data not setting many to many fields
2020-12-23 12:45:40 -08:00
Mouse Reeve
e7e90360b3
Adds model import
2020-12-22 10:28:04 -08:00
Mouse Reeve
c34d90051f
Merge pull request #416 from mouse-reeve/book-data-model
...
Remove sync fields and share fields between book and author
2020-12-22 10:25:12 -08:00
Mouse Reeve
9977fed007
Merge pull request #419 from mouse-reeve/close-suggested-post
...
Close suggested post
2020-12-22 10:23:23 -08:00
Mouse Reeve
7c3f2373c7
Adds noopener to link
2020-12-22 10:19:01 -08:00
Mouse Reeve
f2f2f3dd3e
Remove useless if/else on null state radio button
2020-12-22 10:12:41 -08:00
Mouse Reeve
7d1cbb7be1
Adds tests for edit author view
2020-12-22 10:10:36 -08:00
Mouse Reeve
77948f64d2
Merge branch 'main' into book-data-model
2020-12-22 09:29:32 -08:00
Mouse Reeve
6ca8728d7c
Merge pull request #418 from mouse-reeve/edit-user-view
...
Edit user view
2020-12-22 09:28:21 -08:00
Mouse Reeve
25dee8362d
Adds edit author form and stores last edited by
2020-12-22 09:26:55 -08:00
Mouse Reeve
fd2f452b46
Adds title along with alt attributes on images
2020-12-22 08:26:02 -08:00
Mouse Reeve
fdbce5d05e
Adds close button to suggested post window on mobile
2020-12-22 08:21:43 -08:00
Mouse Reeve
db281d5154
Simplifies update user view
2020-12-21 16:19:36 -08:00
Mouse Reeve
fcce1a5a36
Fixes outgoing tests
2020-12-21 15:52:06 -08:00
Mouse Reeve
e6105c6cb0
Simplify edit user function
2020-12-21 14:54:45 -08:00
Mouse Reeve
65e9afd271
Fixes user in outgoing tests
2020-12-21 14:54:27 -08:00
Mouse Reeve
98aa946519
Merge branch 'main' into outgoing-tests
2020-12-21 14:39:39 -08:00
Mouse Reeve
fa1ddf359a
create single outgoing tests file
2020-12-21 14:37:28 -08:00
Mouse Reeve
b4c60c0591
Catches exception thrown when boosting unknown statuses
2020-12-21 14:25:10 -08:00
Mouse Reeve
830aaf9d1c
Add identifier fields to author activity
2020-12-21 13:21:17 -08:00
Mouse Reeve
15c22fa6c9
Merge branch 'main' into book-data-model
2020-12-21 13:16:40 -08:00
Mouse Reeve
1fb728edbd
Merge pull request #415 from mouse-reeve/author_text
...
Generate author_text field dynamically
2020-12-21 13:09:40 -08:00
Mouse Reeve
0de479a89f
Fixes authors set in tests
2020-12-21 13:03:48 -08:00
Mouse Reeve
adfb1e696a
typo in test
2020-12-21 12:49:33 -08:00
Mouse Reeve
bc64ae0504
Fixes assigning authors in test
2020-12-21 12:49:00 -08:00
Mouse Reeve
bcb972ddf7
Merge pull request #414 from mouse-reeve/openlibrary-covers
...
Fixes openlibrary import to prefer editions with covers
2020-12-21 12:45:09 -08:00
Mouse Reeve
862f1d2580
Fixes cover unit test
2020-12-21 12:22:47 -08:00
Mouse Reeve
cfa1a1b42c
Remove sync fields and share fields between book and author
2020-12-21 12:17:18 -08:00
Mouse Reeve
aac264c998
Generate author_text field dynamically
2020-12-21 12:10:42 -08:00
Mouse Reeve
c3d0e8e7f7
Fixes openlibrary import to prefer editions with covers
2020-12-21 11:47:47 -08:00
Mouse Reeve
c4b9b82000
Use author name as a deduplication field
...
I feel iffy about this but openlibrary has hella duplicates
2020-12-20 13:31:11 -08:00
Mouse Reeve
e72c3e11dd
Fixes incoming user test
2020-12-20 12:54:30 -08:00
Mouse Reeve
79973687d5
Updates tests
2020-12-20 12:50:35 -08:00
Mouse Reeve
3597ca460c
Don't let author and book remote ids get overridden
2020-12-20 12:40:20 -08:00
Mouse Reeve
23cbeab4c1
cleans up remote version of quote status
2020-12-20 12:31:39 -08:00
Mouse Reeve
689cc65790
keep saved version of bio and description field as markdown
2020-12-20 12:24:17 -08:00
Mouse Reeve
60738011a2
user's name and bio field are optional
...
get it together, mouse
2020-12-20 12:09:19 -08:00
Mouse Reeve
7f1ac33859
Format html on book descriptions
2020-12-20 12:09:13 -08:00
Mouse Reeve
646df03d81
show books for authors who only have editions
2020-12-20 11:51:17 -08:00
Mouse Reeve
3f95f9257d
Merge pull request #411 from mouse-reeve/markdown-refinement
...
Only parse mardown on outgoing activities
2020-12-20 11:42:06 -08:00
Mouse Reeve
a6efd51bb2
Only parse mardown on outgoing activities
2020-12-20 11:38:13 -08:00
Mouse Reeve
fdb9b71030
Merge pull request #410 from mouse-reeve/atomicity
...
Change transaction atomic to avoid cascading errors
2020-12-20 11:24:37 -08:00
Mouse Reeve
592721ec76
Fixes unit tests
2020-12-19 20:26:29 -08:00
Mouse Reeve
ffa354be7c
html format links and mentions
2020-12-19 20:03:33 -08:00
Mouse Reeve
ef696782ab
Allow markdown in html fields
2020-12-19 18:54:56 -08:00
Mouse Reeve
1204679cbd
Change transaction atomic to avoid cascading errors
2020-12-19 18:34:37 -08:00
Mouse Reeve
c407015a82
Fixes tests
2020-12-19 16:33:56 -08:00
Mouse Reeve
3e61f48da2
Fixes loading more data
2020-12-19 16:16:39 -08:00
Mouse Reeve
d3671d981f
Use author activitypub in OL connector
2020-12-19 15:20:31 -08:00
Mouse Reeve
2128219b05
Use activitypub to_model de-serializer in openlibrary connector
2020-12-19 14:56:03 -08:00