From fb05ee1c2f11b413413dede0743507feb23e4d54 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Thu, 30 Jun 2022 18:41:39 +0200 Subject: [PATCH] change page title from Mobilizon to rotes.potsda.mn --- js/src/App.vue | 2 +- js/src/components/Error.vue | 2 +- js/src/views/Group/MyGroups.vue | 2 +- js/src/views/Group/Timeline.vue | 2 +- js/src/views/Home.vue | 2 +- js/src/views/Moderation/Report.vue | 2 +- js/src/views/Posts/Edit.vue | 2 +- js/src/views/Posts/Post.vue | 2 +- js/src/views/Search.vue | 2 +- js/src/views/User/Login.vue | 2 +- js/src/views/User/Register.vue | 2 +- lib/service/metadata/event.ex | 2 +- test/service/metadata/metadata_test.exs | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/js/src/App.vue b/js/src/App.vue index 309331248..55b50dead 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -70,7 +70,7 @@ import { Route } from "vue-router"; }, metaInfo() { return { - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/components/Error.vue b/js/src/components/Error.vue index 30af0c4f3..49c53a821 100644 --- a/js/src/components/Error.vue +++ b/js/src/components/Error.vue @@ -174,7 +174,7 @@ import RouteName from "@/router/name"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore title: this.$t("Error") as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Group/MyGroups.vue b/js/src/views/Group/MyGroups.vue index 6adbabf2b..822458fd1 100644 --- a/js/src/views/Group/MyGroups.vue +++ b/js/src/views/Group/MyGroups.vue @@ -109,7 +109,7 @@ import RouteName from "../../router/name"; metaInfo() { return { title: this.$t("My groups") as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Group/Timeline.vue b/js/src/views/Group/Timeline.vue index e4b9944fb..6c84fa684 100644 --- a/js/src/views/Group/Timeline.vue +++ b/js/src/views/Group/Timeline.vue @@ -215,7 +215,7 @@ export type ActivityFilter = ActivityType | ActivityAuthorFilter | null; // @ts-ignore group: this.group?.name, }) as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Home.vue b/js/src/views/Home.vue index f4c2ff0b4..b7cbe6dff 100644 --- a/js/src/views/Home.vue +++ b/js/src/views/Home.vue @@ -357,7 +357,7 @@ const EVENT_PAGE_LIMIT = 99; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore title: this.instanceName, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Moderation/Report.vue b/js/src/views/Moderation/Report.vue index 71094d796..a0ff15413 100644 --- a/js/src/views/Moderation/Report.vue +++ b/js/src/views/Moderation/Report.vue @@ -323,7 +323,7 @@ import { ApolloCache, FetchResult } from "@apollo/client/core"; metaInfo() { return { title: this.$t("Report") as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Posts/Edit.vue b/js/src/views/Posts/Edit.vue index 7719011fc..450c2fa41 100644 --- a/js/src/views/Posts/Edit.vue +++ b/js/src/views/Posts/Edit.vue @@ -189,7 +189,7 @@ import PostMixin from "../../mixins/post"; ? (this.$t("Edit post") as string) : (this.$t("Add a new post") as string), // all titles will be injected into this template - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Posts/Post.vue b/js/src/views/Posts/Post.vue index 4700d7c37..f7b3ee5ae 100644 --- a/js/src/views/Posts/Post.vue +++ b/js/src/views/Posts/Post.vue @@ -284,7 +284,7 @@ import PostMixin from "../../mixins/post"; // all titles will be injected into this template // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - titleTemplate: this.post ? "%s | Mobilizon" : "Mobilizon", + titleTemplate: this.post ? "%s | rotes.potsda.mn" : "rotes.potsda.mn", }; }, }) diff --git a/js/src/views/Search.vue b/js/src/views/Search.vue index 6167ae044..2b1b60409 100644 --- a/js/src/views/Search.vue +++ b/js/src/views/Search.vue @@ -312,7 +312,7 @@ const GEOHASH_DEPTH = 9; // put enough accuracy, radius will be used anyway metaInfo() { return { title: this.$t("Explore events") as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, }) diff --git a/js/src/views/User/Login.vue b/js/src/views/User/Login.vue index 08d0b6204..593e0e4d3 100644 --- a/js/src/views/User/Login.vue +++ b/js/src/views/User/Login.vue @@ -167,7 +167,7 @@ import AuthProviders from "../../components/User/AuthProviders.vue"; metaInfo() { return { title: this.$t("Login on Mobilizon!") as string, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", meta: [{ name: "robots", content: "noindex" }], }; }, diff --git a/js/src/views/User/Register.vue b/js/src/views/User/Register.vue index 844d6fd9d..93ba1632f 100644 --- a/js/src/views/User/Register.vue +++ b/js/src/views/User/Register.vue @@ -212,7 +212,7 @@ type credentials = { email: string; password: string; locale: string }; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore title: this.title, - titleTemplate: "%s | Mobilizon", + titleTemplate: "%s | rotes.potsda.mn", }; }, apollo: { diff --git a/lib/service/metadata/event.ex b/lib/service/metadata/event.ex index aa6011e93..76cf873c4 100644 --- a/lib/service/metadata/event.ex +++ b/lib/service/metadata/event.ex @@ -15,7 +15,7 @@ defimpl Mobilizon.Service.Metadata, for: Mobilizon.Events.Event do formatted_description = description(event, locale) tags = [ - Tag.content_tag(:title, event.title <> " - Mobilizon"), + Tag.content_tag(:title, event.title <> " - rotes.potsda.mn"), Tag.tag(:meta, name: "description", content: process_description(event.description, locale)), Tag.tag(:meta, property: "og:title", content: event.title), Tag.tag(:meta, property: "og:url", content: event.url), diff --git a/test/service/metadata/metadata_test.exs b/test/service/metadata/metadata_test.exs index 43bdfc8f6..4e2ba74f5 100644 --- a/test/service/metadata/metadata_test.exs +++ b/test/service/metadata/metadata_test.exs @@ -51,7 +51,7 @@ defmodule Mobilizon.Service.MetadataTest do tags_output = event |> Metadata.build_tags() |> Metadata.Utils.stringify_tags() {:ok, document} = Floki.parse_fragment(tags_output) - assert "#{event.title} - Mobilizon" == document |> Floki.find("title") |> Floki.text() + assert "#{event.title} - rotes.potsda.mn" == document |> Floki.find("title") |> Floki.text() assert @truncated_description == document