From d5e3996a18ee37fc4bdf5718632d3d19ac7a8c1b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 5 Jan 2024 13:39:31 +0100 Subject: [feature] Parse instance descriptors as markdown, show T&C on /about (#2481) * [feature] Parse instance descriptors as markdown, show T&C on /about * lint * remove unnecessary nullzero tags --- testrig/testmodels.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testrig/testmodels.go') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index e7c1f0c02..804ad19cd 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -1312,7 +1312,11 @@ func NewTestInstances() map[string]*gtsmodel.Instance { URI: "http://localhost:8080", Title: "GoToSocial Testrig Instance", ShortDescription: "

This is the GoToSocial testrig. It doesn't federate or anything.

When the testrig is shut down, all data on it will be deleted.

Don't use this in production!

", - Description: "

This is the GoToSocial testrig. It doesn't federate or anything.

When the testrig is shut down, all data on it will be deleted.

Don't use this in production!

", + ShortDescriptionText: "This is the GoToSocial testrig. It doesn't federate or anything.\n\nWhen the testrig is shut down, all data on it will be deleted.\n\nDon't use this in production!", + Description: "

Here's a fuller description of the GoToSocial testrig instance.

This instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing

Users on this instance:

If you need to edit the models for the testrig, you can do so at internal/testmodels.go.

", + DescriptionText: "Here's a fuller description of the GoToSocial testrig instance.\n\nThis instance is for testing purposes only. It doesn't federate at all. Go check out https://github.com/superseriousbusiness/gotosocial/tree/main/testrig and https://github.com/superseriousbusiness/gotosocial/blob/main/CONTRIBUTING.md#testing\n\nUsers on this instance:\n\n- @admin (admin!).\n- @1happyturtle (posts about turtles, we don't know why).\n- @the_mighty_zork (who knows).\n\nIf you need to edit the models for the testrig, you can do so at `internal/testmodels.go`.", + Terms: "

This is where a list of terms and conditions might go.

For example:

If you want to sign up on this instance, you oughta know that we:

  1. Will sell your data to whoever offers.
  2. Secure the server with password password wherever possible.
", + TermsText: "This is where a list of terms and conditions might go.\n\nFor example:\n\nIf you want to sign up on this instance, you oughta know that we:\n\n1. Will sell your data to whoever offers.\n2. Secure the server with password `password` wherever possible.", ContactEmail: "admin@example.org", ContactAccountUsername: "admin", ContactAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", -- cgit v1.2.3