diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-26 21:12:41 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-26 21:12:41 -0400 |
commit | 86dc50f9f0f6ea98273eb3845d5486d2fad8c1ff (patch) | |
tree | 7925b5768db7fd7c53115d99a40d6bdf638c27ef /server/src/api | |
parent | 7d1c6e9a402c14833b94cd33f7f170ffcbc820ed (diff) |
Some fixes to federation.
- Advanced code migrations now disable then re-enable triggers.
Brings run time down to < 15 seconds, no need to thread them.
- Changing ap_ids and actor_ids in migrations to a fake url,
so it doesn't break XsdAnyUri in activitystreams.
Diffstat (limited to 'server/src/api')
-rw-r--r-- | server/src/api/comment.rs | 2 | ||||
-rw-r--r-- | server/src/api/post.rs | 2 | ||||
-rw-r--r-- | server/src/api/user.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/server/src/api/comment.rs b/server/src/api/comment.rs index 369cba5c..56217458 100644 --- a/server/src/api/comment.rs +++ b/server/src/api/comment.rs @@ -140,7 +140,7 @@ impl Perform for Oper<CreateComment> { read: None, published: None, updated: None, - ap_id: "changeme".into(), + ap_id: "http://fake.com".into(), local: true, }; diff --git a/server/src/api/post.rs b/server/src/api/post.rs index 420bef1f..a3ac4915 100644 --- a/server/src/api/post.rs +++ b/server/src/api/post.rs @@ -172,7 +172,7 @@ impl Perform for Oper<CreatePost> { embed_description: iframely_description, embed_html: iframely_html, thumbnail_url: pictrs_thumbnail, - ap_id: "changeme".into(), + ap_id: "http://fake.com".into(), local: true, published: None, }; diff --git a/server/src/api/user.rs b/server/src/api/user.rs index f68a1a82..0b6458e7 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -1107,7 +1107,7 @@ impl Perform for Oper<CreatePrivateMessage> { deleted: None, read: None, updated: None, - ap_id: "changeme".into(), + ap_id: "http://fake.com".into(), local: true, published: None, }; |