mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
several improvements
This commit is contained in:
parent
14fefd2cfc
commit
281070e961
@ -70,13 +70,6 @@ Factory.define('basicUser')
|
||||
termsAndConditionsAgreedAt: '2019-08-01T10:47:19.212Z',
|
||||
allowEmbedIframes: false,
|
||||
showShoutsPublicly: false,
|
||||
emailNotificationsCommentOnObservedPost: true,
|
||||
emailNotificationsPostByFollowedUser: true,
|
||||
emailNotificationsPostInGroup: true,
|
||||
emailNotificationsGroupMemberJoined: true,
|
||||
emailNotificationsGroupMemberLeft: true,
|
||||
emailNotificationsGroupMemberRemoved: true,
|
||||
emailNotificationsGroupMemberRoleChanged: true,
|
||||
locale: 'en',
|
||||
})
|
||||
.attr('slug', ['slug', 'name'], (slug, name) => {
|
||||
|
||||
@ -62,13 +62,6 @@ const createDefaultAdminUser = async (session) => {
|
||||
createdAt: toString(datetime()),
|
||||
allowEmbedIframes: false,
|
||||
showShoutsPublicly: false,
|
||||
emailNotificationsCommentOnObservedPost: true
|
||||
emailNotificationsPostByFollowedUser: true
|
||||
emailNotificationsPostInGroup: true
|
||||
emailNotificationsGroupMemberJoined: true
|
||||
emailNotificationsGroupMemberLeft: true
|
||||
emailNotificationsGroupMemberRemoved: true
|
||||
emailNotificationsGroupMemberRoleChanged: true
|
||||
deleted: false,
|
||||
disabled: false
|
||||
})-[:PRIMARY_EMAIL]->(e)`,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { getDriver } from '../../db/neo4j'
|
||||
|
||||
export const description = ''
|
||||
export const description = 'Transforms the `sendNotificationEmails` property on User to a multi value system'
|
||||
|
||||
export async function up(next) {
|
||||
const driver = getDriver()
|
||||
|
||||
@ -98,13 +98,6 @@ const signupCypher = (inviteCode) => {
|
||||
SET user.updatedAt = toString(datetime())
|
||||
SET user.allowEmbedIframes = false
|
||||
SET user.showShoutsPublicly = false
|
||||
SET user.emailNotificationsCommentOnObservedPost = true
|
||||
SET user.emailNotificationsPostByFollowedUser = true
|
||||
SET user.emailNotificationsPostInGroup = true
|
||||
SET user.emailNotificationsGroupMemberJoined = true
|
||||
SET user.emailNotificationsGroupMemberLeft = true
|
||||
SET user.emailNotificationsGroupMemberRemoved = true
|
||||
SET user.emailNotificationsGroupMemberRoleChanged = true
|
||||
SET email.verifiedAt = toString(datetime())
|
||||
WITH user
|
||||
OPTIONAL MATCH (post:Post)-[:IN]->(group:Group)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user