From 993aae5e48a5a3b47a7c7bb3cb66e2d8abda17b2 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 25 Jan 2023 11:12:27 +0100 Subject: [feature] Accept incoming federated Flag activity (#1382) * start working on handling incoming Flag activity * interim commit * federate Flag in successfully --- internal/regexes/regexes.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/regexes') 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. -- cgit v1.2.3