diff --git a/shi2.sh b/shi2.sh index 92dedb5..6d44b44 100755 --- a/shi2.sh +++ b/shi2.sh @@ -126,18 +126,18 @@ gen_post_html() { case "$post_type" in "oppost") post_url_path="$(echo "$post_url_path" \ | rev \ - | cut -f -4 -d '/' \ + | cut -f -3 -d '/' \ | rev)" ;; "reply") post_url_path="$(echo "$post_url_path" \ | rev \ - | cut -f -5 -d '/' \ + | cut -f -4 -d '/' \ | rev)" ;; esac - post_url_path="/$post_url_path" + post_url_path="$shi_sub_url/$post_url_path" if [ -z "$image_path" ] # if no image is found then