feat(uriproxy): new hashtag url type

This commit is contained in:
əlemi 2024-07-04 02:36:20 +02:00
parent 5e7b2354e2
commit 9b4fa37e52
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 3 additions and 0 deletions

View file

@ -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",
} }
} }
} }

View file

@ -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;
} }