fixed incorrect variable: param <=> params
User model: removed "attr_writer :newsfeed_aggregate_id" since it is a database variable, not an instant variable
fixed legacy 'pub_cat' variables