mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 19:17:09 +08:00
use getModerationLink helper in moderateSearchBar (#2885)
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
This commit is contained in:
+6
-2
@@ -97,7 +97,7 @@ function getContextOptionsWhenModeratingStory(
|
||||
{
|
||||
element: (
|
||||
<Option
|
||||
href={`/admin/moderate/${story.id}`}
|
||||
href={getModerationLink({ storyID: story.id })}
|
||||
details={story.metadata && story.metadata.author}
|
||||
>
|
||||
<GoToAriaInfo /> {story.metadata && story.metadata.title}
|
||||
@@ -180,7 +180,10 @@ function useSearchOptions(
|
||||
nextSearchOptions.push({
|
||||
element: (
|
||||
<Option
|
||||
href={getModerationLink({ storyID: e.node.id })}
|
||||
href={getModerationLink({
|
||||
storyID: e.node.id,
|
||||
siteID: e.node.site.id,
|
||||
})}
|
||||
details={
|
||||
<Flex itemGutter>
|
||||
<strong>{e.node.site.name}</strong>
|
||||
@@ -311,6 +314,7 @@ const enhanced = withRouter(
|
||||
id
|
||||
site {
|
||||
name
|
||||
id
|
||||
}
|
||||
metadata {
|
||||
title
|
||||
|
||||
@@ -26,6 +26,7 @@ const SearchStoryFetch = createFetch(
|
||||
id
|
||||
site {
|
||||
name
|
||||
id
|
||||
}
|
||||
metadata {
|
||||
title
|
||||
|
||||
Reference in New Issue
Block a user