1
0
Fork 0
Commit graph

1006 commits

Author SHA1 Message Date
Josh Soref
54285e4bcd spelling: auxiliary
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
b3edeca295 spelling: associated
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
319be60c80 spelling: assigning
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
12af5992a3
Merge pull request #2524 from chdorner/feature/tag-support
Initial hashtag support
2023-03-12 16:37:39 -07:00
9cbff312a5 Ignore Celery task results
Since we don't use the results of our Celery tasks (all of them return
None implicitly), it's prudent to set the ignore_result flag, for a
potential performance improvement. See the Celery docs for details [1].

We could do this with the global CELERY_IGNORE_RESULT setting, but it
offers more flexibility if we want to use task results in the future to
set it on a per-task basis.

[1]: https://docs.celeryq.dev/en/stable/userguide/tasks.html#ignore-results-you-don-t-want
2023-03-08 02:12:13 -05:00
05a303ea18
Merge pull request #2690 from bookwyrm-social/link-domain-notifications
Create notifications for link domains that need approval
2023-03-07 08:43:14 -08:00
Christof Dorner
0fd49d2aea Mark Hashtag.name field as deduplication field
This ensures that when an existing hashtag comes in through ActivityPub federation,
it correctly finds the local one, instead of creating duplicate hashtags.
2023-03-07 13:11:27 +01:00
Christof Dorner
11640f986e Import hashtags from activitypub statuses 2023-03-07 12:59:31 +01:00
Christof Dorner
c68304a99b Parse hashtags and store them in CreateStatus view 2023-03-07 12:55:36 +01:00
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
3a67727a9a
Merge pull request #2638 from Giebisch/page-range
Page Range
2023-02-27 17:39:42 +11:00
2470a0fd1c Create notifications for link domains that need approval 2023-02-22 10:20:07 -08:00
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
216be2aeea Fixes pylint complaints
"fixes" as in silences, sorry
2023-02-20 12:24:53 -08:00
0211dee0ff Avoid unnecessary errors when a remote re-sends an Accept 2023-02-20 11:09:42 -08:00
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
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
Giebisch
248eab22ed Merge branch 'main' into page-range 2023-02-06 14:02:05 +01:00
Giebisch
f085315d70 Added Backend Part 2023-01-30 16:12:14 +01:00
0x29a
cbd75dc766 Minor performance improvements 2023-01-27 20:24:53 +01:00
f4de00088f
Merge branch 'main' into authorized-fetch 2023-01-26 06:22:03 -08:00
Christof Dorner
7ae983acdf Use default user auth group from site settings 2023-01-21 17:04:32 +01:00
Christof Dorner
2c680cb365 Add default user auth group to registration settings 2023-01-21 17:04:32 +01:00
3e969bb349
Merge pull request #2606 from jaschaurbach/author_website
Add Website to author
2023-01-19 12:08:01 -08:00
d66e2fe861 merge in latest changes 2023-01-18 14:12:01 +11:00
Giebisch
d0adb370cd Merge branch 'main' into import-limit 2023-01-16 02:05:18 +01:00
54e0fdd5ae
Here we go again! 2023-01-15 09:41:39 +01:00
dd2b166382
Revert "Add Website field to author" 2023-01-11 19:21:40 -08:00
Giebisch
b22d060d93 Merge branch 'main' into import-limit 2023-01-11 16:22:08 +01:00
Giebisch
7e7966987b Merge branch 'main' into import-limit 2023-01-02 15:42:50 +01:00
2d76595af6
Add Website field to author
Authors have Websites. that might be interesting for BookWyrm users. Now there is a field specify the website of an author and it is shown tu users under the wikipedia link

Adds max char for ISFDB ID (6) and ISNI (19 - 16 plus three -)
2022-12-28 15:41:48 +01:00
Christof Dorner
3e25b04e4a Cache book_titleby only for 10 seconds
This should be enough caching when renderering pages like the feed, but
not so much that editing a book or author will not show the updated data.
At least without having to do some clever cache busting.
2022-12-20 21:48:16 +01:00
5ea922a551
Merge pull request #2528 from bookwyrm-social/broadcast-queues
Increase priority for follow activities and lower for shelve
2022-12-19 14:37:10 -08:00
157c9c825b Increase priority for follow activities and lower for shelve 2022-12-19 14:07:44 -08:00
Joachim
a44f427d84 Add remote user test before the task is called 2022-12-19 22:26:09 +01:00
d86e6a6949
Merge pull request #2516 from bookwyrm-social/import-queue
Create a separate celery queue for imports
2022-12-16 14:58:35 -08:00
3972d1cc7b Don't mark imports as active until their job task runs 2022-12-16 14:41:35 -08:00
427d0c4fc8 Create a separate celery queue for imports 2022-12-16 14:20:50 -08:00
d4351cfcb4
Merge branch 'main' into import-limit 2022-12-16 12:44:57 -08:00
Giebisch
df54df8309 Added Import Limit 2022-12-15 23:43:25 +01:00
0744bd5385
delete avatar when user is deleted 2022-12-15 23:01:56 +01:00
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
50a42dc0a2 Use user.reactivate when a user confirms their email address
This is cleaner and easier to maintain.
2022-12-11 11:44:04 -08:00
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
bffde6703c
Merge branch 'main' into html-in-activitypub 2022-12-05 17:46:31 -08:00
8951628e02 Don't try to markdownify a null field 2022-12-05 15:12:53 -08:00
16f9232e1e Adds database fields for legal page/impressum 2022-11-25 11:02:42 -08:00
9aab14ee96
Merge pull request #2406 from bookwyrm-social/disable-imports
Allow admins to disable starting imports
2022-11-17 19:51:17 -08:00
b1c6781036 Fixes collecting list of admins 2022-11-17 14:38:05 -08:00
7c7c0e1a93 Admin UI to enable and disable importing 2022-11-17 14:23:39 -08:00