+ // Unarchive the author
+ $contact = dba::selectFirst('contact', [], ['id' => $arr["author-link"]]);
+ if ($contact['term-date'] > NULL_DATE) {
+ Contact::unmarkForArchival($contact);
+ }
+
+ // Unarchive the contact if it is a toplevel posting
+ if ($arr["parent-uri"] === $arr["uri"]) {
+ $contact = dba::selectFirst('contact', [], ['id' => $arr["contact-id"]]);
+ if ($contact['term-date'] > NULL_DATE) {
+ Contact::unmarkForArchival($contact);
+ }
+ }