This commit is contained in:
SrGooglo 2023-02-27 09:15:29 +00:00
parent fb72644374
commit 993073143d
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import momentTimezone from "moment-timezone"
import { Post } from "../../../models"
import { Post } from "@models"
import getPostData from "./getPostData"
import flagNsfwByAttachments from "./flagNsfwByAttachments"

View File

@ -1,4 +1,4 @@
import { Post } from "../../../models"
import { Post } from "@models"
import getPostData from "./getPostData"
export default async (post_id, modification) => {
@ -25,7 +25,7 @@ export default async (post_id, modification) => {
}
global.websocket_instance.io.emit(`post.dataUpdate`, post)
global.websocket_instance.io.emit(`post.dataUpdate.${post_id._id}`, post)
global.websocket_instance.io.emit(`post.dataUpdate.${post_id}`, post)
return post
}