feat: remove featured posts whitelist

This commit is contained in:
DIYgod 2023-07-24 17:23:29 +01:00
parent 635c402aae
commit 908c25e9cc
No known key found for this signature in database
2 changed files with 2 additions and 13 deletions

View File

@ -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`,
)
},
},

View File

@ -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()