From b74a59fd493a10f8c7db59b2922634937df39e57 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 3 Jul 2015 09:42:32 +0200 Subject: [PATCH] [add] in note post add tag 'note' --- index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index d70f0405..6dd0de3d 100644 --- a/index.php +++ b/index.php @@ -1691,7 +1691,12 @@ function renderPage() } } } - if ($url=='') $url='?'.smallHash($linkdate); // In case of empty URL, this is just a text (with a link that point to itself) + if ($url=='') // In case of empty URL, this is just a text (with a link that points to itself) + { + $url='?'.smallHash($linkdate); + $title='Note: '; + $tags .= 'note '; + } $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'via' => $via,'private'=>$private); }