Skip to content

Commit 88032f7

Browse files
committed
Откат target post
1 parent 291749f commit 88032f7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

front/src/panels/Home.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const Home: FC<HomeProps> = (props) => {
4646
v: VK_API_VERSION,
4747
name: videoTitle,
4848
description: videoDescription,
49-
target: "post",
5049
// @ts-expect-error я манал ещё проперти эту обрабатывать, мне тупо впадлу
5150
group_id: group?.id
5251
}

src/main/java/ru/spliterash/vkVideoUnlocker/video/api/VideosImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class VideosImpl(
6060
.addQueryParameter("name", name)
6161
.addQueryParameter("privacy_view", if (private) "3" else "0")
6262
.addQueryParameter("group_id", groupId.toString())
63-
.addQueryParameter("target", "post")
63+
.apply { if (private) addQueryParameter("target", "post") }
6464
.build()
6565
)
6666
.build()

0 commit comments

Comments
 (0)