Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add remote poster and thumbnails to a video #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nickedwards
Copy link

Doing some work where I need to change the images on a video to remote images uploaded in our own CMS.

There might be a few more endpoints I add in later, but for now here's the work I've done for adding remote images.

$this->fieldChanged('remote_url');
return $this;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline.

$this->fieldChanged('remote_url');
return $this;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline.

@@ -56,7 +56,7 @@ protected function canonicalFieldName($name) {
public function postJSON() {
$data = [];
foreach ($this as $field => $val) {
if ($field === 'changedFields' || $field === 'fieldAliases' || $val === NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this check removed?

@@ -84,9 +84,6 @@ public function patchJSON() {
$data = [];
foreach ($this->changedFields as $field) {
$val = $this->{$field};
if ($val === NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this check removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants