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")
|
case "$post_type" in "oppost")
|
||||||
post_url_path="$(echo "$post_url_path" \
|
post_url_path="$(echo "$post_url_path" \
|
||||||
| rev \
|
| rev \
|
||||||
| cut -f -4 -d '/' \
|
| cut -f -3 -d '/' \
|
||||||
| rev)"
|
| rev)"
|
||||||
;;
|
;;
|
||||||
"reply")
|
"reply")
|
||||||
post_url_path="$(echo "$post_url_path" \
|
post_url_path="$(echo "$post_url_path" \
|
||||||
| rev \
|
| rev \
|
||||||
| cut -f -5 -d '/' \
|
| cut -f -4 -d '/' \
|
||||||
| rev)"
|
| rev)"
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
if [ -z "$image_path" ] # if no image is found
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue