dont ping users
This commit is contained in:
parent
12698bf1e8
commit
7650c60cdf
|
@ -38,6 +38,7 @@ export async function importPosts(
|
||||||
try {
|
try {
|
||||||
for (const post of JSON.parse(json)) {
|
for (const post of JSON.parse(json)) {
|
||||||
try {
|
try {
|
||||||
|
linenum++;
|
||||||
if (post.replyId != null) {
|
if (post.replyId != null) {
|
||||||
logger.info(`Is reply, skip [${linenum}] ...`);
|
logger.info(`Is reply, skip [${linenum}] ...`);
|
||||||
continue;
|
continue;
|
||||||
|
@ -66,11 +67,10 @@ export async function importPosts(
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
visibleUsers: [],
|
visibleUsers: [],
|
||||||
channel: null,
|
channel: null,
|
||||||
apMentions: undefined,
|
apMentions: null,
|
||||||
apHashtags: undefined,
|
apHashtags: undefined,
|
||||||
apEmojis: undefined,
|
apEmojis: undefined,
|
||||||
});
|
});
|
||||||
linenum++;
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.warn(`Error in line:${linenum} ${e}`);
|
logger.warn(`Error in line:${linenum} ${e}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue