hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit bd3b44ab230f3b9458dfaa8baebe881d832460e4
parent 58a62c91f1137da21e3f22ab9d69f4d882c33d62
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 19 Mar 2017 11:14:30 -0400

Remove the comments about bti.

Diffstat:
Mposse | 41++++++++++-------------------------------
1 file changed, 10 insertions(+), 31 deletions(-)

diff --git a/posse b/posse @@ -2,34 +2,10 @@ # https://indieweb.org/POSSE -# POSSE to Twitter via command line -# https://github.com/gregkh/bti -# cat example.md | bti --action update - -# 1) Get the most recent file in the note/ directory. -# dir="./content/note" - -# unset -v latest_note - -# IFS= read -r -d '' latest_note \ -# < <(find "$dir" -type f -printf '%T@ %p\0' | sort -znr) - -# latest_note=${latest_note#* } # remove timestamp + space - -# 2) With Pancdoc remove the YAML header into that file -# posse_note=$(basename "${latest_note%.*}.tweet.md") - -# pandoc --wrap=none "$latest_note" -o "$posse_note" - -# 3) Tweet the file content with the bti command. -# cat "$posse_note" | bti --action update - -# 4) Remove the *.tweet.md -# rm "$posse_note" - -# Ok, but i'm thinking it would be better if i use webmention-go with -# the last URL of the fakestache.db ... and run it after the deploy -# process. +# POSSE to Twitter via Bridgy +# <https://brid.gy/> +# with the Will Norris Webmention app +# <https://willnorris.com/go/webmention> unset -v first_db_line @@ -40,6 +16,9 @@ read -r first_db_line < fakestache.db last_permalink=$(echo "$first_db_line" | cut -d "|" -f 3) # Then send it to the webmention-go app -webmention "$last_permalink" - -# Bridgy will do the rest. +if hash webmention 2>/dev/null; then + webmention "$last_permalink" +else + echo "- Sorry But You must Install *webmention*." + echo "- Please Visit <https://willnorris.com/go/webmention>." +fi