Browse Source

#63

feature/063
みてるぞ 2 days ago
parent
commit
5c1295f0ff
4 changed files with 6 additions and 4 deletions
  1. +2
    -0
      backend/app/controllers/tags_controller.rb
  2. +1
    -1
      frontend/src/components/TagLink.tsx
  3. +2
    -2
      frontend/src/consts.ts
  4. +1
    -1
      frontend/src/pages/deerjikists/DeerjikistDetailPage.tsx

+ 2
- 0
backend/app/controllers/tags_controller.rb View File

@@ -434,5 +434,7 @@ class TagsController < ApplicationController
return canonical if canonical

html[/"channelId":"(UC[a-zA-Z0-9_-]{22})"/, 1] || html[/\bUC[a-zA-Z0-9_-]{22}\b/]
rescue
nil
end
end

+ 1
- 1
frontend/src/components/TagLink.tsx View File

@@ -55,7 +55,7 @@ export default (({ tag,
?
</PrefetchLink>)
: (
tag.hasWiki
tag.materialId != null
? (
<PrefetchLink
to={`/materials/${ tag.materialId }`}


+ 2
- 2
frontend/src/consts.ts View File

@@ -31,11 +31,11 @@ export const FETCH_POSTS_ORDER_FIELDS = [
'updated_at',
] as const

export const PLATFORMS = ['nico', 'youtube'] as const

export const PLATFORM_NAMES: Record<Platform, string> =
{ nico: 'ニコニコ', youtube: 'YouTube' } as const

export const PLATFORMS = ['nico', 'youtube'] as const

export const TAG_COLOUR = {
deerjikist: 'rose',
meme: 'purple',


+ 1
- 1
frontend/src/pages/deerjikists/DeerjikistDetailPage.tsx View File

@@ -65,7 +65,7 @@ export default (() => {

setData (deerjikists)
setDisabled (false)
}, [deerjikists])
}, [tag, deerjikists])

return (
<MainArea>


Loading…
Cancel
Save