]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Replace IHTTPResult for CurlResult usages
[friendica.git] / src / Protocol / Feed.php
index a1b77f8bd5e4628e9c05f8f0039f87446b44d77f..0801498f21f1cc5c166a92c216a9ca8a07945cdf 100644 (file)
@@ -601,7 +601,9 @@ class Feed
                                }
                                $publish_at = date(DateTimeFormat::MYSQL, $publish_time);
 
-                               Post\Delayed::add($posting['item']['uri'], $posting['item'], $posting['notify'], false, $publish_at, $posting['taglist'], $posting['attachments']);
+                               if (Post\Delayed::add($posting['item']['uri'], $posting['item'], $posting['notify'], Post\Delayed::PREPARED, $publish_at, $posting['taglist'], $posting['attachments'])) {
+                                       DI::pConfig()->set($item['uid'], 'system', 'last_publish', $publish_time);
+                               }
                        }
                }