Stop null Posting
I hope it works!
This commit is contained in:
1 parent
9fe4f0a436
commit
ebd5ffa58b
1 file changed
+3
-2
@@ -16,11 +16,12 @@ title=$(echo "$item" | jq -r '.title')
|
|||||||
url=$(echo "$item" | jq -r '.url')
|
url=$(echo "$item" | jq -r '.url')
|
||||||
|
|
||||||
# Make sure to stop if the RSS-Bridge is offline or the extraction failed
|
# Make sure to stop if the RSS-Bridge is offline or the extraction failed
|
||||||
if [ -z "$url" ]; then
|
if [ "$url" == "null" ]; then
|
||||||
echo "URL is empty, exiting script"
|
|
||||||
exit 1
|
exit 1
|
||||||
|
INSTANCE_URL="https://failed.dhusch.de" # am not sure if the exit actually works. But don't want the Bot to do anything.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
tags=$(echo "$item" | jq -r '.tags') # Needed for NSFW check
|
tags=$(echo "$item" | jq -r '.tags') # Needed for NSFW check
|
||||||
|
|
||||||
# extract the image URL from the content_html
|
# extract the image URL from the content_html
|
||||||
|
|||||||
Reference in new issue
Block a user