소스 검색

Make Tor publishing statuses consistent

This uses "[action] via hidden service" instead of "[action] to hidden
service". It also consistently uses "publishing" instead of "posting".
pull/41/head
Matt Baer 4 년 전
부모
커밋
f46c5717a7
1개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  1. +10
    -9
      commands/commands.go

+ 10
- 9
commands/commands.go 파일 보기

@@ -16,9 +16,9 @@ import (
func CmdPost(c *cli.Context) error {
_, err := api.DoPost(c, api.ReadStdIn(), c.String("font"), false, c.Bool("code"))
if config.IsTor(c) {
log.Info(c, "Posted to hidden service...")
log.Info(c, "Publishing via hidden service...")
} else {
log.Info(c, "Posted...")
log.Info(c, "Publishing...")
}

return err
@@ -42,9 +42,9 @@ func CmdNew(c *cli.Context) error {
}

if config.IsTor(c) {
log.Info(c, "Posting to hidden service...")
log.Info(c, "Publishing via hidden service...")
} else {
log.Info(c, "Posting...")
log.Info(c, "Publishing...")
}

_, err := api.DoPost(c, *p, c.String("font"), false, c.Bool("code"))
@@ -72,7 +72,7 @@ func CmdPublish(c *cli.Context) error {
}

if config.IsTor(c) {
log.Info(c, "Publishing to hidden service...")
log.Info(c, "Publishing via hidden service...")
} else {
log.Info(c, "Publishing...")
}
@@ -270,9 +270,10 @@ func CmdClaim(c *cli.Context) error {
return nil
}

log.Info(c, "Claiming %d post(s) for %s...", len(*localPosts), u.User.Username)
if config.IsTor(c) {
log.Info(c, "...via hidden service...")
log.Info(c, "Claiming %d post(s) for %s via hidden service...", len(*localPosts), u.User.Username)
} else {
log.Info(c, "Claiming %d post(s) for %s...", len(*localPosts), u.User.Username)
}

results, err := api.ClaimPosts(c, localPosts)
@@ -330,7 +331,7 @@ func CmdAuth(c *cli.Context) error {
}

if config.IsTor(c) {
log.Info(c, "Logging in to hidden service...")
log.Info(c, "Logging in via hidden service...")
} else {
log.Info(c, "Logging in...")
}
@@ -344,7 +345,7 @@ func CmdAuth(c *cli.Context) error {

func CmdLogOut(c *cli.Context) error {
if config.IsTor(c) {
log.Info(c, "Logging out of hidden service...")
log.Info(c, "Logging out via hidden service...")
} else {
log.Info(c, "Logging out...")
}


불러오는 중...
취소
저장