]> git.mxchange.org Git - friendica.git/commitdiff
Better usew the author
authorMichael <heluecht@pirati.ca>
Mon, 4 Dec 2017 19:50:32 +0000 (19:50 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 4 Dec 2017 19:50:32 +0000 (19:50 +0000)
include/items.php

index e49eadd86d3970e3f8df27f5d49a83291dc35cf1..f334990d7766095fc6b9ffcd98249b2558b6fdcf 100644 (file)
@@ -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);
        }