use Fqn::make_local() instead of make_fqn()

This commit is contained in:
Kitaiti Makoto
2023-01-15 07:42:16 +09:00
parent 5ee84427bf
commit ba00e36884
3 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -387,7 +387,7 @@ mod tests {
use super::valid_slug;
use crate::init_rocket;
use diesel::Connection;
use plume_common::utils::{make_fqn, random_hex};
use plume_common::utils::random_hex;
use plume_models::{
blog_authors::{BlogAuthor, NewBlogAuthor},
blogs::{Blog, NewBlog},
@@ -527,7 +527,7 @@ mod tests {
let title = random_hex();
let blog = NewBlog {
instance_id: instance.id,
fqn: Fqn::new_local(make_fqn(&title)).unwrap(),
fqn: Fqn::make_local(&title).unwrap(),
title,
actor_id: random_hex(),
ap_url: random_hex(),