From 8179fb0ece1d5deab8bb396735df14781865f04f Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 26 Apr 2022 18:22:59 -0600 Subject: [PATCH] Adding check for mastodon import ID --- import.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/import.go b/import.go index 2679905..b1b96d7 100644 --- a/import.go +++ b/import.go @@ -106,6 +106,9 @@ func importMastodon(username, source string) { if toot.Type != "Create" { continue } + if strings.HasSuffix(toot.Id, "/activity") { + toot.Id = strings.TrimSuffix(toot.Id, "/activity") + } tootid := re_tootid.FindString(toot.Id) xid := fmt.Sprintf("%s/%s/%s", user.URL, honkSep, tootid) if havetoot(xid) {