Fix post ID extraction regex

Ref T906
This commit is contained in:
Matt Baer 2024-10-21 12:18:21 -04:00
parent 74a0947fdb
commit 9c0a2f8b13
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ const (
var ( var (
apCollectionPostIRIRegex = regexp.MustCompile("/api/collections/([a-z0-9\\-]+)/posts/([a-z0-9\\-]+)$") apCollectionPostIRIRegex = regexp.MustCompile("/api/collections/([a-z0-9\\-]+)/posts/([a-z0-9\\-]+)$")
apDraftPostIRIRegex = regexp.MustCompile("/api/posts/([a-z0-9\\-]{12,16})$") apDraftPostIRIRegex = regexp.MustCompile("/api/posts/([a-z0-9\\-])$")
) )
var instanceColl *Collection var instanceColl *Collection