Procházet zdrojové kódy

default to user collection

new posts, when no flag is specified for blog or collection, will now
default to the user collection. that is the username.
pull/36/head
Rob Loranger před 5 roky
rodič
revize
3f8b0d0c6e
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: D6F1633A4F0903B8
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      config/options.go

+ 4
- 0
config/options.go Zobrazit soubor

@@ -53,6 +53,10 @@ func Collection(c *cli.Context) string {
if coll := c.String("b"); coll != "" {
return coll
}
u, _ := LoadUser(c)
if u != nil {
return u.User.Username
}
return ""
}



Načítá se…
Zrušit
Uložit