summaryrefslogtreecommitdiff
path: root/internal/text
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-12-20 18:42:19 +0100
committerLibravatar GitHub <noreply@github.com>2021-12-20 18:42:19 +0100
commitef5a9256a8fc35e644cc48734f39c84a8957de86 (patch)
tree5cda77185465d46fb5e3cb12f9066f2506a58846 /internal/text
parentRemove unnecessary storage config variables (#344) (diff)
downloadgotosocial-ef5a9256a8fc35e644cc48734f39c84a8957de86.tar.xz
Extend license notices to 2022 (#354)
Diffstat (limited to 'internal/text')
-rw-r--r--internal/text/caption.go2
-rw-r--r--internal/text/caption_test.go2
-rw-r--r--internal/text/common.go5
-rw-r--r--internal/text/common_test.go2
-rw-r--r--internal/text/formatter.go2
-rw-r--r--internal/text/formatter_test.go2
-rw-r--r--internal/text/link.go2
-rw-r--r--internal/text/link_test.go2
-rw-r--r--internal/text/markdown.go2
-rw-r--r--internal/text/markdown_test.go2
-rw-r--r--internal/text/minify.go2
-rw-r--r--internal/text/plain.go2
-rw-r--r--internal/text/plain_test.go2
-rw-r--r--internal/text/sanitize.go2
-rw-r--r--internal/text/sanitize_test.go2
15 files changed, 17 insertions, 16 deletions
diff --git a/internal/text/caption.go b/internal/text/caption.go
index d1af33e53..c3c86b0b1 100644
--- a/internal/text/caption.go
+++ b/internal/text/caption.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/caption_test.go b/internal/text/caption_test.go
index 794c82bf5..f1337df09 100644
--- a/internal/text/caption_test.go
+++ b/internal/text/caption_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/common.go b/internal/text/common.go
index 0173b1d01..4148ece15 100644
--- a/internal/text/common.go
+++ b/internal/text/common.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
@@ -21,10 +21,11 @@ package text
import (
"context"
"fmt"
- "github.com/sirupsen/logrus"
"html"
"strings"
+ "github.com/sirupsen/logrus"
+
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/regexes"
)
diff --git a/internal/text/common_test.go b/internal/text/common_test.go
index 9d61b6113..5e8f05b30 100644
--- a/internal/text/common_test.go
+++ b/internal/text/common_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/formatter.go b/internal/text/formatter.go
index f7c908a7d..957c09f08 100644
--- a/internal/text/formatter.go
+++ b/internal/text/formatter.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/formatter_test.go b/internal/text/formatter_test.go
index 096d32789..ac85e8623 100644
--- a/internal/text/formatter_test.go
+++ b/internal/text/formatter_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/link.go b/internal/text/link.go
index 02c4b8be6..d8d83df6d 100644
--- a/internal/text/link.go
+++ b/internal/text/link.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/link_test.go b/internal/text/link_test.go
index 98143bdd4..e524315e7 100644
--- a/internal/text/link_test.go
+++ b/internal/text/link_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/markdown.go b/internal/text/markdown.go
index eeeae0edf..be094afd2 100644
--- a/internal/text/markdown.go
+++ b/internal/text/markdown.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/markdown_test.go b/internal/text/markdown_test.go
index 0c55cba9c..e086f14f7 100644
--- a/internal/text/markdown_test.go
+++ b/internal/text/markdown_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/minify.go b/internal/text/minify.go
index 1c7c8ce24..e2515b9a4 100644
--- a/internal/text/minify.go
+++ b/internal/text/minify.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/plain.go b/internal/text/plain.go
index 34cc3fa06..453f4dd31 100644
--- a/internal/text/plain.go
+++ b/internal/text/plain.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/plain_test.go b/internal/text/plain_test.go
index b8a50d3a1..d8b7c17da 100644
--- a/internal/text/plain_test.go
+++ b/internal/text/plain_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/sanitize.go b/internal/text/sanitize.go
index e1bc73559..897dea34d 100644
--- a/internal/text/sanitize.go
+++ b/internal/text/sanitize.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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
diff --git a/internal/text/sanitize_test.go b/internal/text/sanitize_test.go
index 19a5f6a06..4270e2602 100644
--- a/internal/text/sanitize_test.go
+++ b/internal/text/sanitize_test.go
@@ -1,6 +1,6 @@
/*
GoToSocial
- Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+ Copyright (C) 2021-2022 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