Commit 8d12f6c7 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(fix): if editing, time_created should only be changed if it's different from entity time_created

1 merge request!294WIP: epic/post-scheduler
Pipeline #81575145 passed with stages
in 11 minutes and 59 seconds
......@@ -517,7 +517,7 @@ class newsfeed implements Interfaces\Api
$attachmentPaywallDelegate = new Core\Feeds\Activity\Delegates\AttachmentPaywallDelegate();
$attachmentPaywallDelegate->onUpdate($activity);
if (isset($_POST['time_created'])) {
if (isset($_POST['time_created']) && ($_POST['time_created'] != $activity->getTimeCreated())) {
try {
$timeCreatedDelegate = new Core\Feeds\Activity\Delegates\TimeCreatedDelegate();
$timeCreatedDelegate->onUpdate($activity, $_POST['time_created'], time());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment