Adding #network tag. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit ebba7b77183676b99c4e7f679019fbf824639d9c | |
parent f4b43cfbc76b77f4b580cbb2fe0ea272a3917855 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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}" >> "${mem… | |
printf "tag '%s' added as '%s' to meme index.\n" "${tag}" "${memecache… | |
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 ]; | |
diff --git a/get-tagtype b/get-tagtype | |
@@ -26,5 +26,4 @@ case "${tagfile}" in | |
esac | |
printf "%s\n" "${tagtype}" | |
-return 0 | |
- | |
+exit 0 | |
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-coron… | |
#new-skills gopher://bitreich.org/I/memecache/new-skills.jpg |