commit 20b6774f312308b1b97719ddb56476f35e0a250b parent cc619f3b9e0e6d6acfcd62010a9af73f01d27025 Author: d-s <ds@voyager.local> Date: Thu, 23 Mar 2023 21:59:22 +0100 feat: simple webmention send Diffstat:
A | send_wm.sh | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/send_wm.sh 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