On Version Notebook Hook | Endpoint Services | Observable
•ojs
•ojs
•ojs
Comments (4)
Fabian Iwand
Oct 22, 2021
The thumbnail daemon runs for every change though, not only publishing. Do you perform an additional check to see if the new revision is actually published? Also, what about custom thumbnails? I assume the webhook wouldn't work with those?
Tom Larkworthy
Oct 22, 2021
I assumed that too, but then I tested it and it seems to work anyway. Originally I did user agent sniffing but this seems simpler so long as it works.
Oct 22, 2021
Oh yeah your right though, it gets called on edit which includes publish but sometimes more.
Tom Larkworthy
Oct 22, 2021
I rename it to "on version" as it's easier to do the publish check downstream of this hook
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Endpoint Services
Tom Larkworthy
7
Reply
Add comment
Subscribe to notifications
2
On Version Notebook Hook | Endpoint Services | Observable