Nopublish is always set so only check if it is in text
This commit is contained in:
parent
cdd255c5bb
commit
b23ade4cd8
@ -298,14 +298,14 @@ async def handle_pad(args, padid, data, info, session):
|
|||||||
ver = {"type": "text"}
|
ver = {"type": "text"}
|
||||||
versions.append(ver)
|
versions.append(ver)
|
||||||
ver["code"] = text["_code"]
|
ver["code"] = text["_code"]
|
||||||
|
|
||||||
if text["_code"] == 200:
|
if text["_code"] == 200:
|
||||||
text = text["data"]["text"]
|
text = text["data"]["text"]
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
## ENFORCE __NOPUBLISH__ MAGIC WORD
|
## ENFORCE __NOPUBLISH__ MAGIC WORD
|
||||||
##########################################
|
##########################################
|
||||||
if args.nopublish and args.nopublish in text:
|
if args.nopublish in text:
|
||||||
# NEED TO PURGE ANY EXISTING DOCS
|
|
||||||
try_deleting(
|
try_deleting(
|
||||||
(
|
(
|
||||||
p + raw_ext,
|
p + raw_ext,
|
||||||
|
Loading…
Reference in New Issue
Block a user