Fossil SCM

Internal wikiedit doc touchups.

stephan 2021-07-16 18:30 wikiedit-attachment-list
Commit a36cd610afc35aca77d2e6b64d9c51c62846e3ad65a3067f1a86a148a7ce5fd2
1 file changed +6 -5
+6 -5
--- src/wiki.c
+++ src/wiki.c
@@ -829,14 +829,15 @@
829829
CX("]");
830830
}
831831
}
832832
833833
/*
834
- ** Proxy for wiki_ajax_emit_page_attachments2() which attempts to
835
- ** load the given wiki page artifact and fails if it cannot.
836
- ** Returns true if it loads the page, else false.
837
- */
834
+** Proxy for wiki_ajax_emit_page_attachments() which attempts to
835
+** load the given wiki page artifact. Returns true if it loads the
836
+** page, else false. If it returns false then it queues up a 404 ajax
837
+** error response.
838
+*/
838839
static int wiki_ajax_emit_page_attachments2(const char *zPageName,
839840
int latestOnly,
840841
int nullIfEmpty){
841842
Manifest * pWiki = 0;
842843
if( !wiki_fetch_by_name(zPageName, 0, 0, &pWiki) ){
@@ -866,11 +867,11 @@
866867
** mimetype: "mimetype",
867868
** version: UUID string or null for a sandbox page,
868869
** parent: "parent uuid" or null if no parent,
869870
** isDeleted: true if the page has no content (is "deleted")
870871
** else not set (making it "falsy" in JS),
871
-** attachments: see wiki_ajax_emit_page_attachments()
872
+** attachments: see wiki_ajax_emit_page_attachments(),
872873
** content: "page content" (only if includeContent is true)
873874
** }
874875
**
875876
** If includeContent is false then the content member is elided.
876877
*/
877878
--- src/wiki.c
+++ src/wiki.c
@@ -829,14 +829,15 @@
829 CX("]");
830 }
831 }
832
833 /*
834 ** Proxy for wiki_ajax_emit_page_attachments2() which attempts to
835 ** load the given wiki page artifact and fails if it cannot.
836 ** Returns true if it loads the page, else false.
837 */
 
838 static int wiki_ajax_emit_page_attachments2(const char *zPageName,
839 int latestOnly,
840 int nullIfEmpty){
841 Manifest * pWiki = 0;
842 if( !wiki_fetch_by_name(zPageName, 0, 0, &pWiki) ){
@@ -866,11 +867,11 @@
866 ** mimetype: "mimetype",
867 ** version: UUID string or null for a sandbox page,
868 ** parent: "parent uuid" or null if no parent,
869 ** isDeleted: true if the page has no content (is "deleted")
870 ** else not set (making it "falsy" in JS),
871 ** attachments: see wiki_ajax_emit_page_attachments()
872 ** content: "page content" (only if includeContent is true)
873 ** }
874 **
875 ** If includeContent is false then the content member is elided.
876 */
877
--- src/wiki.c
+++ src/wiki.c
@@ -829,14 +829,15 @@
829 CX("]");
830 }
831 }
832
833 /*
834 ** Proxy for wiki_ajax_emit_page_attachments() which attempts to
835 ** load the given wiki page artifact. Returns true if it loads the
836 ** page, else false. If it returns false then it queues up a 404 ajax
837 ** error response.
838 */
839 static int wiki_ajax_emit_page_attachments2(const char *zPageName,
840 int latestOnly,
841 int nullIfEmpty){
842 Manifest * pWiki = 0;
843 if( !wiki_fetch_by_name(zPageName, 0, 0, &pWiki) ){
@@ -866,11 +867,11 @@
867 ** mimetype: "mimetype",
868 ** version: UUID string or null for a sandbox page,
869 ** parent: "parent uuid" or null if no parent,
870 ** isDeleted: true if the page has no content (is "deleted")
871 ** else not set (making it "falsy" in JS),
872 ** attachments: see wiki_ajax_emit_page_attachments(),
873 ** content: "page content" (only if includeContent is true)
874 ** }
875 **
876 ** If includeContent is false then the content member is elided.
877 */
878

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button