Commit Graph

202 Commits

Author SHA1 Message Date
Karen Konou f4ff4ffba2 Migration and some boilerplate stuff 2019-02-07 17:36:14 +01:00
Maxim Filippov f1b72bfb70 Split hide_networ only for local users 2019-02-06 13:41:36 +03:00
kaniini d120aa63f0 Merge branch 'fix-dm-index' into 'develop'
Massage index until it actually does the stuff we want.

See merge request pleroma/pleroma!772
2019-02-05 20:27:31 +00:00
Maxim Filippov c48aba3c2a Fix SQL 2019-02-05 10:22:31 +03:00
lain f3c8b02d65 Massage index until it actually does the stuff we want.
Also makes the index a lot smoler.
2019-02-04 23:47:29 +01:00
Maxim Filippov cd6606b7f6 Initialize hide_network with false 2019-02-04 22:23:09 +03:00
Maxim Filippov 16ce129e38 Split hide_network into hide_followers & hide_followings (fixed) 2019-02-03 21:55:04 +03:00
kaniini 486749064f Revert "Merge branch 'feature/split-hide-network' into 'develop'"
This reverts merge request !733
2019-02-01 20:22:58 +00:00
kaniini 0a82a7e6d6 Merge branch 'feature/split-hide-network' into 'develop'
Split hide_network into hide_followers & hide_followings

