From 9b4fa37e52458fbc7de7d9062db0860ca9cea584 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 4 Jul 2024 02:36:20 +0200 Subject: [PATCH] feat(uriproxy): new hashtag url type --- utils/uriproxy/lib.rs | 2 ++ web/src/timeline/mod.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/utils/uriproxy/lib.rs b/utils/uriproxy/lib.rs index 0eb65030..7e0b8745 100644 --- a/utils/uriproxy/lib.rs +++ b/utils/uriproxy/lib.rs @@ -5,6 +5,7 @@ pub enum UriClass { Actor, Object, Activity, + Hashtag, } impl AsRef for UriClass { @@ -13,6 +14,7 @@ impl AsRef for UriClass { Self::Actor => "actors", Self::Object => "objects", Self::Activity => "activities", + Self::Hashtag => "tags", } } } diff --git a/web/src/timeline/mod.rs b/web/src/timeline/mod.rs index ce5025a7..8581ec3a 100644 --- a/web/src/timeline/mod.rs +++ b/web/src/timeline/mod.rs @@ -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::Activity => obj.actor().id().str(), U::Actor => None, + U::Hashtag => None, } { fetch_and_update(U::Actor, actor_id, auth).await; }