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
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í
-
config/options.go
|
|
@@ -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 "" |
|
|
|
} |
|
|
|
|
|
|
|