Updated publish action to include session user object