See merge request pleroma/pleroma!733
2019-02-01 17:05:29 +00:00
href b3b0855456 Merge branch '534_federation_targets_reachability' into 'develop'
[#534] Unreachable federation targets retirement

Closes #534

See merge request pleroma/pleroma!703
2019-02-01 09:14:35 +00:00
lambda a43a1c6d4e Revert "Merge branch 'spc-fix-3' into 'develop'"
This reverts merge request !682
2019-01-31 12:16:23 +00:00
kaniini 4d3655c479 Merge branch 'spc-fix-3' into 'develop'
Spc fix 3

See merge request pleroma/pleroma!682
2019-01-31 11:29:29 +00:00
Maxim Filippov 50d6183893 Split hide_network into hide_followers & hide_followings 2019-01-28 21:40:08 +03:00
Ivan Tashkinov d3f9e6f6fe [#534] Merged `upstream/develop`. 2019-01-28 15:39:14 +03:00
Ivan Tashkinov 9560abea10 [#534] Refactoring / tweaks per MR review. 2019-01-28 11:03:52 +03:00
Haelwenn (lanodan) Monnier cda1470e02
[MastoAPI][GlitchAPI] Add bookmarks 2019-01-28 04:47:32 +01:00
William Pitcock 15d12a69a4 add activities likes index, fixes favorites API call 2019-01-27 15:15:33 +00:00
href 4a13bb75bd
Change webpush endpoint to unlimited varchar
Fixes #552
2019-01-26 17:18:34 +01:00
kaniini 4df71cd88b Merge branch 'classic-flakeids' into 'develop'
Flake Ids for Users and Activities

Closes #450

See merge request pleroma/pleroma!645
2019-01-25 04:59:06 +00:00
href a3ba72d978
Fix clippy with one/five lines 2019-01-24 16:53:14 +01:00
href e02b19d1d7
Fix postgres activity_visibility when running in autovacuum 2019-01-24 14:13:20 +01:00
Ivan Tashkinov f161a92cb1 [#534] Initial implementation of unreachable federation targets retirement. 2019-01-23 18:37:25 +03:00
lain ab03f81219 Fix info ids.
The previous migration actually created values for the key "id", including the
quotes. This one should fill out all missing ids.

Closes #511
2019-01-23 14:01:44 +01:00
href 9ba6e1fabe
FlakeId: chain alter statements 2019-01-23 12:09:21 +01:00
href e67bd93d90
Flake: migrate pinned_activities in jsonb 2019-01-23 11:26:39 +01:00
href a92c43bc4b
Clippy! 2019-01-23 11:26:38 +01:00
href 465fb4327d
Lock activities/users table during flake migration. 2019-01-23 11:26:37 +01:00
href 28d77e373c
Flake Ids for Users and Activities 2019-01-23 11:26:27 +01:00
Michael Loftis 98cbeae49c slightly changes definition so that autovacuum works paralell safe too 2019-01-22 15:35:21 +00:00
lain b108aeee08 Make use of the indices.
Indices in postgresql rely on operators, so they won't be used if you use only functions.
2019-01-20 00:31:17 +01:00
lain bd6c12592e Add migration to fix spc users. 2019-01-18 19:35:47 +01:00
Ivan Tashkinov 79e44042bc [#477] User trigram index adjustment. 2019-01-18 10:57:42 +03:00
Ivan Tashkinov fc965f982c [#477] Added FTS index for `users`. Fixed failing test. 2019-01-15 12:04:54 +03:00
lain 04735db193 Build the index concurrently. 2019-01-09 16:55:05 +01:00
lain 5027f82cde Add activity visibility index. 2019-01-09 16:45:09 +01:00
lambda 94d8f1ab30 Merge branch '394_user_tags' into 'develop'
[#394] User tags

Closes #394

See merge request pleroma/pleroma!508
2018-12-07 18:25:38 +00:00
Ivan Tashkinov 7b19487389 [#394] Added `users.tags` and admin routes to tag and untag users. Added tests. 2018-12-06 20:06:50 +03:00
Egor Kislitsyn 4944498133 Merge branch 'develop' into feature/compat/push-subscriptions
# Conflicts:
#	lib/pleroma/application.ex
#	lib/pleroma/plugs/oauth_plug.ex
2018-12-06 20:15:16 +07:00
lain 4996fb07d8 Genereate uuids for existing info fields. 2018-12-01 12:00:33 +01:00
Martin Kühl d94ee5cd50 Mastodon API: Support push subscription CRUD 2018-09-22 07:04:01 +02:00
William Pitcock c9f6eb9a41 user: implement dynamic refresh of profiles (gets rid of need for fix_ap_users task) 2018-09-20 23:50:56 +00:00
kaniini 76c67a41c1 Merge branch 'develop' into 'feature/staff-discovery-api'
# Conflicts:
#   lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
2018-09-03 14:55:42 +00:00
kaniini 1c9e539b47 Merge branch 'feature/mastodon_api_2.4.x' into 'develop'
Add/Fix Mastodon endpoints for 2.4.3 compatibility

See merge request pleroma/pleroma!266
2018-09-03 12:33:36 +00:00
William Pitcock cf5d1302aa migrations: add is_moderator index for users table 2018-09-03 11:55:12 +00:00
William Pitcock 1a70d41f8e migrations: add index creation migration and recipients_to/cc removal migration 2018-08-29 18:41:02 +00:00
William Pitcock 038139d641 migrations: drop filler migration 2018-08-29 18:41:02 +00:00
William Pitcock 40ea07cd2f migrations: add migration to fill in recipients_to/recipients_cc fields 2018-08-29 08:43:24 +00:00
William Pitcock 81673b8136 activity: add recipients_to and recipients_cc fields 2018-08-29 08:42:33 +00:00
Haelwenn (lanodan) Monnier 6e030129fb
[MastodonAPI] Add filters 2018-08-27 15:09:05 +02:00
lambda 13440a80e1 Merge branch 'feature/invites' into 'develop'
Invites

Closes #108

See merge request pleroma/pleroma!208
2018-08-12 12:04:15 +00:00
William Pitcock 4f589998ee activitypub: support filtering activities by whether or not they are a reply (closes #109) 2018-06-18 03:21:32 +00:00
Henry Jameson f42ffbe9a8 Initial invites support + tests. 2018-06-12 14:55:16 +03:00
lambda 564c73ab24 Merge branch 'feature/list-streaming' into 'develop'
MastoAPI: Add streaming for lists.

See merge request pleroma/pleroma!183
2018-06-12 07:19:45 +00:00
eal 29c9c8d93b Extract host from ap_id, add index 2018-06-06 21:13:40 +03:00
eal 5d3fdbc082 MastoAPI: Add streaming for lists. 2018-05-30 16:48:59 +03:00
lambda f3a71f2986 Merge branch 'feature/lists' into 'develop'
Mastodon List API

See merge request pleroma/pleroma!138
2018-05-24 20:22:43 +00:00
eal a8369db4f2 MastoAPI: add lists. 2018-05-24 13:18:39 +03:00
lain 1d4bbec6b3 Fix User search.
Now uses a trigram based search. This is a lot faster and gives better
results. Closes #185.
2018-05-16 17:55:20 +02:00
lain 94c1f28ba4 Modify sort index for activities.
This prevents a problem that made the local timeline very slow when
there were few posts.
2018-05-13 12:54:08 +02:00
lain 0abd8a6bad Fix migration. 2018-03-27 19:59:54 +02:00
lain b56bb88c02 Drop index for 'local', it confuses the query planner. 2018-03-27 19:48:01 +02:00
lain bd4926288e Speed up follower query. 2018-03-26 10:31:22 +02:00
lain 1d1271ca1e Add index for user follower address. 2018-03-26 09:53:47 +02:00
lain f48bc5c3e1 Make User.following a postgres array. 2018-02-21 22:20:29 +01:00
Lain Iwakura 4a13b84887 Add recipients field to activities.
Also do some very basic checks for AP message insertion.
2017-12-12 18:07:14 +01:00
Lain Iwakura 50dca016f2 Add count index for local users. 2017-11-30 15:00:12 +01:00
Roger Braun ccde03285d add sort index for activities 2017-11-09 15:16:10 +01:00
Roger Braun 9e60de695d Fix migration for empty db. 2017-11-09 13:45:17 +01:00
Roger Braun 6bf261589f Update activities in own migration. 2017-11-09 13:32:53 +01:00
Roger Braun 20b8b87743 Update in chunks. 2017-11-09 12:33:38 +01:00
Roger Braun f1d27a5fbb Add actor column to activities. 2017-11-09 10:41:19 +01:00
Roger Braun 9af560083f Use more efficient user note count update query. 2017-10-24 14:16:17 +02:00
Roger Braun 29c261e75b Drop superflous index. 2017-10-24 11:07:21 +02:00
Roger Braun 9f417fd5e9 Speed up deletion and related queries. 2017-10-23 18:30:09 +02:00
Roger Braun 6af164f27b Add password reset. 2017-10-19 17:37:24 +02:00
Roger Braun 62ca2617cd Add tag index.
This still isn't optimal, but at least it isn't super slow.
2017-09-17 14:05:53 +02:00
Roger Braun 78485e24ac Fixup old migrations. 2017-09-17 00:01:49 +02:00
Roger Braun f0257c7516 Add fts search index. 2017-09-16 11:06:55 +02:00
Roger Braun 07b694814e Optimize conversation fetching. 2017-09-12 13:48:48 +02:00
Roger Braun 61adf676d5 Add basic mastodon notification support. 2017-09-11 18:53:19 +02:00
Roger Braun 2a298d70f9 Add very basic oauth and mastodon api support. 2017-09-06 19:06:25 +02:00
Roger Braun 396c32a6da Add follower_address to users, add on generation. 2017-07-19 18:49:25 +02:00
Roger Braun 5e17e04144 Make user timelines faster for users with few statuses. 2017-07-01 16:43:10 +02:00
Roger Braun 07cee92cd4 Add correct index. 2017-06-20 16:25:28 +02:00
Roger Braun 9cf38d6796 Use more efficient queries. 2017-06-20 16:18:42 +02:00
Roger Braun 3d714f85a8 Drop the general index on activities.
Indices should be more specific as the general index can lead to
slower queries because postgres can't estimate the specificity of
jsonb indexes very well.
2017-06-20 12:00:58 +02:00
Roger Braun fb78773112 Make longer bios possible. 2017-05-29 11:33:40 +02:00
Roger Braun 47684c2a2c Make email and nickname case insensitive. 2017-05-22 18:10:50 +02:00
Roger Braun ff2945dfdc Index users by ap_id. 2017-05-07 00:21:15 +02:00
Roger Braun 56bacc90d1 Fix specs, add local marker to actitivies. 2017-05-02 10:43:35 +02:00
Roger Braun b9d1fc05b2 Actually make index unique. 2017-05-01 15:42:05 +02:00
Roger Braun 2f093db051 Ensure we have no duplicate ap ids. 2017-05-01 14:54:58 +02:00
Roger Braun e8a311ecff Add user and hub to websub client subscriptions. 2017-04-27 09:44:20 +02:00
Roger Braun c5fa682c31 Refactor, add beginnings of websub client subscriptions. 2017-04-26 18:33:10 +02:00
Roger Braun 43d7a4b2cf Add basic fields to support remote users. 2017-04-24 08:49:09 +02:00
Roger Braun cc330421fd Better activities in ostatus. 2017-04-20 10:16:06 +02:00
Roger Braun d7e3b72c6a Add avatar objects to user, fix specs. 2017-04-16 15:28:28 +02:00
Roger Braun 03c6148bb3 Add user registration changeset. 2017-04-15 16:40:09 +02:00
Roger Braun 40eb0e4c24 Add index to objects. 2017-03-30 18:06:43 +02:00
Roger Braun 9a8850eb9e Basic status creation and retrieval. 2017-03-21 17:53:20 +01:00
Roger Braun 8de523c8ae Basic AP objects. 2017-03-21 09:21:52 +01:00
Roger Braun 66f536ecba Add user schema. 2017-03-20 21:28:31 +01:00