| @@ -434,5 +434,7 @@ class TagsController < ApplicationController | |||||
| return canonical if canonical | return canonical if canonical | ||||
| html[/"channelId":"(UC[a-zA-Z0-9_-]{22})"/, 1] || html[/\bUC[a-zA-Z0-9_-]{22}\b/] | html[/"channelId":"(UC[a-zA-Z0-9_-]{22})"/, 1] || html[/\bUC[a-zA-Z0-9_-]{22}\b/] | ||||
| rescue | |||||
| nil | |||||
| end | end | ||||
| end | end | ||||
| @@ -55,7 +55,7 @@ export default (({ tag, | |||||
| ? | ? | ||||
| </PrefetchLink>) | </PrefetchLink>) | ||||
| : ( | : ( | ||||
| tag.hasWiki | |||||
| tag.materialId != null | |||||
| ? ( | ? ( | ||||
| <PrefetchLink | <PrefetchLink | ||||
| to={`/materials/${ tag.materialId }`} | to={`/materials/${ tag.materialId }`} | ||||
| @@ -31,11 +31,11 @@ export const FETCH_POSTS_ORDER_FIELDS = [ | |||||
| 'updated_at', | 'updated_at', | ||||
| ] as const | ] as const | ||||
| export const PLATFORMS = ['nico', 'youtube'] as const | |||||
| export const PLATFORM_NAMES: Record<Platform, string> = | export const PLATFORM_NAMES: Record<Platform, string> = | ||||
| { nico: 'ニコニコ', youtube: 'YouTube' } as const | { nico: 'ニコニコ', youtube: 'YouTube' } as const | ||||
| export const PLATFORMS = ['nico', 'youtube'] as const | |||||
| export const TAG_COLOUR = { | export const TAG_COLOUR = { | ||||
| deerjikist: 'rose', | deerjikist: 'rose', | ||||
| meme: 'purple', | meme: 'purple', | ||||
| @@ -65,7 +65,7 @@ export default (() => { | |||||
| setData (deerjikists) | setData (deerjikists) | ||||
| setDisabled (false) | setDisabled (false) | ||||
| }, [deerjikists]) | |||||
| }, [tag, deerjikists]) | |||||
| return ( | return ( | ||||
| <MainArea> | <MainArea> | ||||