mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-10 11:51:30 +03:00
Subscription's videos are now stripped from HTTP requests where they are not needed
This commit is contained in:
@@ -357,10 +357,12 @@ export class PostsService implements CanActivate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSubscription(subscription) {
|
updateSubscription(subscription) {
|
||||||
|
delete subscription['videos'];
|
||||||
return this.http.post(this.path + 'updateSubscription', {subscription: subscription}, this.httpOptions);
|
return this.http.post(this.path + 'updateSubscription', {subscription: subscription}, this.httpOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsubscribe(sub, deleteMode = false) {
|
unsubscribe(sub, deleteMode = false) {
|
||||||
|
delete sub['videos'];
|
||||||
return this.http.post(this.path + 'unsubscribe', {sub: sub, deleteMode: deleteMode}, this.httpOptions)
|
return this.http.post(this.path + 'unsubscribe', {sub: sub, deleteMode: deleteMode}, this.httpOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user