mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fixes
This commit is contained in:
parent
fb72644374
commit
993073143d
@ -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"
|
||||
|
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user