Adding check for mastodon import ID

master
Peter Sanchez 2 years ago
parent c468a048e1
commit 8179fb0ece

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

Loading…
Cancel
Save