復活したマストドン検索ポータルに対応。

This commit is contained in:
tateisu 2021-03-31 16:48:13 +09:00
parent 68c2d79ba8
commit ede2a81d82
5 changed files with 9 additions and 6 deletions

View File

@ -308,7 +308,10 @@ class SideMenuAdapter(
Item(),
Item(title = R.string.toot_search),
Item(icon = R.drawable.ic_search, title = R.string.mastodon_search_portal) {
addColumn(defaultInsertPosition, SavedAccount.na, ColumnType.SEARCH_MSP, "")
},
Item(icon = R.drawable.ic_search, title = R.string.tootsearch) {
addColumn(defaultInsertPosition, SavedAccount.na, ColumnType.SEARCH_TS, "")
},

View File

@ -11,8 +11,8 @@ import jp.juggler.util.*
import okhttp3.Request
object MspHelper {
private const val mspTokenUrl = "http://mastodonsearch.jp/api/v1.0.1/utoken"
private const val mspSearchUrl = "http://mastodonsearch.jp/api/v1.0.1/cross"
private const val mspTokenUrl = "https://msearch.fediverse.media/api/v1.0.1/utoken"
private const val mspSearchUrl = "https://msearch.fediverse.media/api/v1.0.1/cross"
private const val mspApiKey = "e53de7f66130208f62d1808672bf6320523dcd0873dc69bc"
// 検索結果からページネーション用IDを抽出する

View File

@ -1 +1 @@
powered by <a href="http://mastodonsearch.jp/">Mastodon Search Portal</a>, it indexes toots of instances in Japan.<br/>If you want to remove your toot from search result, please contact to <a href="https://mstdn.jp/@mastodonsearch">@mastodonsearch@mstdn.jp</a>.
powered by <a href="https://msearch.fediverse.media/">Mastodon Search Portal</a>, it indexes toots of instances in Japan.<br/>If you want to remove your toot from search result, please contact to <a href="https://geeks.cafe/@izwx">@izwx@geeks.cafe</a>.

View File

@ -1 +1 @@
powered by <a href="http://mastodonsearch.jp/">マストドン検索ポータル</a><br/>検索結果からあなたのトゥートを除外したい場合、<a href="https://mstdn.jp/@mastodonsearch">@mastodonsearch@mstdn.jp</a>に連絡してください。
powered by <a href="https://msearch.fediverse.media/">マストドン検索ポータル</a>.<br/>検索結果からあなたのトゥートを除外したい場合、<a href="https://geeks.cafe/@izwx">@izwx@geeks.cafe</a>に連絡してください。

View File

@ -403,7 +403,7 @@
<string name="toot_search_msp">Toot search (MSP)</string>
<string name="toot_search_ts">Toot search (ts)</string>
<string name="toot_search_notestock">notestock search</string>
<string name="mastodon_search_portal">MSP (JP)</string>
<string name="mastodon_search_portal">Mastodon search portal(JP)</string>
<string name="search_desc_mastodon_api">Account/hashtag search using Mastodon API.</string>
<string name="toot_search_of">Toot search \"%1$s\"</string>
<string name="toot_search_msp_of">Toot search (MSP) \"%1$s\"</string>