akkoma/lib/pleroma/web
rinpatch c1b6952d2a Mastodon API: Preloading and normalization optimizations
- Try to normalize the activity instead of object wherever possible
- Put the `user` key on non-home timelines as well so bookmarks and
thread mutes are preloaded there as well
- Skip trying to get the user when rendering mentions if the id ==
as:Public or user's follower collection
- Preload the object when getting replied to activities and do not crash
if it's not present

This almost solves the problem of Pleroma hammering the db with a lot
of queries when rendering timelines, the things left are
1. When rendering mentions and the user is not in cache, save it for
later and request all uncached users in one go
2. Somehow get rid of needing to get the latest follow activity to
detect the value of `requested` in a relationship. (create a database
view for user relationship and cache it maybe?)
2019-08-13 20:34:34 +03:00
..
activity_pub config: remove legacy activitypub accept_blocks setting 2019-08-13 02:15:21 +00:00
admin_api Admin fixes 2019-08-03 18:16:09 +00:00
auth constants: add as_public constant and use it everywhere 2019-07-29 02:43:19 +00:00
channels Use User.get_cached* everywhere 2019-04-22 07:20:43 +00:00
common_api tests for CommonApi/Utils 2019-08-05 15:37:05 +00:00
federator [#161] Refactoring, documentation. 2019-06-30 15:58:50 +03:00
mailer Fix Credo warnings 2019-04-20 19:57:43 +07:00
mastodon_api Mastodon API: Preloading and normalization optimizations 2019-08-13 20:34:34 +03:00
media_proxy Fix/mediaproxy whitelist base url 2019-08-02 17:07:09 +00:00
metadata Pleroma.Web.Metadata - tests 2019-07-12 16:42:54 +00:00
mongooseim Wrap error messages into gettext helpers 2019-07-10 18:10:09 +07:00
nodeinfo Add mailerEnabled to the NodeInfo metadata 2019-07-29 16:17:40 +00:00
oauth constants: add as_public constant and use it everywhere 2019-07-29 02:43:19 +00:00
ostatus OStatus Announce Representer: Do not depend on the object being embedded 2019-08-07 00:23:58 +03:00
push WebPush: Use Object.normalize, rewrite tests so they test reality. 2019-04-29 18:15:30 +02:00
rich_media [#1150] fixed parser TwitterCard 2019-08-06 20:19:28 +00:00
salmon Merge branch 'develop' into feature/addressable-lists 2019-07-11 13:26:59 +07:00
templates Merge branch 'feature/digest-email' into 'develop' 2019-08-08 14:38:33 +00:00
twitter_api tests for TwitterApi/UtilController 2019-07-31 15:14:36 +00:00
views Resolve conflicts 2019-06-29 00:52:50 +03:00
web_finger Merge branch 'fix-remote-follow-from-ostatus-subscribe' into 'develop' 2019-07-24 19:29:01 +00:00
websub kill @httpoison 2019-05-25 04:24:21 +00:00
xml update copyright years to 2019 2018-12-31 15:41:47 +00:00
chat_channel.ex [Credo] Remove parentesis on argument-less functions 2019-03-13 04:26:56 +01:00
controller_helper.ex [#948] /api/v1/account_search added optional parameters (limit, offset, following) 2019-06-14 11:39:57 +00:00
endpoint.ex Add SetLocalePlug 2019-07-10 18:08:03 +07:00
fallback_redirect_controller.ex [#1097] added redirect: /pleroma/admin -> /pleroma/admin/ 2019-07-26 20:27:38 +00:00
gettext.ex update copyright years to 2019 2018-12-31 15:41:47 +00:00
metadata.ex Use object instead of activity for metadata 2019-01-18 09:32:52 +03:00
oauth.ex Refactoring functions for dealing with oauth scopes. 2019-05-08 10:52:13 +00:00
rel_me.ex Replace Mix.env with Pleroma.Config.get(:env) 2019-06-06 23:59:51 +03:00
router.ex Merge branch 'develop' into feature/digest-email 2019-08-02 18:16:04 +03:00
streamer.ex check both item and parent domain blocks 2019-07-24 11:35:16 +01:00
translation_helpers.ex Add translation helpers 2019-07-10 18:10:09 +07:00
uploader_controller.ex tests for Uploader with webhook 2019-07-18 12:30:18 +00:00
web.ex Add translation helpers 2019-07-10 18:10:09 +07:00