Fixed edit post functionality