fixed image links on nonstandard suburls

This commit is contained in:
sose 2019-11-16 23:59:45 -05:00
parent b82ddcc207
commit 900d9e6f42
1 changed files with 3 additions and 3 deletions

View File

@ -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