forked from alemi/upub
feat(uriproxy): new hashtag url type
This commit is contained in:
parent
5e7b2354e2
commit
9b4fa37e52
2 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ pub enum UriClass {
|
||||||
Actor,
|
Actor,
|
||||||
Object,
|
Object,
|
||||||
Activity,
|
Activity,
|
||||||
|
Hashtag,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<str> for UriClass {
|
impl AsRef<str> for UriClass {
|
||||||
|
@ -13,6 +14,7 @@ impl AsRef<str> for UriClass {
|
||||||
Self::Actor => "actors",
|
Self::Actor => "actors",
|
||||||
Self::Object => "objects",
|
Self::Object => "objects",
|
||||||
Self::Activity => "activities",
|
Self::Activity => "activities",
|
||||||
|
Self::Hashtag => "tags",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,6 +182,7 @@ async fn fetch_and_update_with_user(kind: U, id: String, auth: Auth) {
|
||||||
U::Object => obj.attributed_to().id().str(),
|
U::Object => obj.attributed_to().id().str(),
|
||||||
U::Activity => obj.actor().id().str(),
|
U::Activity => obj.actor().id().str(),
|
||||||
U::Actor => None,
|
U::Actor => None,
|
||||||
|
U::Hashtag => None,
|
||||||
} {
|
} {
|
||||||
fetch_and_update(U::Actor, actor_id, auth).await;
|
fetch_and_update(U::Actor, actor_id, auth).await;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue