tagid instead of tagname
This commit is contained in:
1 parent
52bfed6ed9
commit
bca0da0b18
2 files changed
+11
-11
No files matched your search
@@ -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