From e90b9c3395f19c7dbca3d891c555e3bb0a4ea205 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 18 Mar 2008 08:09:20 +0100 Subject: [PATCH] On Artemus save_story(), set userid if not set. --- Gruta/Template/Artemus.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gruta/Template/Artemus.pm b/Gruta/Template/Artemus.pm index 815a209..7a485a6 100644 --- a/Gruta/Template/Artemus.pm +++ b/Gruta/Template/Artemus.pm @@ -470,6 +470,11 @@ sub _artemus { $story->set('date2', $date); + # if there is no userid, add one + if (!$story->get('userid')) { + $story->set('userid', $data->auth->get('id')); + } + # drop all cached stories $data->flush_story_cache(); -- 2.11.4.GIT