changeset: 30:bfe8a8115155 branch: nailim tag: tip user: web@RpiOne date: Sat May 13 20:40:38 2023 +0200 summary: HACK to make paste generate body and date files. Probabbly using it wrong, but could not find how submiting paste should generate those files trough (traced to) edit_post function. diff -r 9cfb19949517 -r bfe8a8115155 lib/core --- a/lib/core Sat May 13 20:39:02 2023 +0200 +++ b/lib/core Sat May 13 20:40:38 2023 +0200 @@ -149,6 +149,13 @@ a_dir=$barf_root/$"barf_dir^src/$a_id mkdir -p $a_dir/img $a_dir/tags rm -f $a_dir/tags/* + + switch($barf_type){ + case paste + echo $"post_arg_a_body >$a_dir/body + echo $"a_date >$a_dir/date + } + for(x in $barf_items){ if(~ $x date){ if(! ~ $#a_date 0)