put with readonly uses put value
parent
aa8ca4d967
commit
a5fff37ba0
|
|
@ -148,6 +148,10 @@ crawl_with() {
|
|||
echo "$sum"
|
||||
)"
|
||||
ID="${ID%/}"
|
||||
if [ "${#expanded[@]}" == 1 ]; then
|
||||
ID="$pid"
|
||||
CONTENT="$(printf "%s\n\n%s", "$crawlable_source" "$CONTENT")"
|
||||
fi
|
||||
log " $ID ($TITLE): ${#CONTENT}"
|
||||
push_crawled "$ID" "$TITLE" "$CONTENT"
|
||||
log " /$ID ($TITLE): ${#CONTENT}"
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ notes() (
|
|||
_nncurl \
|
||||
-X PUT \
|
||||
-H "Title: $title" \
|
||||
-H "Read-Only: true" \
|
||||
-d "$body" \
|
||||
$NOTES_ADDR/api/v0/files/$id >&2
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ func (base Leaf) Merge(updated Leaf) Leaf {
|
|||
base.Meta.Title = "Untitled"
|
||||
}
|
||||
base.Meta.Deleted = updated.Meta.Deleted
|
||||
base.Meta.ReadOnly = updated.Meta.ReadOnly
|
||||
base.Content = updated.Content
|
||||
return base
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue