diff --git a/install.zsh b/install.zsh index db88ae2..5a02893 100755 --- a/install.zsh +++ b/install.zsh @@ -58,7 +58,6 @@ function web-write() { grep -R bsky.social .|cut -d : -f 1|sort -u|xargs sed -i "s/bsky.social/syu.is/g" grep -R bsky.app .|cut -d : -f 1|sort -u|xargs sed -i "s/bsky.app/web.syu.is/g" grep -R public.api.syu.is ./lib/constants.ts | cut -d : -f 1|sort -u|xargs sed -i "s/public.api/bsky/g" - f=$dt/view/icons/Logotype.tsx o=$d/icons/Logotype.tsx cp -rf $o $f @@ -68,6 +67,11 @@ function web-write() { sed -i $t "s#/img/avatar/plain/#https://cdn.bsky.app/img/avatar/plain/#g" $f sed -i $t "s#/img/avatar_thumbnail/plain/#https://bsky.syu.is/img/avatar/plain/#g" $f sed -i $t "s#source={{uri: avatar}}#source={{ uri: hackModifyThumbnailPath(avatar, 1 > 0), }}#g" $f + + did_bskyadmin=did:plc:z72i7hdynmk6r22z27h6tvur + # curl -sL "syu.is/xrpc/com.atproto.repo.describeRepo?repo=ai.syu.is" |jq -r .did + did_ai=did:plc:6qyecktefllvenje24fcxnie + grep -R $did_bskyadmin .|cut -d : -f 1|sort -u|xargs sed -i "s/$did_bskyadmin/$did_ai/g" } run-env @@ -80,4 +84,3 @@ case $1 in web-write ;; esac -