Jake Vanderwerf
2026-03-29 275c0d74cd68677622a5431505c5c870c473063d
inc/managers/queue/executors/UploadExecutor.php
@@ -502,7 +502,6 @@
            error_log('Could not find a gallery upload field for post '.$ID);
         }
         $meta->save();
      }
@@ -715,7 +714,6 @@
         $meta->set($data['field_name'], implode(',', $allIds));
      }
      $meta->save();
   }
   private function updateFieldValue(array $data, array $results): void
@@ -735,7 +733,6 @@
      $allIds = array_unique(array_merge($existingIds, $attachmentIds));
      $meta->set($data['field_name'], implode(',', $allIds));
      $meta->save();
   }
   private function getMetaManager(array $data): ?Meta
@@ -798,14 +795,12 @@
      } elseif (str_starts_with($mimeType, 'video/')) {
         $meta = Meta::forPost($postId);
         $meta->set('video', $attachmentId);
         $meta->save();
      } else {
         $meta = Meta::forPost($postId);
         $existing = $meta->get('documents');
         $existingIds = !empty($existing) ? explode(',', $existing) : [];
         $existingIds[] = $attachmentId;
         $meta->set('documents', implode(',', $existingIds));
         $meta->save();
      }
   }