-- 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: 8bde0fb679450bfbb1031e60f6984a926e7f8fd2: path_to: revision_to:
commit 8bde0fb679450bfbb1031e60f6984a926e7f8fd2 Author: epoch <epoch@thebackupbox.net> Date: Wed Mar 8 07:51:54 2023 +0000 default to using the libravatar path that is for the sha256 hash of an empty string for users without a icon diff --git a/ap-activity2html b/ap-activity2html
--- a/ap-activity2html +++ b/ap-activity2html @@ -53,8 +53,13 @@ actor="$(jq -r '.actor' 2>/dev/null < "${activity_file}" | html_entities_encode) acct="$(ap-actor2acct "${actor}" 2>/dev/null | uricut -p 2>/dev/null)" printf 'Actor: <a href="%s">%s</a><br/>\n' "${actor}" "${actor}" printf 'Acct: <a href="acct:%s">%s</a><br/>\n' "${acct}" "${acct}" -icon="$(ap-getactor "${acct}" 2>/dev/null | jq -r .icon.url | html_entities_encode)" -printf 'Icon: <img src="%s" width="128" height="128">' "${icon}" +icon="$(ap-getactor "${acct}" 2>/dev/null | jq -r '.icon.url//""' | html_entities_encode)" +if [ "$icon" ];then + printf 'Icon: <img src="%s" width="128" height="128">' "${icon}" +else + icon="/avatars/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + printf 'Icon: <img src="%s" width="128" height="128">' "${icon}" +fi printf 'Type: %s<br/>\n' "$(html_entities_encode <<< "$type")"
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 19:11:33 2024