Allow updating of custom_domain
This commit is contained in:
@@ -25,7 +25,6 @@ tantivy = "0.10.1"
|
||||
url = "2.1"
|
||||
webfinger = "0.4.1"
|
||||
whatlang = "0.7.1"
|
||||
shrinkwraprs = "0.2.1"
|
||||
diesel-derive-newtype = "0.1.2"
|
||||
|
||||
[dependencies.chrono]
|
||||
|
||||
@@ -26,14 +26,16 @@ use posts::Post;
|
||||
use safe_string::SafeString;
|
||||
use schema::blogs;
|
||||
use search::Searcher;
|
||||
use std::default::Default;
|
||||
use std::fmt::{self, Display};
|
||||
use std::ops::Deref;
|
||||
use std::sync::RwLock;
|
||||
use users::User;
|
||||
use {Connection, Error, PlumeRocket, Result};
|
||||
|
||||
pub type CustomGroup = CustomObject<ApSignature, Group>;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DieselNewType, Shrinkwrap)]
|
||||
#[derive(Clone, Debug, PartialEq, DieselNewType)]
|
||||
pub struct Host(String);
|
||||
|
||||
impl Host {
|
||||
@@ -42,6 +44,13 @@ impl Host {
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for Host {
|
||||
type Target = str;
|
||||
fn deref(&self) -> &str {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Host {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", self.0)
|
||||
|
||||
@@ -33,8 +33,6 @@ extern crate serde_derive;
|
||||
#[macro_use]
|
||||
extern crate serde_json;
|
||||
#[macro_use]
|
||||
extern crate shrinkwraprs;
|
||||
#[macro_use]
|
||||
extern crate tantivy;
|
||||
extern crate url;
|
||||
extern crate webfinger;
|
||||
|
||||
Reference in New Issue
Block a user