From 21bcee5cdb3ccfc66a1191195fbc672be31c5146 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 19 Nov 2023 10:17:13 -0500 Subject: [PATCH] update documentation Read docs to see new features, /tnt/, /teof/, and tweetrm --- pdt.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdt.sh b/pdt.sh index 7e21692..4278abf 100644 --- a/pdt.sh +++ b/pdt.sh @@ -58,6 +58,8 @@ tweet() { # Delete twitter post. Post id is the number at end of a url like: # https://nitter.net/user/status/1725640623149969527 # +# -PROFILE_NAME Either dbd or fsf. +# tweetrm() { local keys_file keys_file=$_pdtsh_dir/twitter_keys.py @@ -91,17 +93,12 @@ toot() { # post to mastodon + twitter. # -# -# Video posting to twitter is almost certainly broken. -# # Gnu Social posting code exists, but we aren't using it. You would need # to run pdt-gnusocial-setup beforehand. Alt text does not work on # gnusocial. # # usage: # pdt [-s mastodon|twitter|gnusocial] [--dbd] [-m IMAGE_FILE] [-a ALT_TEXT] [POST] -# pdt [-v VIDEO_PATH] [POST] -# pdt [-d POST_ID] # # -s mastodon|twitter|gnusocial = post to a single social network. # -m IMAGE_FILE = Uploads IMAGE_FILE. if MEDIA_FILE.txt exists, the last line of that file will be used as ALT_TEXT @@ -115,6 +112,9 @@ toot() { # # sed -r 's,/teof/.*,,;s/-(m|a|-dbd) [^ ]*//;s,https?://[^ ]*,https://xxxxxxxxxxxxxxx,g' FILE | awk '$0 !~ /\/tnt\// && length > 280 {print length, $0}' # +# broken usage: +# pdt [-v VIDEO_PATH] [POST] +# pdt() { local video media twitter_account gs_account mastodon_account video gs_arg network local do_mastodon do_twitter do_gnusocial -- 2.25.1