From 2796a2e82f16ade9872008878cf88299bd66b4e7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:47:35 +0200 Subject: [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) * update go-fed * do the things * remove unused columns from tags * update to latest lingo from main * further tag shenanigans * serve stub page at tag endpoint * we did it lads * tests, oh tests, ohhh tests, oh tests (doo doo doo doo) * swagger docs * document hashtag usage + federation * instanceGet * don't bother parsing tag href * rename whereStartsWith -> whereStartsLike * remove GetOrCreateTag * dont cache status tag timelineability --- web/source/css/tag.css | 24 ++++++++++++++++++++++++ web/template/tag.tmpl | 27 +++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 web/source/css/tag.css create mode 100644 web/template/tag.tmpl (limited to 'web') diff --git a/web/source/css/tag.css b/web/source/css/tag.css new file mode 100644 index 000000000..98a129874 --- /dev/null +++ b/web/source/css/tag.css @@ -0,0 +1,24 @@ +/* + GoToSocial + Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +.thread { + #tag-name { + /* Ensure ridiculous length tags get wrapped */ + word-wrap: anywhere; + } +} diff --git a/web/template/tag.tmpl b/web/template/tag.tmpl new file mode 100644 index 000000000..c84d7a1a4 --- /dev/null +++ b/web/template/tag.tmpl @@ -0,0 +1,27 @@ +{{- /* +// GoToSocial +// Copyright (C) GoToSocial Authors admin@gotosocial.org +// SPDX-License-Identifier: AGPL-3.0-or-later +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +*/ -}} + +{{ template "header.tmpl" .}} + +
+

#{{.tagName}}

+

There's nothing here yet!

+
+ +{{ template "footer.tmpl" .}} \ No newline at end of file -- cgit v1.3