1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Refractor user quota SQL queries

This commit is contained in:
Chocobozzz 2018-08-28 18:29:29 +02:00
parent 41a676db39
commit 8b60488020
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 37 additions and 45 deletions

View file

@ -41,12 +41,10 @@ function setValidAttributedTo (obj: any) {
return true
}
const newAttributesTo = obj.attributedTo.filter(a => {
obj.attributedTo = obj.attributedTo.filter(a => {
return (a.type === 'Group' || a.type === 'Person') && isActivityPubUrlValid(a.id)
})
obj.attributedTo = newAttributesTo
return true
}