Fossil

Changes On Branch forum-edit-deltify
Login

Changes On Branch forum-edit-deltify

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch forum-edit-deltify Excluding Merge-Ins

This is equivalent to a diff from 87e3ad3132 to a2b0ed37af

2020-05-28
08:55
Editing forum posts now applies delta compression to the edits. ... (check-in: 5b7888c994 user: stephan tags: trunk)
2020-05-26
15:54
Attempt to fix markdown rendering so that it correctly ignores table column separators that are contained without "code-span" back-ticks. ... (check-in: d6058989ed user: drh tags: trunk)
07:16
Merged in trunk. ... (Closed-Leaf check-in: 58ee06450c user: stephan tags: unaddremove-command)
06:56
merged in trunk ... (Closed-Leaf check-in: a2b0ed37af user: stephan tags: forum-edit-deltify)
06:47
merged in trunk. ... (Closed-Leaf check-in: fe018289e3 user: stephan tags: style-css-revamp)
06:43
Merged in trunk. ... (check-in: 559807ba86 user: stephan tags: fileedit-ajaxify)
2020-05-25
23:40
Update the changes log to include a date for 2.11 and to add a place-holder to begin recording 2.12 changes. ... (check-in: 87e3ad3132 user: drh tags: trunk)
23:23
Version 2.11 ... (check-in: 4df919803b user: drh tags: trunk, release, version-2.11)
2020-05-12
21:36
Merged in trunk. ... (check-in: a2ec603335 user: stephan tags: forum-edit-deltify)

Changes to src/content.c.
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
**
** Never generate a delta that carries a private artifact into a public
** artifact.  Otherwise, when we go to send the public artifact on a
** sync operation, the other end of the sync will never be able to receive
** the source of the delta.  It is OK to delta private->private and
** public->private and public->public.  Just no private->public delta.
**
** If aSrc[bestSrc] is already a dleta that depends on rid, then it is
** converted to undeltaed text before the aSrc[bestSrc]->rid delta is
** created, in order to prevent a delta loop.
**
** If either rid or aSrc[i] contain less than 50 bytes, or if the
** resulting delta does not achieve a compression of at least 25%
** the rid is left untouched.
**







|







803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
**
** Never generate a delta that carries a private artifact into a public
** artifact.  Otherwise, when we go to send the public artifact on a
** sync operation, the other end of the sync will never be able to receive
** the source of the delta.  It is OK to delta private->private and
** public->private and public->public.  Just no private->public delta.
**
** If aSrc[bestSrc] is already a delta that depends on rid, then it is
** converted to undeltaed text before the aSrc[bestSrc]->rid delta is
** created, in order to prevent a delta loop.
**
** If either rid or aSrc[i] contain less than 50 bytes, or if the
** resulting delta does not achieve a compression of at least 25%
** the rid is left untouched.
**
Changes to src/forum.c.
991
992
993
994
995
996
997
998


999
1000
1001
1002
1003
1004
1005
    @ <div class='debug'>
    @ This is the artifact that would have been generated:
    @ <pre>%h(blob_str(&x))</pre>
    @ </div>
    blob_reset(&x);
    return 0;
  }else{
    int nrid = wiki_put(&x, 0, forum_need_moderation());


    cgi_redirectf("%R/forumpost/%S", rid_to_uuid(nrid));
    return 1;
  }
}

/*
** Paint the form elements for entering a Forum post







|
>
>







991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
    @ <div class='debug'>
    @ This is the artifact that would have been generated:
    @ <pre>%h(blob_str(&x))</pre>
    @ </div>
    blob_reset(&x);
    return 0;
  }else{
    int nrid = wiki_put(&x, iEdit>0 ? iEdit : 0,
                        forum_need_moderation());
    blob_reset(&x);
    cgi_redirectf("%R/forumpost/%S", rid_to_uuid(nrid));
    return 1;
  }
}

/*
** Paint the form elements for entering a Forum post