fixed image links on nonstandard suburls
This commit is contained in:
parent
b82ddcc207
commit
900d9e6f42
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…
Reference in New Issue