Fixing logic error in posts action link