summaryrefslogtreecommitdiff
path: root/internal/regexes
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-01-25 11:12:27 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-25 11:12:27 +0100
commit993aae5e48a5a3b47a7c7bb3cb66e2d8abda17b2 (patch)
treea64ad3edaf2a29f457bd050b24609fe4f1abdf02 /internal/regexes
parent[feature] Implement reports admin API so admins can view + close reports (#1378) (diff)
downloadgotosocial-993aae5e48a5a3b47a7c7bb3cb66e2d8abda17b2.tar.xz
[feature] Accept incoming federated Flag activity (#1382)
* start working on handling incoming Flag activity * interim commit * federate Flag in successfully
Diffstat (limited to 'internal/regexes')
-rw-r--r--internal/regexes/regexes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/regexes/regexes.go b/internal/regexes/regexes.go
index 4c9d48dac..06fb92b41 100644
--- a/internal/regexes/regexes.go
+++ b/internal/regexes/regexes.go
@@ -150,6 +150,10 @@ var (
// It captures the account id, media type, media size, file name, and file extension, eg
// `01F8MH1H7YV1Z7D2C8K2730QBF`, `attachment`, `small`, `01F8MH8RMYQ6MSNY3JM2XT1CQ5`, `jpeg`.
FilePath = regexp.MustCompile(filePath)
+
+ // MisskeyReportNotes captures a list of Note URIs from report content created by Misskey.
+ // https://regex101.com/r/EnTOBV/1
+ MisskeyReportNotes = regexp.MustCompile(`(?m)(?:^Note: ((?:http|https):\/\/.*)$)`)
)
// bufpool is a memory pool of byte buffers for use in our regex utility functions.