Christof Dorner
ba0fcccfc5
Link hashtags in status content
2023-03-07 12:55:36 +01:00
Christof Dorner
c68304a99b
Parse hashtags and store them in CreateStatus view
2023-03-07 12:55:36 +01:00
Mouse Reeve
c402433587
Merge pull request #2683 from bookwyrm-social/resolve-local-tasks-synchronously
...
Attempt to complete inbox requests synchronously
2023-03-06 19:20:16 -08:00
Chris Moultrie
f8e60f4a89
Enable Azure BlobStorage as an alternative to AWS S3
...
This adds a new storage backend for Azure BlobStorage, I'm running this patch in Azure Kubernetes
hosting all my assets in Azure BlobStorage and it's been stable enough I thought I should commit
this back upstream.
2023-03-05 12:08:16 -05:00
André Jaenisch
9c92ba1698
Add attributes to images to hint async load
...
This was suggested on Matrix a while ago but I only found the time now to move forward with it.
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2023-03-01 14:14:42 +01:00
Hugh Rundle
bba0d09fa4
Merge branch 'main' into totp-window
2023-02-27 18:21:39 +11:00
Hugh Rundle
3a67727a9a
Merge pull request #2638 from Giebisch/page-range
...
Page Range
2023-02-27 17:39:42 +11:00
Christof Dorner
d1110630db
Use chronological pagination on user profile activity lists
2023-02-26 11:24:00 +01:00
Mouse Reeve
99fc2b7a36
Only use chronological pagination sometimes
...
The timeline uses chronological buttons, but other paginated pages do
not (by default). This also reversed the chronology.
2023-02-25 15:56:58 -08:00
wanjiku
b4e388a975
Replace Next and Previous with Older and Newer
2023-02-24 11:11:55 +03:00
Giebisch
43fe433133
Quotation same start and endposition
2023-02-23 18:40:20 +01:00
Mouse Reeve
268946a77c
Adds missing template and migration files
2023-02-22 10:46:01 -08:00
Mouse Reeve
2470a0fd1c
Create notifications for link domains that need approval
2023-02-22 10:20:07 -08:00
Mouse Reeve
46fe65c3bb
Merge branch 'main' into discover-page-test
2023-02-22 09:19:20 -08:00
Mouse Reeve
fad8e8bdb8
Merge pull request #2687 from chdorner/configurable-csp
...
Add config variable for additional CSP hosts
2023-02-22 08:57:56 -08:00
Mouse Reeve
d57ebe43af
Merge pull request #2688 from 0x29a/fix-discovery-page
...
fix: missing expand variable
2023-02-22 08:53:36 -08:00
Mouse Reeve
0a07607240
Improves discover page test so it catches errors
...
Without `select_subclasses` in the mock, it wasn't actually collecting
any statuses to display, so errors on that view weren't caught in this
test.
2023-02-22 08:43:13 -08:00
0x29a
9b94c1c288
fix: missing expand variable
2023-02-22 17:25:11 +01:00
Mouse Reeve
d2e590a3c2
Merge pull request #2685 from bookwyrm-social/broadcast-queue
...
Use a separate queue for broadcasts
2023-02-22 08:20:33 -08:00
Christof Dorner
3814cb5b58
Add config variable for additional CSP hosts
2023-02-21 22:02:52 +01:00
Mouse Reeve
b167364c5c
Use a separate queue for broadcasts
...
I think this will go a long way to solve the federation delay problems
we're seeing on b.s. I'm not sure at what point adding more queues will
create more problems than it solves, but I do think in this case the
queues are out of balance and moving broadcasts (which are the most
common type of `medium_priority` task at the moment) to their own queue
will be an improvement.
2023-02-20 12:58:41 -08:00
Martynas Sklizmantas
2093c4760b
increasing rsa key size
2023-02-20 21:51:50 +01:00
Mouse Reeve
216be2aeea
Fixes pylint complaints
...
"fixes" as in silences, sorry
2023-02-20 12:24:53 -08:00
Mouse Reeve
12ed0f46f3
Fixes mocks for tests
2023-02-20 12:23:18 -08:00
Mouse Reeve
0211dee0ff
Avoid unnecessary errors when a remote re-sends an Accept
2023-02-20 11:09:42 -08:00
Mouse Reeve
779d2b0694
Attempt to complete inbox requests synchronously
...
When an inbox activity comes in from another fediverse instance, the
behavior prior to this commit was always to immediately give a 200
response to the external server and then create a celery activity
(usually in the MEDIUM_PRIORITY queue) to complete it.
Instead, this would receive a request and try to complete it without
making any http requests (which would make the request take too long to
process). If an external request is required to complete the activity, a
task is created and added to the queue.
Ideally, this will cause some tasks to happen very promptly, and reduce
the load on celery, which would help queued tasks happen more quickly as
well.
One downside is that this will make completing http requests from
external servers slowing (since it's doing a bunch of thinking before
responding).
2023-02-20 11:05:18 -08:00
Mouse Reeve
db207065ce
Update version number
2023-02-20 09:15:38 -08:00
Christof Dorner
dc5b797796
Fix SiteSettings.default_user_auth_group
FK on_delete value
...
The migration uses `RESTRICT` instead of `PROTECT`, which is both more
correct, but also those values need to be identical, otherwise Django
thinks that there's a migration missing and will refuse to apply any
new migrations.
2023-02-18 19:33:25 +01:00
Chris Young
d123cc6b0c
Add default values if not in .env
2023-02-17 11:36:21 +00:00
Chris Young
9460553086
Read TOTP variables from .env
2023-02-17 09:40:31 +00:00
Hugh Rundle
702c79496b
Merge pull request #2652 from chdorner/fix/status-get-no-trim
...
Always expand content status on single status view
2023-02-17 15:18:05 +11:00
Chris Young
867b2ff542
Specify TOTP validity window in settings.py
2023-02-13 15:17:54 +00:00
Mouse Reeve
2c2daf5fdf
Merge pull request #2644 from rrgeorge/rrgeorge/csp
...
Add Content-Security-Policy headers and secure cookies
2023-02-10 16:37:39 -08:00
Mouse Reeve
cc9e94261c
Merge pull request #2637 from MeecoLabs/mobile/dropdown-larger-size
...
UI: larger dropdown size for mobile devices
2023-02-10 15:57:03 -08:00
Chris Young
5bae00b3fe
Expand TOTP validity window
2023-02-09 12:49:05 +00:00
Dustin Steiner
d1f85e4317
fix: books can have non-decimal series numbers
2023-02-07 12:05:20 +00:00
Dustin
b20b52af7f
Merge branch 'main' into book-series-v1
2023-02-07 11:57:39 +00:00
Giebisch
21575fbf3f
Unused variable fix
2023-02-06 14:09:53 +01:00
Giebisch
248eab22ed
Merge branch 'main' into page-range
2023-02-06 14:02:05 +01:00
Giebisch
f65e0b7632
Add Quotation endposition test
2023-02-06 14:00:04 +01:00
Christof Dorner
6af1be28f3
Always expand content status on single status view
...
On the feed view along with other statuses, the body will be trimmed,
but on the single view, there's no need to trim it. This preserves the
logic for spoiler alerts.
2023-02-04 12:52:09 +01:00
Robert George
b82231202c
lint
2023-02-03 12:03:52 -08:00
Robert George
297738dbb1
Merge branch 'rrgeorge/csp' of github.com:rrgeorge/bookwyrm into rrgeorge/csp
2023-02-03 11:53:52 -08:00
Robert George
afe651cd6d
Added img-src * csp exception to search
2023-02-03 11:53:41 -08:00
Christof Dorner
f9a916db09
Merge pull request #2639 from bookwyrm-social/celery-ping
...
Celery ping
2023-02-03 09:40:25 +01:00
Mouse Reeve
fd59fea94e
Update bookwyrm/views/admin/celery_status.py
...
Co-authored-by: Christof Dorner <christof@chdorner.com>
2023-02-02 16:46:36 -08:00
Mouse Reeve
739c384715
Merge branch 'main' into rrgeorge/csp
2023-02-02 16:41:18 -08:00
0x29a
22eeee7368
Urlencode search query
2023-02-02 21:02:57 +01:00
Robert George
6b97702cc4
Fix long line
2023-02-01 13:19:57 -08:00
Robert George
36605efd20
Added support for secure cookies and django-csp
2023-02-01 12:59:10 -08:00
Dustin Steiner
610a4e8a66
chore: run styling
2023-01-31 18:44:09 +00:00
Dustin Steiner
96097f3b58
chore: use bulma override for mobile dropdown instead of classes
2023-01-31 18:33:44 +00:00
Dustin Steiner
90f996ac90
chore: multi line comment for linter
2023-01-31 10:16:44 +00:00
Dustin Steiner
c2a81d88bb
Merge branch 'main' into book-series-v1
2023-01-31 10:06:07 +00:00
Dustin Steiner
f30a0ae714
chore: more dropdown resizes
2023-01-31 08:12:57 +00:00
Dustin Steiner
ed040cd3e4
Merge branch 'main' into mobile/dropdown-larger-size
2023-01-31 08:01:29 +00:00
Mouse Reeve
006ff697b9
Merge pull request #2636 from 0x29a/redundant-db-queries
...
Remove redundant DB queries
2023-01-30 09:03:18 -08:00
Mouse Reeve
686d5625ed
Merge pull request #2627 from MeecoLabs/admin-manually-activate-user
...
Button in admin view to manually activate pending user
2023-01-30 09:01:05 -08:00
Mouse Reeve
46607df7e5
Merge pull request #2628 from chdorner/fix/improve-federated-generatednotes-in-feed
...
Improve feed header for federated generated notes
2023-01-30 08:36:36 -08:00
Mouse Reeve
8f88b72620
Adds info about celery endpoint in admin view
2023-01-30 08:35:24 -08:00
Mouse Reeve
c1090703e2
Adds a ping-able celery url
...
This will let admins set up a check to notify you if celery is not
running.
2023-01-30 08:27:40 -08:00
Giebisch
f085315d70
Added Backend Part
2023-01-30 16:12:14 +01:00
Dustin Steiner
e0505722e1
chore: formatting
2023-01-30 14:45:30 +00:00
Dustin Steiner
f4cde843c0
chore: larger dropdown size for mobile devices
2023-01-30 14:40:33 +00:00
Dustin Steiner
59a8098517
chore: add translations
2023-01-30 08:26:59 +00:00
0x29a
5e87504b22
Remove duplicated editions request from book.html
2023-01-30 06:45:48 +01:00
0x29a
f2d7efe2ba
Remove duplicated readthrough request from comment.html
2023-01-30 06:45:48 +01:00
0x29a
6e1418c5d4
Remove duplicated mentions request from layout.html
2023-01-30 06:45:48 +01:00
0x29a
6ea2513790
Remove duplicated notifications request from layout.html
2023-01-30 06:45:48 +01:00
0x29a
3c52426a1c
Optimize get_suggested_books
2023-01-30 06:45:44 +01:00
Dustin Steiner
0628ccad41
chore: sort editions with series number before edition rank
2023-01-29 11:43:56 +00:00
Dustin
c0e541c7ed
Merge branch 'main' into admin-manually-activate-user
2023-01-29 11:21:31 +00:00
Dustin
23e04c2e62
Merge branch 'main' into book-series-v1
2023-01-29 09:36:52 +00:00
Dustin Steiner
4b64b70753
fix: sort series by float
2023-01-29 09:35:02 +00:00
Mouse Reeve
d0a0851123
Merge pull request #2629 from 0x29a/performance-fixes
...
Minor performance improvements
2023-01-28 07:18:50 -08:00
Dustin Steiner
f2902e8de5
fix: sort series number as int
2023-01-28 08:38:57 +00:00
Dustin Steiner
952dd0dcdf
style: fix unused parameter linter error
2023-01-28 08:31:41 +00:00
Dustin Steiner
3fdbfe405b
fix: rename activate user form name
2023-01-28 08:31:16 +00:00
Hugh Rundle
2605b12ed0
fix sass compound selector extensions
...
Sass changed the way compound selectors can be extended, as outlined here:
https://sass-lang.com/documentation/breaking-changes/extend-compound
This commit aligns the styles in shepherd.scss to the nwe compound selector extension format.
2023-01-28 14:18:05 +11:00
0x29a
cbd75dc766
Minor performance improvements
2023-01-27 20:24:53 +01:00
Christof Dorner
46bfc184f5
Improve feed header for federated generated notes
...
This works for wants/started/finished reading generated notes, but not yet for "set a goal".
2023-01-27 17:49:48 +01:00
Dustin Steiner
54aea0654a
style: run linter
2023-01-27 15:47:22 +00:00
Dustin Steiner
3d29524e29
chore: reverse support for localhost domain
2023-01-27 15:45:43 +00:00
Dustin Steiner
07f4300176
feat: button in admin view to manually activate pending user
2023-01-27 15:43:34 +00:00
Dustin Steiner
264d32bf1b
Merge branch 'main' into book-series-v1
2023-01-26 16:43:53 +00:00
Mouse Reeve
90e3661636
Merge pull request #2623 from chdorner/fix/passwordless-redis
...
Fix passwordless redis connection string
2023-01-26 08:41:46 -08:00
Dustin Steiner
ba2ff7e7a5
Merge branch 'main' into book-series-v1
2023-01-26 16:40:32 +00:00
Dustin Steiner
5cc158e3be
Merge branch 'main' into book-series-v1
2023-01-26 16:36:19 +00:00
Christof Dorner
afab255c85
Allow empty broker and activity redis password
2023-01-26 17:24:20 +01:00
Christof Dorner
80d3474cef
Quote redis activity password
...
Same as the broker password in celerywyrm/settings.py
2023-01-26 17:23:55 +01:00
Mouse Reeve
62d1c54b31
Merge pull request #2613 from hughrun/authorized-fetch
...
Enable communication with "authorized_fetch" Mastodon servers
2023-01-26 08:21:34 -08:00
Mouse Reeve
ef48149844
Show import queue in Celery admin
2023-01-26 07:52:37 -08:00
Mouse Reeve
9c3c34834f
Update version number
2023-01-26 07:39:25 -08:00
Mouse Reeve
9be2f00064
Update test_signing.py
2023-01-26 07:19:53 -08:00
Mouse Reeve
e55e4429b1
Merge pull request #2604 from rrgeorge/redis-sockets
...
Add support to connecting to redis via unix socket
2023-01-26 06:39:15 -08:00
Mouse Reeve
f4de00088f
Merge branch 'main' into authorized-fetch
2023-01-26 06:22:03 -08:00
Mouse Reeve
8a65296c29
Merge pull request #2618 from hughrun/tests
...
use mocks for isni API calls
2023-01-26 06:06:05 -08:00
Mouse Reeve
4b6678903f
Merge pull request #2617 from bookwyrm-social/follow-priority
...
Make follow activities a high priority
2023-01-26 06:03:57 -08:00
Dustin
1d909ee8e1
Merge branch 'main' into book-series-v1
2023-01-26 06:50:22 +00:00
Dustin Steiner
eb4672ff18
style: format
2023-01-26 06:49:55 +00:00