mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 01:55:31 +00:00
send push on addMagnetDownload success only
This commit is contained in:
parent
bacb8b17bf
commit
73f353594c
1 changed files with 22 additions and 21 deletions
|
|
@ -63,8 +63,8 @@ else if (is_null($user->public))
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Register magnet download
|
// Register magnet download
|
||||||
$magnetDownloadId = $db->addMagnetDownload($magnet->magnetId, $user->userId, time());
|
if ($magnetDownloadId = $db->addMagnetDownload($magnet->magnetId, $user->userId, time()))
|
||||||
|
{
|
||||||
// Push event to other nodes
|
// Push event to other nodes
|
||||||
if (API_EXPORT_ENABLED &&
|
if (API_EXPORT_ENABLED &&
|
||||||
API_EXPORT_PUSH_ENABLED &&
|
API_EXPORT_PUSH_ENABLED &&
|
||||||
|
|
@ -87,6 +87,7 @@ else
|
||||||
|
|
||||||
$memory->set('api.export.push', $memoryApiExportPush, 3600);
|
$memory->set('api.export.push', $memoryApiExportPush, 3600);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Build magnet link
|
// Build magnet link
|
||||||
$link = (object)
|
$link = (object)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue