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/db/moderator.rs | |
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/db/moderator.rs')
-rw-r--r-- | server/src/db/moderator.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/db/moderator.rs b/server/src/db/moderator.rs index d0f589e3..44b04ec6 100644 --- a/server/src/db/moderator.rs +++ b/server/src/db/moderator.rs @@ -465,7 +465,7 @@ mod tests { lang: "browser".into(), show_avatars: true, send_notifications_to_email: false, - actor_id: "changeme".into(), + actor_id: "http://fake.com".into(), bio: None, local: true, private_key: None, @@ -492,7 +492,7 @@ mod tests { lang: "browser".into(), show_avatars: true, send_notifications_to_email: false, - actor_id: "changeme".into(), + actor_id: "http://fake.com".into(), bio: None, local: true, private_key: None, @@ -512,7 +512,7 @@ mod tests { deleted: None, updated: None, nsfw: false, - actor_id: "changeme".into(), + actor_id: "http://fake.com".into(), local: true, private_key: None, public_key: None, @@ -538,7 +538,7 @@ mod tests { embed_description: None, embed_html: None, thumbnail_url: None, - ap_id: "changeme".into(), + ap_id: "http://fake.com".into(), local: true, published: None, }; @@ -555,7 +555,7 @@ mod tests { parent_id: None, published: None, updated: None, - ap_id: "changeme".into(), + ap_id: "http://fake.com".into(), local: true, }; |