diff --git a/crates/app/src/langs/en-US.toml b/crates/app/src/langs/en-US.toml index 3b45ceb..f6109d1 100644 --- a/crates/app/src/langs/en-US.toml +++ b/crates/app/src/langs/en-US.toml @@ -56,6 +56,7 @@ version = "1.0.0" "auth:label.relationship" = "Relationship" "auth:label.joined_communities" = "Joined communities" "auth:label.recent_posts" = "Recent posts" +"auth:label.recent_with_tag" = "Recent posts (with tag)" "auth:label.before_you_view" = "Before you view" "auth:label.private_profile" = "Private profile" "auth:label.private_profile_message" = "This profile is private, meaning you can only view it if they follow you." diff --git a/crates/app/src/public/html/communities/create_post.html b/crates/app/src/public/html/communities/create_post.html index 13bdac2..1d84d42 100644 --- a/crates/app/src/public/html/communities/create_post.html +++ b/crates/app/src/public/html/communities/create_post.html @@ -197,6 +197,7 @@ reactions_enabled: true, is_nsfw: false, content_warning: "", + tags: "", }; window.BLANK_INITIAL_SETTINGS = JSON.stringify( @@ -238,12 +239,28 @@ window.POST_INITIAL_SETTINGS.content_warning, "textarea", ], + [ + ["tags", "Tags"], + window.POST_INITIAL_SETTINGS.tags, + "input", + { + embed_html: + 'Tags should be separated by a comma.', + }, + ], ]; trigger("ui::generate_settings_ui", [ document.getElementById("post_options"), settings_fields, window.POST_INITIAL_SETTINGS, + { + tags: (new_tags) => { + window.POST_INITIAL_SETTINGS.tags = new_tags + .split(",") + .map((t) => t.trim()); + }, + }, ]); }, 250); diff --git a/crates/app/src/public/html/components.html b/crates/app/src/public/html/components.html index de42975..c077c5e 100644 --- a/crates/app/src/public/html/components.html +++ b/crates/app/src/public/html/components.html @@ -253,6 +253,16 @@ and show_community and community.id != config.town_square or question %} {% endif %} + +