Pablo Barton
d38efa9a9d
Easier to deploy by avoiding merge conflicts in production
2021-04-11 13:12:50 -04:00
Mouse Reeve
96d15d3d57
Adds merge migration
2021-04-11 10:05:36 -07:00
Mouse Reeve
77caf1a8fa
Merge branch 'main' into domain-block
2021-04-11 10:02:11 -07:00
Mouse Reeve
b552634a87
Make sure goal exists before checking perms
2021-04-11 09:58:03 -07:00
Mouse Reeve
edf3fad54d
Make sure user is available when testing blocks
2021-04-11 09:42:55 -07:00
Mouse Reeve
b6a7871b04
Makes visibility evaluator a model function
2021-04-11 09:31:18 -07:00
Mouse Reeve
26f16cf5a4
Limit broadcast with viewer-aware users
...
Removes inactive or blocked users
2021-04-11 09:09:13 -07:00
Mouse Reeve
6d76782ee1
Mocks list item remove test
2021-04-11 09:00:44 -07:00
Mouse Reeve
98ff66cd16
Don't broadcast curation rejects
2021-04-10 18:15:13 -07:00
n2no1
b293901417
add regression tests for published dates not being saved
...
closes #894
2021-04-10 20:21:29 -04:00
Mouse Reeve
675b34f5ad
Merge branch 'main' into collection-item-refacotr
2021-04-10 16:02:54 -07:00
Mouse Reeve
89d3c3e82b
Tests searching for users on blocked servers
2021-04-10 11:49:45 -07:00
Mouse Reeve
1903812b1d
Class method for checking if urls are blocked
2021-04-10 11:44:29 -07:00
Mouse Reeve
0caeb3ac33
fixes inbox tests
2021-04-10 11:18:22 -07:00
Mouse Reeve
8797b3d240
Python formatting
2021-04-10 11:07:59 -07:00
Mouse Reeve
d5fbdacc02
Adds unblock view
2021-04-10 11:06:28 -07:00
Fabien Basmaison
ec2b4e533e
Merge branch 'main' into frontend
2021-04-10 19:57:23 +02:00
Mouse Reeve
7b60626661
Updates block unit test
2021-04-10 10:51:45 -07:00
Fabien Basmaison
e016006ade
[css] Rename all classes consistently: :shamed:
...
This commit addresses https://github.com/mouse-reeve/bookwyrm/pull/883#pullrequestreview-632930445 .
2021-04-10 19:51:18 +02:00
Mouse Reeve
2741aa55be
Makes blocking it's own view
2021-04-10 10:37:28 -07:00
Mouse Reeve
81bc25b012
Fixes create test
2021-04-10 10:24:09 -07:00
Mouse Reeve
d076162aa6
Remove edit server mode
...
It just doesn't really make sense
2021-04-10 10:09:36 -07:00
Mouse Reeve
c4bca42f64
Adds test for edit view GET request
2021-04-10 09:52:11 -07:00
Mouse Reeve
cca7c9a98a
Adds merge migrations
2021-04-10 09:35:03 -07:00
Mouse Reeve
13d54871b7
Merge branch 'main' into domain-block
2021-04-10 09:26:01 -07:00
Mouse Reeve
1352d43cdc
Merge pull request #915 from tofuwabohu/adds-ssl-param
...
Adds SSL parameter
2021-04-10 09:22:04 -07:00
Fabien Basmaison
37e48988b1
Don’t use linebreak in DTL block comments. (might break the linter on the length of line)
2021-04-10 00:07:01 +02:00
Fabien Basmaison
4c4801e2da
Add structured data to Book ( #84 ).
2021-04-09 23:57:49 +02:00
tofuwabohu
a52729daae
adds SSL params
2021-04-09 13:28:58 +02:00
Fabien Basmaison
4bfae00e3c
Merge branch 'main' into frontend
2021-04-09 07:51:32 +02:00
Mouse Reeve
14b0b978a3
Updates shelf models tests
2021-04-08 20:58:15 -07:00
Mouse Reeve
c149003d89
Fixes fields on unknown boost test
2021-04-08 20:34:22 -07:00
Mouse Reeve
af6cab2e3f
Don't reutnr an error when discarding activity objects
2021-04-08 20:03:29 -07:00
D Anzorge
5cbf7bbc71
Ensure EMAIL_USE_TLS is read as a bool
2021-04-09 04:53:18 +02:00
Mouse Reeve
e339581ade
Merge pull request #913 from mouse-reeve/edit-book-date-error
...
Fixes edit book form throwing error on empty dates
2021-04-08 16:54:27 -07:00
Mouse Reeve
27664e323a
Fixes edit book form throwing error on empty dates
2021-04-08 16:08:35 -07:00
Mouse Reeve
37aacee9c6
Fixes actors in inbox add/remove tests
2021-04-08 15:50:21 -07:00
Mouse Reeve
32bf510755
Updates inbox remove tests
2021-04-08 15:46:06 -07:00
Mouse Reeve
6310532ddf
Updates inbox add tests
2021-04-08 15:43:19 -07:00
Mouse Reeve
ddd05a68cf
Resolve and assign target collection for collection items
2021-04-08 15:40:02 -07:00
Mouse Reeve
a7375c4c13
Adds remove list item test and updates add/create tests
2021-04-08 15:24:23 -07:00
Mouse Reeve
24685187e8
Updates collection item add/remove handlers
2021-04-08 15:22:06 -07:00
Mouse Reeve
43f0d4e603
Adds activity tests to shelf views tests
2021-04-08 15:21:22 -07:00
Mouse Reeve
ee6f37d7d2
python formatting
2021-04-08 15:11:16 -07:00
Mouse Reeve
b1491c2ac6
Adds privacy and recipient details to list items
2021-04-08 15:09:56 -07:00
Mouse Reeve
1f930ba821
Updates list view tests
2021-04-08 14:51:52 -07:00
Mouse Reeve
e550f8cde6
Fixes list item fields and broadcast updates
2021-04-08 14:47:38 -07:00
Mouse Reeve
af58455ae9
Updates mock paradigm in lists tests
2021-04-08 14:20:16 -07:00
Mouse Reeve
31077a9790
Update ordered collection classes to use CollectionItem
2021-04-08 14:17:29 -07:00
Mouse Reeve
98161b9041
Use CollectionItem objects
2021-04-08 14:16:34 -07:00
Mouse Reeve
6617cede37
Loudly throw errors in inbox task
2021-04-08 14:15:58 -07:00
Mouse Reeve
45926eed34
Adds necessary user to inbox tests
2021-04-08 13:33:24 -07:00
Mouse Reeve
94764160cc
Whitespace fixes
2021-04-08 12:15:47 -07:00
Mouse Reeve
9894b777b6
Separates inbox tests into multiple files
2021-04-08 12:12:18 -07:00
Mouse Reeve
0de1b8d0c3
Case insensitive remote user search
2021-04-08 09:59:21 -07:00
Mouse Reeve
779377bd0c
Makes localname case insensitive
2021-04-08 09:00:32 -07:00
Fabien Basmaison
b92ff9752d
[assets] Remove UI and behaviours for interactions:
...
This commit addresses https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609739553 .
2021-04-08 17:37:29 +02:00
Fabien Basmaison
2f90b4ce66
[assets] Fix broken actions for focus and checkbox:
...
This commit should address the following two comments:
- https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609172258
- https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609174513
2021-04-08 11:37:14 +02:00
Fabien Basmaison
83bd417878
[assets] Update interactions code:
...
This commit should address https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609381969 .
- Disable the button being used to submit the form.
- Rename variables based on @mouse-reeve’s explanations. Thanks! ✨
2021-04-08 11:08:13 +02:00
Fabien Basmaison
ad3e91db7d
Merge branch 'main' into frontend
2021-04-08 09:53:01 +02:00
Mouse Reeve
89af144105
Avoid showing "None" for title and subtitle fields
2021-04-07 18:38:26 -07:00
Mouse Reeve
9658123dd7
Merge pull request #893 from void-witch/fix-date
...
fix the book edit confirmation template dropping initial data for dates
2021-04-07 18:36:15 -07:00
Mouse Reeve
ddba61f138
Block all/unblock all users on server block
2021-04-07 16:50:12 -07:00
Mouse Reeve
839ac061b7
Show notes
2021-04-07 13:21:46 -07:00
Mouse Reeve
8556474537
Add and edit servers
2021-04-07 13:17:51 -07:00
Mouse Reeve
ddab9af564
Functional add server form
2021-04-07 13:06:29 -07:00
Mouse Reeve
d383e8a61e
Cleans up add server form
2021-04-07 12:13:34 -07:00
Mouse Reeve
74549956c2
Adds edit server form
2021-04-07 11:52:13 -07:00
Mouse Reeve
8261fbf86a
Updates federated server model with notes field
...
Also makes it more editable, and changes the status types
2021-04-07 11:28:31 -07:00
Mouse Reeve
e3e28973f1
Adds merge migration
2021-04-07 11:24:09 -07:00
Mouse Reeve
4e0225749d
Merge branch 'main' into domain-block
2021-04-07 11:23:15 -07:00
Mouse Reeve
5d45b01f05
Merge pull request #906 from mouse-reeve/isbn-search-resiliency
...
Handle arbitrary errors in isbn search
2021-04-07 11:18:51 -07:00
Mouse Reeve
2c5f62e6cd
Merge pull request #905 from mouse-reeve/shelve-action-serialization
...
Safer serialization of shelve and un-shelve activities
2021-04-07 11:18:39 -07:00
n2no1
ac86c194d4
move from strptime to dateutil for parsing date inputs
2021-04-07 14:11:13 -04:00
Mouse Reeve
897082d491
Merge pull request #903 from mouse-reeve/following-field
...
Adds following field to actor serialization
2021-04-07 11:09:11 -07:00
Mouse Reeve
5427790c4e
Safer serialization of shelve and unshelve activities
2021-04-07 11:02:56 -07:00
Mouse Reeve
954958b6f9
Handle arbitrary errors in isbn search
2021-04-07 10:54:00 -07:00
Mouse Reeve
e61a104bcf
Merge pull request #904 from mouse-reeve/missing-migration
...
Adds missing migration for #898
2021-04-07 10:49:38 -07:00
Mouse Reeve
0b96713341
Merge pull request #900 from mouse-reeve/search-webfinger-error
...
Gracefully handle errors in webfinger during search
2021-04-07 10:35:39 -07:00
Mouse Reeve
7c5f078682
Adds missing migration for #898
2021-04-07 10:33:56 -07:00
Mouse Reeve
ef12b077dd
Adds following field to actor serialization
2021-04-07 10:32:16 -07:00
Mouse Reeve
e3d01c6736
Gracefully handle errors in webfinger during search
2021-04-07 09:17:04 -07:00
Fabien Basmaison
be0cabc415
[css] Improve quotes.
2021-04-07 18:07:32 +02:00
Mouse Reeve
63d37c281d
Handle invalid authors when importing books
2021-04-07 08:59:33 -07:00
Mouse Reeve
45006afdf3
Remove character limit on some book fields
2021-04-07 08:50:50 -07:00
Fabien Basmaison
2a0924027b
[css] Use more visible comments to split blocks.
2021-04-07 17:33:28 +02:00
Fabien Basmaison
f77088b964
[assets] Remove redundant class already provided by bulma:
...
Replace all classes `hidden` with `is-hidden` in templates, CSS and JS.
2021-04-07 17:31:00 +02:00
Mouse Reeve
f11d64f984
Handle all connector errors in search
2021-04-07 08:09:47 -07:00
Fabien Basmaison
f2a2b410a1
[assets] Add comment to mention replacing font icons with SVG.
2021-04-07 10:49:52 +02:00
Fabien Basmaison
54805afb51
[assets] Tweak JSDoc.
2021-04-07 10:37:11 +02:00
Fabien Basmaison
fb45df0f99
Merge branch 'main' into frontend
2021-04-07 09:25:40 +02:00
Fabien Basmaison
5d569e8926
[assets] Only update status if the promise is successful:
...
- Use promises in `ajaxPost` and `interact`.
- Add some animations in CSS.
2021-04-07 09:24:34 +02:00
Fabien Basmaison
1c05107f2b
[assets] Tweak comments.
2021-04-07 07:53:30 +02:00
n2no1
31146b00e4
import MultiValueDictKeyError to catch with formcopy
2021-04-06 21:40:15 -04:00
n2no1
51e16fba97
run black, add a try/catch around the formcopy fix
2021-04-06 21:01:57 -04:00
n2no1
0941c50c69
ensure that the book edit confirmation receives initial date data as a datetime
2021-04-06 20:46:18 -04:00
n2no1
502f29082c
check the form for initial date values if the book has none
2021-04-06 19:57:57 -04:00
tofuwabohu
1f99710dcd
Links to own user in menu
2021-04-06 22:36:24 +02:00
Fabien Basmaison
44040201f9
[assets] Move interact function.
2021-04-06 17:57:39 +02:00
Fabien Basmaison
9d95f54aa2
[assets] Refactor toggleAction
and toggleMenu
a bit.
2021-04-06 17:48:56 +02:00
Mouse Reeve
b96a092e71
Merge pull request #879 from mouse-reeve/redis-stores
...
Created generic redis class for activitystreams
2021-04-06 08:27:21 -07:00
Mouse Reeve
fd66ff1861
Small tweaks to commends and super() calls
2021-04-06 07:53:34 -07:00
Fabien Basmaison
a21f954fb1
Remove redundant class
attribute and format template.
2021-04-06 16:29:58 +02:00
Fabien Basmaison
52d2f0e331
[assets] Document functions and variables:
...
- Use expressive names for variables.
- Add docblocks for each function.
- Add ESLint rules for comments.
2021-04-06 16:17:20 +02:00
Fabien Basmaison
5d3d00f694
[assets] Use dataset
+ use expressive names for some variables.
2021-04-06 15:36:34 +02:00
Fabien Basmaison
62fe2ef600
[assets] Replace inline events with addEventListener
; this breaks sliding menu.
2021-04-06 11:37:23 +02:00
Fabien Basmaison
7e49b3cb26
[assets] Simplify addRemoveClass function.
2021-04-06 11:19:44 +02:00
Fabien Basmaison
70c652d565
[assets] Add rules to ESLint:
...
- Fix long line.
- Enforce a few stylistic habits:
- Avoid some potential dangerous constructs.
- `arrow-spacing`: Use at least one space around arrows.
- `keyword-spacing`: Use at least one space around keywords (if, else, for…).
- `no-multiple-empty-lines`: Only use one empty line between code.
- `no-var`: Use `let` or `const` instead of `var`:
- `padded-blocks`: Do not pad blocks.
- `padding-line-between-statements`: Use empty lines between some statements.
- `space-before-blocks`: Use at least one space before the opening brace of a block.
2021-04-06 10:42:52 +02:00
Fabien Basmaison
991d897ac7
[assets] Listen to events as soon as possible.
2021-04-06 09:57:52 +02:00
Fabien Basmaison
2f2f7db086
[assets] Use classes for JS files:
...
- Classes strictly parse code implicitly.
- Fix previously updated code.
2021-04-06 09:44:59 +02:00
Fabien Basmaison
f430363be0
[assets] Simplify a function expression.
2021-04-06 09:11:56 +02:00
Fabien Basmaison
f6c3e581b9
[assets] Replace Array.from(document.getElementsByClassName(…))
by querySelectorAll(…)
.
2021-04-06 09:11:27 +02:00
Fabien Basmaison
6b0a3ce4b1
[assets] Move localStorage chunks of code to their own file:
...
This should prevent a sync issue with updateDisplay not always being loaded on time.
2021-04-06 09:06:51 +02:00
Mouse Reeve
a39cd670ef
Fixes boosted remote statuses coming in as Notes
2021-04-05 18:05:06 -07:00
Mouse Reeve
2e245f84be
Adds test for loading remote boosted statuses
2021-04-05 18:02:24 -07:00
Mouse Reeve
fb72db7507
Fixes federation view tests
2021-04-05 16:50:36 -07:00
Mouse Reeve
a4b892dfad
Fixes domain block tests
2021-04-05 16:47:48 -07:00
Mouse Reeve
34b790a086
Adds tests for blocked server checks
2021-04-05 15:54:33 -07:00
Mouse Reeve
194fcb8055
Adds migration for federated server table statuses
2021-04-05 15:54:20 -07:00
Mouse Reeve
ad543f46c1
Adds block and unblock functionality
2021-04-05 15:38:32 -07:00
Mouse Reeve
e4fe47b538
Default blocks in initdb
2021-04-05 15:26:53 -07:00
Mouse Reeve
1901f7e6cb
Check if incoming domains are blocked
2021-04-05 15:16:41 -07:00
Mouse Reeve
6a3c01a67f
stream_users function has been renamed
2021-04-05 14:17:45 -07:00
Mouse Reeve
56330d448b
Changes remove status redis mock
2021-04-05 14:08:24 -07:00
Mouse Reeve
04b9704187
typo fix
2021-04-05 13:13:56 -07:00
Mouse Reeve
cd56abcb08
Maintain signal names
2021-04-05 12:11:49 -07:00
Mouse Reeve
0bbaf0a562
Python formatting
2021-04-05 11:10:26 -07:00
Mouse Reeve
e61ed73894
Merge pull request #875 from arkhi/locales
...
[l10n] Add and update i18n strings for French
2021-04-05 11:10:01 -07:00
Mouse Reeve
bd8858830a
Created generic redis class for activitstreams
2021-04-05 11:05:37 -07:00
Mouse Reeve
04f459a2df
Fixes creting invites
2021-04-05 10:17:01 -07:00
Fabien Basmaison
964b47ea97
[assets] Fix path for icomoon font.
2021-04-05 16:46:30 +02:00
Fabien Basmaison
cbed5e331b
[assets] Move some frontend assets to _vendor_ directories:
...
This simplifies linting of files we have no grasp on, and clarifies responsibilities.
- Add .eslintignore.
- Restrict linting to bookwyrm/static.
2021-04-05 16:17:11 +02:00
Fabien Basmaison
5aea7343b4
[assets] Rename some files for consistency.
2021-04-05 16:16:48 +02:00
Fabien Basmaison
6971c9b133
[assets] Move toggleAllCheckboxes code to its own file.
2021-04-05 16:16:05 +02:00
Fabien Basmaison
125915f1b3
[l10n] Add missing i18n string to template.
2021-04-05 12:53:20 +02:00
Fabien Basmaison
5d3f00a537
[l10n] Add and update i18n strings for French:
...
- Fix typo in English.
- Add translations for missing strings.
- Update translations for fuzzy strings.
2021-04-05 12:46:34 +02:00
Mouse Reeve
d25c68f887
Restores stream length settings
2021-04-04 21:01:52 -07:00
Mouse Reeve
940e841502
Fixes trimming streams
2021-04-04 20:57:30 -07:00
Pablo Barton
593e435816
772 Use gettext_lazy for form classes
2021-04-04 16:22:36 -04:00
Mouse Reeve
ea837a3879
Merge pull request #864 from mouse-reeve/delete-and-redraft
...
Delete and redraft
2021-04-04 11:00:09 -07:00
Mouse Reeve
abd6a78295
Merge pull request #862 from mouse-reeve/disabled-link
...
Valid html solution to disabling pagination links
2021-04-04 10:59:22 -07:00
Mouse Reeve
b6aa36960c
Separates button grouping from td element
2021-04-04 10:38:40 -07:00
Mouse Reeve
03ba01a790
Expands filtering and sorting on invite requests page
2021-04-04 10:36:28 -07:00
Mouse Reeve
467748e2c8
Adds delete and redraft tests
2021-04-04 09:45:25 -07:00
Mouse Reeve
ff3631cbe3
Python formatting
2021-04-04 09:24:17 -07:00
Mouse Reeve
be8c3b7904
Handles delete and redraft replies
2021-04-04 09:18:52 -07:00
Mouse Reeve
936d68f0ed
Don't allow delete and redraft of ratings
2021-04-04 09:08:44 -07:00
Mouse Reeve
521f917d01
Pass existing rating to stars form element as variable
2021-04-04 09:05:21 -07:00
Mouse Reeve
4c2f1db6a6
Merge branch 'main' into delete-and-redraft
2021-04-04 09:05:12 -07:00
Mouse Reeve
ecf489b0bd
Merge pull request #863 from mouse-reeve/edit-book-field-types
...
Uses date input type for publication date fields
2021-04-04 08:50:46 -07:00