Ha! I just noticed that myself. Gaah, there's really is a lot to get lined 
up jut right to make things work smoothly in a miltu-user environment. I 
edited a wiki yesteredeay for hours before I noticed that I had reset my 
User Name somehow, and then when I added it back I noted the Drafts are 
already setup like that. :D

Best,
Joshua F

On Friday, May 22, 2020 at 4:51:59 AM UTC-7, Jed Carty wrote:
>
> If you have a username set it already saves drafts with the username.
>
> The relevant function in wiki.js is
>
> exports.generateDraftTitle = function(title) {
> var c = 0,
> draftTitle,
> username = this.getTiddlerText("$:/status/UserName"),
> attribution = username ? " by " + username : "";
> do {
> draftTitle = "Draft " + (c ? (c + 1) + " " : "") + "of '" + title + "'" + 
> attribution;
> c++;
> } while(this.tiddlerExists(draftTitle));
> return draftTitle;
> };
>
> so if you have a username set the draft tiddler gets a title in the form 
> 'draft of <tiddler> by <username>'
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/44410443-220c-40f4-b5a7-7066d769a854%40googlegroups.com.

Reply via email to