pleroma-cherry-picks #209

Merged
floatingghost merged 7 commits from pleroma-cherry-picks into develop 2022-09-11 19:28:07 +00:00
No description provided.
floatingghost added 7 commits 2022-09-11 19:15:55 +00:00
e88f36f72b ObjectView: do not fetch an object for its ID
Non-Create/Listen activities had their associated object field
normalized and fetched, but only to use their `id` field, which is both
slow and redundant. This also failed on Undo activities, which delete
the associated object/activity in database.

Undo activities will now render properly and database loads should
improve ever so slightly.
b6891fe190 Migrations: generate unset user keys
User keys are now generated on user creation instead of "when needed",
to prevent race conditions in federation and a few other issues. This
migration will generate keys missing for local users.
0b14f02ed2 User: generate private keys on user creation
This fixes a race condition bug where keys could be regenerated
post-federation, causing activities and HTTP signatures from an user to
be dropped due to key differences.
8683252fc5 Metadata/Utils: use summary as description if set
When generating OpenGraph and TwitterCard metadata for a post, the
summary field will be used first if it is set to generate the post
description.
1acd38fe7f OAuthPlug: use user cache instead of joining
As this plug is called on every request, this should reduce load on the
database by not requiring to select on the users table every single
time, and to instead use the by-ID user cache whenever possible.
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
b4261b0335
Use set of pregenerated RSA keys
Randomness is a huge resource sink, so let's just use
a some that we made earlier
floatingghost merged commit dbe678cb06 into develop 2022-09-11 19:28:07 +00:00
floatingghost deleted branch pleroma-cherry-picks 2022-09-11 19:28:07 +00:00
Sign in to join this conversation.
No description provided.