Fixing checks when saving post to send notifications