Browse Source

Nopublish is always set so only check if it is in text

main
Luke Murphy 4 years ago
parent
commit
b23ade4cd8
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      etherpump/commands/pull.py

4
etherpump/commands/pull.py

@ -298,14 +298,14 @@ async def handle_pad(args, padid, data, info, session):
ver = {"type": "text"}
versions.append(ver)
ver["code"] = text["_code"]
if text["_code"] == 200:
text = text["data"]["text"]
##########################################
## ENFORCE __NOPUBLISH__ MAGIC WORD
##########################################
if args.nopublish and args.nopublish in text:
# NEED TO PURGE ANY EXISTING DOCS
if args.nopublish in text:
try_deleting(
(
p + raw_ext,

Loading…
Cancel
Save