mootoday / ghost-v3-google-cloud-storage

A Google Cloud Storage adapter for Ghost v3 (www.ghost.org).
13 stars 7 forks source link

Delete images when post gets deleted (add post id to images path) #7

Open DejenSharewAbrha opened 4 years ago

DejenSharewAbrha commented 4 years ago

When a post is deleted the images are not removed from google storage. I am not sure if ghost triggers some kind of event when a post gets removed but for even removing the images manually is good enough. But in order to do that I need to add the post id to the images path because currently one cant tell which posts owns which pictures by looking at the images path.