feat: remove featured posts whitelist
This commit is contained in:
parent
635c402aae
commit
908c25e9cc
|
|
@ -35,7 +35,7 @@ const shareList = [
|
|||
),
|
||||
onClick: (data: ShareData) => {
|
||||
window.open(
|
||||
`https://twitter.com/intent/tweet?url=${data.url}&text=${data.text}&via=XLog`,
|
||||
`https://twitter.com/intent/tweet?url=${data.url}&text=${data.text}&via=_xLog`,
|
||||
)
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import { ExpandedNote } from "~/lib/types"
|
|||
import { client } from "~/queries/graphql"
|
||||
|
||||
import filter from "../../data/filter.json"
|
||||
import titles from "../../data/titles.json"
|
||||
import topics from "../../data/topics.json"
|
||||
|
||||
export type FeedType =
|
||||
|
|
@ -555,7 +554,7 @@ export async function getFeed({
|
|||
const result = await client
|
||||
.query(
|
||||
gql`
|
||||
query getNotes($filter: [Int!], $limit: Int, $whitelist: [Int!]) {
|
||||
query getNotes($filter: [Int!], $limit: Int) {
|
||||
notes(
|
||||
where: {
|
||||
characterId: {
|
||||
|
|
@ -585,12 +584,6 @@ export async function getFeed({
|
|||
},
|
||||
},
|
||||
},
|
||||
# Or in the whitelist
|
||||
{
|
||||
characterId: {
|
||||
in: $whitelist
|
||||
},
|
||||
},
|
||||
# Or have received comments
|
||||
{
|
||||
fromNotes: {
|
||||
|
|
@ -627,10 +620,6 @@ export async function getFeed({
|
|||
{
|
||||
filter: filter.latest,
|
||||
limit,
|
||||
whitelist: titles.reduce((acc, cur) => {
|
||||
acc = acc.concat(cur.list)
|
||||
return acc
|
||||
}, [] as number[]),
|
||||
},
|
||||
)
|
||||
.toPromise()
|
||||
|
|
|
|||
Loading…
Reference in New Issue