tagid instead of tagname
This commit is contained in:
@ -166,11 +166,11 @@ const flash = ({ type, msg }) => {
|
||||
e.preventDefault();
|
||||
let res;
|
||||
if(tags.includes("sfw")) {
|
||||
await deleteTag(postid, "sfw");
|
||||
await deleteTag(postid, 1);
|
||||
res = await addTag(postid, "nsfw");
|
||||
}
|
||||
else if(tags.includes("nsfw")) {
|
||||
await deleteTag(postid, "nsfw");
|
||||
await deleteTag(postid, 2);
|
||||
res = await addTag(postid, "sfw");
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user