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
13 lines
336 B
TypeScript
13 lines
336 B
TypeScript
import { isActivityPubUrlValid } from './misc'
|
|
|
|
function isViewActivityValid (activity: any) {
|
|
return activity.type === 'View' &&
|
|
isActivityPubUrlValid(activity.actor) &&
|
|
isActivityPubUrlValid(activity.object)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
isViewActivityValid
|
|
}
|