Prepare Dislike/Flag/View fixes
authorChocobozzz <me@florianbigard.com>
Tue, 15 Jan 2019 10:14:12 +0000 (11:14 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Jan 2019 13:45:09 +0000 (14:45 +0100)
commit848f499def54db2dd36437ef0dfb74dd5041c23b
tree13e6fcd30e3ce5306d5999fc91561af54d9fd20e
parent44b9c0ba31c4a97e3d874f33226ad935c3a90dd5
Prepare Dislike/Flag/View fixes

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
30 files changed:
server/helpers/activitypub.ts
server/helpers/custom-validators/activitypub/activity.ts
server/helpers/custom-validators/activitypub/actor.ts
server/helpers/custom-validators/activitypub/announce.ts [deleted file]
server/helpers/custom-validators/activitypub/cache-file.ts
server/helpers/custom-validators/activitypub/flag.ts [new file with mode: 0644]
server/helpers/custom-validators/activitypub/misc.ts
server/helpers/custom-validators/activitypub/rate.ts
server/helpers/custom-validators/activitypub/undo.ts [deleted file]
server/helpers/custom-validators/activitypub/video-comments.ts
server/helpers/custom-validators/activitypub/videos.ts
server/helpers/custom-validators/activitypub/view.ts
server/lib/activitypub/actor.ts
server/lib/activitypub/process/process-accept.ts
server/lib/activitypub/process/process-create.ts
server/lib/activitypub/process/process-dislike.ts [new file with mode: 0644]
server/lib/activitypub/process/process-flag.ts [new file with mode: 0644]
server/lib/activitypub/process/process-follow.ts
server/lib/activitypub/process/process-like.ts
server/lib/activitypub/process/process-undo.ts
server/lib/activitypub/process/process-view.ts [new file with mode: 0644]
server/lib/activitypub/process/process.ts
server/lib/activitypub/share.ts
server/lib/activitypub/video-rates.ts
server/lib/activitypub/videos.ts
server/tests/api/check-params/contact-form.ts
server/tests/api/server/redundancy.ts [deleted file]
server/tests/api/server/stats.ts
shared/models/activitypub/activity.ts
shared/models/activitypub/objects/object.model.ts [new file with mode: 0644]