-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: actpub
action: commit
revision:
path_from:
revision_from: fa60e1030f122c7ecf0ea001353c91686929c5cb:
path_to:
revision_to:

git.thebackupbox.net

actpub

git://git.thebackupbox.net/actpub

commit fa60e1030f122c7ecf0ea001353c91686929c5cb
Author: epoch <epoch@thebackupbox.net>
Date:   Wed Sep 20 09:33:36 2023 +0000

    attachments to actor were using bad check and werent quoted

diff --git a/ap-actor.cgi b/ap-actor.cgi

index a9a2916e1c199d23c0ccbbaac93725e62e86bf2b..

index ..7d8adfb2d285072790092144cb8b8565cb0b96eb 100755

--- a/ap-actor.cgi
+++ b/ap-actor.cgi
@@ -152,9 +152,9 @@ cat <<EOF
 	"tag": [],
 EOF

-if [ -e ~/.config/self.rec ];then
+if self -l >/dev/null 2>&1;then
 	attachments="$(self -g ap_attachments)"
-	if [ $attachments ];then
+	if [ "$attachments" ];then
 cat <<EOF
 	"attachment":
 EOF

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:20:32 2024