Browse Source

fix user auto-approve on magnet approve

main
ghost 1 year ago
parent
commit
3e9ec79fac
  1. 10
      src/public/edit.php

10
src/public/edit.php

@ -194,12 +194,6 @@ else { @@ -194,12 +194,6 @@ else {
// Update form
if (!empty($_POST)) {
// Approve by approved user
if ($user->approved)
{
$db->updateMagnetApproved($magnet->magnetId, true, time());
}
// Approve by moderation request
if (in_array($user->address, MODERATOR_IP_LIST))
{
@ -212,10 +206,10 @@ else { @@ -212,10 +206,10 @@ else {
}
}
// Set default approve status
// Approve by user approved status
else
{
$db->updateMagnetApproved($magnet->magnetId, MAGNET_DEFAULT_APPROVED, time());
$db->updateMagnetApproved($magnet->magnetId, (bool) $user->approved, time());
}
// Meta

Loading…
Cancel
Save