paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6122f4e4b4a641a114ccef188baca14eedcd7f31
parent 29b050b383fa550b9cbac77dc1d69441f3085ec9
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat,  8 Aug 2020 14:26:00 -0400

Make social media post URL a variable

Diffstat:
Mpublish | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/publish b/publish @@ -61,7 +61,9 @@ categoryPage="html/blog.html" autoUpload="true" # Set to false to disable auto posting statuses on Mastodon autoPost="true" -# Social media upload OAuth access token +# Social media API endpoint +socialMediaURL="https://pleroma.paritybit.ca/api/v1/statuses" +# Social media API access token accessToken="" # Prints the message passed as the 1st argument in red. @@ -206,7 +208,7 @@ auto_post() -H "Authorization: Bearer $accessToken" \ -F status="$(cat /tmp/status.txt)" \ -F visibility=public \ - https://social.paritybit.ca/api/v1/statuses)" + "$socialMediaURL")" httpCode="$(echo "$resp" | grep HTTP/ | awk '{print $2}')" if [ "$httpCode" = "200" ]; then