Improve performance of asynchronous like/update
- Make the like module return earlier instead of outputting a full empty HTML page - Update the force_update variable earlier to prevent spilling on multiple unrelated nav update calls
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Core\Session;
|
||||
@@ -68,5 +69,7 @@ class Like extends BaseModule
|
||||
|
||||
DI::baseUrl()->redirect($returnPath . $rand);
|
||||
}
|
||||
|
||||
System::jsonExit(['status' => 'OK']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user