From 20b6774f312308b1b97719ddb56476f35e0a250b Mon Sep 17 00:00:00 2001 From: d-s Date: Thu, 23 Mar 2023 21:59:22 +0100 Subject: feat: simple webmention send --- send_wm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 send_wm.sh (limited to 'send_wm.sh') diff --git a/send_wm.sh b/send_wm.sh new file mode 100755 index 0000000..a81c771 --- /dev/null +++ b/send_wm.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +target="https://brainbaking.com/post/2023/03/continuous-productivity-is-toxic/" +source="https://d-sh/2023/re-continuous-productivity-is-toxic/" + +wm_link=$(curl $target | grep rel=\"webmention\" | head -1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*") + +curl -si $wm_link \ + -d source=$source \ + -d target=$target -- cgit v1.2.3