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:
parent
41a676db39
commit
8b60488020
4 changed files with 37 additions and 45 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue