xsawyerx / PearlBee

Blogging system in Modern Perl
6 stars 2 forks source link

Remove the map_posts utility function #38

Open book opened 8 years ago

book commented 8 years ago

The map_posts() utility in PearlBee::Helpers::Util takes a list of Post objects and returns a list of hashes.

Most of the hash keys are simply the post attributes. The 'content' key, which contained an excerpt of the post text is commented out.

If the first lines of a post are needed, they should be provided by a method in PearlBee::Model::Schema::Result::Post.