Skip to content

Commit 1da4849

Browse files
author
Anthony Wang
committed
Merge remote-tracking branch 'github/feature-activitypub' into feature-activitypub
2 parents 14cfd8d + c05bad8 commit 1da4849

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

options/locale/locale_zh-CN.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ size_error=长度必须为 %s。
443443
min_size_error=长度最小为 %s 个字符。
444444
max_size_error=长度最大为 %s 个字符。
445445
email_error=不是一个有效的邮箱地址。
446+
url_error=`'%s' 不是一个有效的 URL。`
446447
include_error=`必须包含子字符串 '%s'。`
447448
glob_pattern_error=`匹配模式无效:%s.`
448449
regex_pattern_error=`正则表达式无效:%s.`

routers/api/v1/activitypub/person.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ func Person(ctx *context.APIContext) {
5959
URL: ap.IRI(ctx.ContextUser.AvatarLink()),
6060
}
6161

62-
person.Inbox = nil
6362
person.Inbox, _ = ap.Inbox.AddTo(person)
64-
person.Outbox = nil
6563
person.Outbox, _ = ap.Outbox.AddTo(person)
6664

6765
person.PublicKey.ID = ap.IRI(link + "#main-key")

0 commit comments

Comments
 (0)