Adding #network tag. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit ebba7b77183676b99c4e7f679019fbf824639d9c
(DIR) parent f4b43cfbc76b77f4b580cbb2fe0ea272a3917855
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Tue, 19 May 2020 19:40:45 +0200
Adding #network tag.
Diffstat:
M annna-add-hashtag | 6 ++++--
M get-tagtype | 3 +--
M modules/hashtags/hashtags.txt | 1 +
3 files changed, 6 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/annna-add-hashtag b/annna-add-hashtag
@@ -96,7 +96,7 @@ inserttag() {
chmod 664 "${hashtagdb}"
}
-inserttag() {
+indextag() {
tag="$1"
uri="$2"
@@ -117,7 +117,7 @@ inserttag() {
printf "%s %s %s\n" "${tag}" "${memecacheuri}" "${checksum}" >> "${memeindex}"
printf "tag '%s' added as '%s' to meme index.\n" "${tag}" "${memecacheuri}" >&2
LC_ALL=C sort -t ' ' -k1,1 "${memeindex}" > "${memeindex}.sort"
- mv "$memeindex.sort" "${memeindex}"
+ mv "${memeindex}.sort" "${memeindex}"
# keep permissions shared.
chown ':bitreich' "${memeindex}"
chmod 664 "${memeindex}"
@@ -132,6 +132,8 @@ addtag() {
processtag "$1" "$2"
[ $? -gt 0 ] && return
inserttag "$1" "$2"
+ [ $? -gt 0 ] && return
+ indextag "$1" "$2"
}
if [ $# -eq 2 ];
(DIR) diff --git a/get-tagtype b/get-tagtype
@@ -26,5 +26,4 @@ case "${tagfile}" in
esac
printf "%s\n" "${tagtype}"
-return 0
-
+exit 0
(DIR) diff --git a/modules/hashtags/hashtags.txt b/modules/hashtags/hashtags.txt
@@ -1651,6 +1651,7 @@
#nein gopher://bitreich.org/9/memecache/nein.webm
#nerds gopher://bitreich.org/9/memecache/nerds.mp4
#netherlands gopher://bitreich.org/9/memecache/netherlands.mkv
+#network gopher://bitreich.org/I/memecache/network.jpg
#new-feature gopher://bitreich.org/I/memecache/new-feature.jpg
#new-normal-corona-marriage gopher://bitreich.org/I/memecache/new-normal-corona-marriage.png
#new-skills gopher://bitreich.org/I/memecache/new-skills.jpg