From dc32553a1d94db877580b8bfbf08f825cc7262a1 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 4 Dec 2017 19:50:32 +0000 Subject: [PATCH] Better usew the author --- include/items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index e49eadd86d..f334990d77 100644 --- a/include/items.php +++ b/include/items.php @@ -1151,7 +1151,8 @@ function item_store($arr, $force_parent = false, $notify = false, $dontcache = f * @param array $arr Contains the just posted item record */ function item_set_last_item($arr) { - $contact = dba::select('contact', [], ['id' => $arr['contact-id']], ['limit' => 1]); + // Unarchive the author + $contact = dba::select('contact', [], ['id' => $arr["author-link"]], ['limit' => 1]); if ($contact['term-date'] > NULL_DATE) { Contact::unmarkForArchival($contact); }