mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-10-30 19:58:07 +03:00
848f499def
For now we Create these activities, but we should just send them directly. This fix handles correctly direct Dislikes/Flags/Views, we'll implement the sending correctly these activities in the next peertube version
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import { isActivityPubUrlValid, isObjectValid } from './misc'
|
|
|
|
function isDislikeActivityValid (activity: any) {
|
|
return activity.type === 'Dislike' &&
|
|
isActivityPubUrlValid(activity.actor) &&
|
|
isObjectValid(activity.object)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
isDislikeActivityValid
|
|
}
|