Browse Source

fixed image links on nonstandard suburls

master
sose 2 years ago
parent
commit
900d9e6f42
  1. 6
      shi2.sh

6
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

Loading…
Cancel
Save