fixed 'attachement' prefix

`$post` is not always an object