diff options
author | d-s <ds@voyager.local> | 2023-03-23 21:59:22 +0100 |
---|---|---|
committer | d-s <ds@voyager.local> | 2023-03-23 21:59:22 +0100 |
commit | 20b6774f312308b1b97719ddb56476f35e0a250b (patch) | |
tree | 3788909059317e940549a83dc56af008148d7dbe /send_wm.sh | |
parent | cc619f3b9e0e6d6acfcd62010a9af73f01d27025 (diff) |
feat: simple webmention send
Diffstat (limited to 'send_wm.sh')
-rwxr-xr-x | send_wm.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |