all repos — honk @ 77dafcebbbf45ed5bfda472d9b49a56d97325cdc

my fork of honk

Adding check for mastodon import ID
Peter Sanchez peter@netlandish.com
Tue, 26 Apr 2022 18:22:59 -0600
commit

77dafcebbbf45ed5bfda472d9b49a56d97325cdc

parent

92d09e93dad025887899ef870ddcbbfab885a4dd

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M import.goimport.go

@@ -106,6 +106,9 @@ toot := item

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) {