mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Remove comments
This commit is contained in:
parent
00d5f58b00
commit
14a689d955
@ -747,233 +747,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
|
||||
trollingComment.update({ disabled: true, updatedAt: new Date().toISOString(), closed: true }),
|
||||
])
|
||||
|
||||
// There is no error logged or the 'try' fails if this mutation is wrong. Why?
|
||||
// const reportMutation = gql`
|
||||
// mutation($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
|
||||
// report(
|
||||
// resourceId: $resourceId
|
||||
// reasonCategory: $reasonCategory
|
||||
// reasonDescription: $reasonDescription
|
||||
// ) {
|
||||
// type
|
||||
// }
|
||||
// }
|
||||
// `
|
||||
// authenticatedUser = await huey.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p11',
|
||||
// reasonCategory: 'discrimination_etc',
|
||||
// reasonDescription: 'I am what I am !!!',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'c5',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: "This shouldn't be shown to anybody else! It's my privat thing!",
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'c1',
|
||||
// reasonCategory: 'other',
|
||||
// reasonDescription: 'This comment is bigoted',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p1',
|
||||
// reasonCategory: 'discrimination_etc',
|
||||
// reasonDescription: 'This post is bigoted',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: 'OMG my data !!!',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'u1',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: 'This user is harassing me with bigoted remarks',
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = await dewey.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'c5',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: "That's my friends privat data!",
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'c1',
|
||||
// reasonCategory: 'pornographic_content_links',
|
||||
// reasonDescription: 'This comment is porno!!!',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p1',
|
||||
// reasonCategory: 'intentional_intimidation_stalking_persecution',
|
||||
// reasonDescription: '',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'intentional_intimidation_stalking_persecution',
|
||||
// reasonDescription: '',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'u1',
|
||||
// reasonCategory: 'glorific_trivia_of_cruel_inhuman_acts',
|
||||
// reasonDescription: 'murder',
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = null
|
||||
|
||||
// only review resource after report !!!
|
||||
// const reviewMutation = gql`
|
||||
// mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
||||
// review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
||||
// disable
|
||||
// }
|
||||
// }
|
||||
// `
|
||||
// const disableVariables = {
|
||||
// resourceId: 'undefined-resource',
|
||||
// disable: true,
|
||||
// closed: false,
|
||||
// }
|
||||
// authenticatedUser = await bobDerBaumeister.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reviewMutation,
|
||||
// variables: {
|
||||
// ...disableVariables,
|
||||
// resourceId: 'p2',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reviewMutation,
|
||||
// variables: {
|
||||
// ...disableVariables,
|
||||
// resourceId: 'p11',
|
||||
// },
|
||||
// }),
|
||||
// mutate({
|
||||
// mutation: reviewMutation,
|
||||
// variables: {
|
||||
// ...disableVariables,
|
||||
// resourceId: 'c5',
|
||||
// closed: true,
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = await peterLustig.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reviewMutation,
|
||||
// variables: {
|
||||
// ...disableVariables,
|
||||
// resourceId: 'p2',
|
||||
// disable: false,
|
||||
// closed: true,
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = null
|
||||
|
||||
// report resource after closing of the report
|
||||
// authenticatedUser = await bobDerBaumeister.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: "That's my friends privat data!",
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// // report resource second time after closing of the report
|
||||
// authenticatedUser = await jennyRostock.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: 'I think it is my friends data!',
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = null
|
||||
|
||||
// // third review of resource and close report
|
||||
// authenticatedUser = await bobDerBaumeister.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reviewMutation,
|
||||
// variables: {
|
||||
// ...disableVariables,
|
||||
// resourceId: 'p2',
|
||||
// disable: true,
|
||||
// closed: true,
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = null
|
||||
|
||||
// // report resource after second closing of the report
|
||||
// authenticatedUser = await huey.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: "That's my privat data!",
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// // report resource second time after second closing of the report
|
||||
// authenticatedUser = await jennyRostock.toJson()
|
||||
// await Promise.all([
|
||||
// mutate({
|
||||
// mutation: reportMutation,
|
||||
// variables: {
|
||||
// resourceId: 'p2',
|
||||
// reasonCategory: 'doxing',
|
||||
// reasonDescription: 'I think it is my friends data again!',
|
||||
// },
|
||||
// }),
|
||||
// ])
|
||||
// authenticatedUser = null
|
||||
|
||||
await Promise.all(
|
||||
[...Array(30).keys()].map(i => {
|
||||
return factory.create('User')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user