Commit graph

8840 commits

Author SHA1 Message Date
Adeodato Simó
1937177e1a
dev-tools: use apt source for Node instead of setup script
Extra bits:

  - use a single RUN instruction
  - silence upgrade notices from pip and npm
2023-10-17 02:26:22 -03:00
Adeodato Simó
3251ef0bf5
Fix creation of covers for ActivityPub imports
`cover` comes as a JSON dict, but the code was looking for URL as
an attribute.

(This commit leaves the attribute access in place, just in case
`cover` is updated to serialize as Document proper.)
2023-10-16 17:43:04 -03:00
Adeodato Simó
8afcb9b6d3
Fix tests warning: ImportJob.updated_date received a naive datetime 2023-10-15 22:03:45 -03:00
Adeodato Simó
c02306a66b
Default to Jan 1st too on incomplete dates received from ActivityPub 2023-10-15 19:59:51 -03:00
Adeodato Simó
c066d11eb1
Bugfix: default missing date components to 1, not today's
Fixes: #2660.
2023-10-15 19:49:00 -03:00
Adeodato Simó
8f0f3e6ace
ImportItem: preserve parsed timezones in date_started, date_read
This is a follow-up to b564e514f ("Handle parsed dates that already
have a timezone on import"), which was applied to `date_added` only.

(Appart from consistency, this will allow to apply future parsing fixes
more easily.)
2023-10-15 19:48:02 -03:00
Hugh Rundle
6667178703
Merge pull request #2981 from rg-wood/installable-pwa
Add: installable as PWA
Resolves #2558
2023-10-15 09:06:24 +11:00
Hugh Rundle
c946e7dd82
Merge branch 'main' into installable-pwa 2023-10-15 08:42:17 +11:00
Jascha Urbach
0f79aea36f
introduce .prettierrc
With this pullrequest I introduce .prettierrc with one rule:
'trailingComma': 'none'
2023-10-14 17:52:58 +02:00
Jascha Ezra Urbach
66f62566d6
Merge pull request #3033 from bookwyrm-social/fix-eslint-warning
Fix eslint warning
2023-10-14 17:22:30 +02:00
Jascha Urbach
97adf2f7fd
I changed my own comments to get rid of this warning which I could have better written in the first place. 2023-10-14 17:21:15 +02:00
Jascha Ezra Urbach
0452e8698d
Merge branch 'main' into installable-pwa 2023-10-14 13:57:59 +02:00
Jascha Ezra Urbach
16b7db4639
Merge pull request #3022 from dato/drop_duplicate_isfdb_link
Drop duplicate author link to ISFDB
2023-10-14 13:57:08 +02:00
Jascha Ezra Urbach
d7ba0e3a8a
Merge pull request #3023 from dato/series_name_urlencode
URL-encode book series name when linking to it
2023-10-14 13:56:38 +02:00
Adeodato Simó
17d741039c
Remove duplicate test
(Test case already part of test_format_links_simple_url.)
2023-10-09 21:37:39 -03:00
Adeodato Simó
0043329cc1
Simplify literals in _wrapped 2023-10-09 21:09:52 -03:00
Adeodato Simó
c3c22022f6
Check for punctuation before checking for wrapping parenthesis
This allows to parse `(URL).` correctly, which was not detected
as URL before.
2023-10-09 21:09:51 -03:00
Adeodato Simó
1778c56be0
URL-encode book series name when linking to it
Closes: #3021.
2023-10-09 04:24:05 -03:00
Adeodato Simó
55eb81dbf9
Drop duplicate author link to ISFDB
Closes: #3018.
2023-10-09 01:16:32 -03:00
R.G. Wood
a7e427efc2
Merge branch 'main' into installable-pwa 2023-10-07 13:34:35 +01:00
R.G. Wood
1798abfc3e
Display site name and description for PWA manifest 2023-10-07 13:32:49 +01:00
R.G. Wood
34d5c557d8
Fix syntax styling 2023-10-07 13:32:18 +01:00
Mouse Reeve
3d123bc2f2
Merge pull request #3017 from bookwyrm-social/dependabot/pip/pillow-10.0.1
Bump pillow from 9.4.0 to 10.0.1
2023-10-04 19:00:21 -07:00
dependabot[bot]
7cae5879c8
Bump pillow from 9.4.0 to 10.0.1
Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.4.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.4.0...10.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 01:09:41 +00:00
Mouse Reeve
bcfd4d2efa
Merge pull request #3016 from bookwyrm-social/release-changes
Updates locales and version number for release
2023-10-02 10:22:05 -07:00
Mouse Reeve
e4ba09178f
Merge pull request #2949 from bookwyrm-social/user-search
Allow searching for local users when logged out
2023-10-02 10:21:08 -07:00
Mouse Reeve
703a56940c
Merge pull request #2953 from phildini/add-spanish-articles
Add spanish articles
2023-10-02 10:20:51 -07:00
Mouse Reeve
3deddf6355
Merge pull request #2912 from categulario/fix-form-labels
fix ids of labels in invite request form in admin
2023-10-02 10:04:34 -07:00
Mouse Reeve
b3bfcf8665 Updates test for new logic 2023-10-02 10:02:42 -07:00
Mouse Reeve
458b258ad5
Merge pull request #3007 from hughrun/signed-get
create instance user on instance creation
2023-10-02 09:52:59 -07:00
Mouse Reeve
fcfe34f2f6 Updates locales and version number for release 2023-10-02 09:42:22 -07:00
Hugh Rundle
e34fe9a059
Merge pull request #2917 from jderuiter/mypy-utils
Type annotations for utils
2023-10-01 10:29:52 +11:00
Joeri de Ruiter
d4088ac854
Merge branch 'main' into mypy-utils 2023-09-28 09:43:40 +02:00
Mouse Reeve
33e179e44b
Merge pull request #3010 from bookwyrm-social/locales
Updates locales
2023-09-27 16:52:36 -07:00
Mouse Reeve
2a08170fb5 Updates locales 2023-09-26 18:14:24 -07:00
Hugh Rundle
088b9ab555
Merge branch 'main' into move 2023-09-26 08:10:18 +10:00
Hugh Rundle
3e38fecd55
id_to_username cleanup 2023-09-26 07:45:45 +10:00
Adeodato Simó
7cfdf235bc
Include author in cover image alt text 2023-09-25 16:03:16 -03:00
Adeodato Simó
80a1180090
Include author name when serializing Quotation 2023-09-25 16:03:16 -03:00
Hugh Rundle
b05f2e99e8
undo moves
also cleans up some templates
2023-09-25 22:05:43 +10:00
Hugh Rundle
4fd5e2094a
hopefully fix template 2023-09-25 16:35:02 +10:00
Hugh Rundle
9547edf845
oops close div 2023-09-25 16:21:19 +10:00
Hugh Rundle
d67903fd4b
fix tests and templates 2023-09-25 15:49:25 +10:00
Hugh Rundle
01a56540d0
cleanup 2023-09-25 15:29:01 +10:00
Hugh Rundle
c95f160216
fix MoveUser errors and clean up
- minor template fixes
- notification logic fixes
- don't dedupe on moved_to or also_known_as
- add migration
2023-09-25 15:14:21 +10:00
Hugh Rundle
fe4bc28f37
fix tests 2023-09-24 15:58:52 +10:00
Hugh Rundle
b69031c01a
formatting 2023-09-24 12:31:01 +10:00
Mouse Reeve
bab28a8fc9
Merge pull request #3000 from dato/position_serialization
Minor improvements to Quotation pure content
2023-09-23 17:47:27 -07:00
Adeodato Simó
ec2c5cb546
Only use first publish date if publisher is unknown 2023-09-23 18:23:15 -03:00
Adeodato Simó
2c968e94cb
Fallback to first published date if published date not present 2023-09-23 18:22:02 -03:00