aboutsummaryrefslogtreecommitdiff
path: root/modules/comments/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comments/main.sh')
-rwxr-xr-xmodules/comments/main.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/comments/main.sh b/modules/comments/main.sh
index 1e88a52..a140a68 100755
--- a/modules/comments/main.sh
+++ b/modules/comments/main.sh
@@ -33,6 +33,7 @@ source $AK_LIBDIR/_ak_script
source $AK_LIBDIR/_ak_ipfs
source $AK_LIBDIR/_ak_gpg
source $AK_LIBDIR/_ak_zblock
+source $AK_LIBDIR/_ak_utils
ZCOMMENTSDIR="$AK_WORKDIR/comments"
TEMP="/tmp/aktmp"
@@ -44,7 +45,7 @@ else
_ak_log_info "zcommentsdir found"
fi
-_ak_modules_comments_create(){
+function _ak_modules_comments_create(){
if [ ! -z $1 ]
then
REFER_TO="$1"
@@ -55,7 +56,7 @@ _ak_modules_comments_create(){
fi
TEMP="$(_ak_make_temp_directory)"
cd $TEMP
- export COMMENTS_FILE="$(date -u +%s)"
+ export COMMENTS_FILE="$(_ak_datetime_unix)"
vi $COMMENTS_FILE
echo "Renaming..."
TO_FILE=$COMMENTS_FILE
@@ -70,7 +71,7 @@ _ak_modules_comments_create(){
fi
}
-_ak_modules_comments_index(){
+function _ak_modules_comments_index(){
FILES="$(ls -1 $ZCOMMENTSDIR)"
i=0
for FILE in $FILES
@@ -82,7 +83,7 @@ _ak_modules_comments_index(){
done
}
-_ak_modules_comments_add(){
+function _ak_modules_comments_add(){
TEMP="$(_ak_make_temp_directory)"
cd $TEMP
if [ -f "$ZCOMMENTSDIR/$1" ]; then