diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-23 07:21:52 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-23 07:21:52 +0900 |
| commit | f0818edd6e1d566a3d7e2b5495eeb389d728f564 (patch) | |
| tree | 94c12aa77cf479319e94fc803351f1c540c74727 /src/web | |
| parent | #1034 (diff) | |
| download | sharkey-f0818edd6e1d566a3d7e2b5495eeb389d728f564.tar.gz sharkey-f0818edd6e1d566a3d7e2b5495eeb389d728f564.tar.bz2 sharkey-f0818edd6e1d566a3d7e2b5495eeb389d728f564.zip | |
#1037 #1038
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/common/scripts/parse-search-query.ts | 5 | ||||
| -rw-r--r-- | src/web/docs/search.ja.pug | 19 |
2 files changed, 22 insertions, 2 deletions
diff --git a/src/web/app/common/scripts/parse-search-query.ts b/src/web/app/common/scripts/parse-search-query.ts index c021ee6417..512791ecb0 100644 --- a/src/web/app/common/scripts/parse-search-query.ts +++ b/src/web/app/common/scripts/parse-search-query.ts @@ -8,7 +8,10 @@ export default function(qs: string) { const [key, value] = x.split(':'); switch (key) { case 'user': - q['username'] = value; + q['include_user_usernames'] = value.split(','); + break; + case 'exclude_user': + q['exclude_user_usernames'] = value.split(','); break; case 'follow': q['following'] = value == 'null' ? null : value == 'true'; diff --git a/src/web/docs/search.ja.pug b/src/web/docs/search.ja.pug index 9e64789488..f33091ee6b 100644 --- a/src/web/docs/search.ja.pug +++ b/src/web/docs/search.ja.pug @@ -31,7 +31,24 @@ section tbody tr td user - td ユーザー名。投稿者を限定します。 + td + | 指定されたユーザー名のユーザーの投稿に限定します。 + | 「,」(カンマ)で区切って、複数ユーザーを指定することもできます。 + br + | 例えば、 + code user:himawari,sakurako + | と検索すると「@himawariまたは@sakurakoの投稿」だけに限定します。 + | (つまりユーザーのホワイトリストです) + tr + td exclude_user + td + | 指定されたユーザー名のユーザーの投稿を除外します。 + | 「,」(カンマ)で区切って、複数ユーザーを指定することもできます。 + br + | 例えば、 + code exclude_user:akari,chinatsu + | と検索すると「@akariまたは@chinatsu以外の投稿」に限定します。 + | (つまりユーザーのブラックリストです) tr td follow td |