Remove unused actor uuid field

This commit is contained in:
Chocobozzz
2019-05-31 14:02:26 +02:00
parent 4c72c1cd41
commit 57cfff7885
26 changed files with 130 additions and 200 deletions

View File

@@ -39,7 +39,7 @@ async function expectAccountFollows (url: string, nameWithDomain: string, follow
expect(account.followingCount).to.equal(followingCount, message)
}
async function checkActorFilesWereRemoved (actorUUID: string, serverNumber: number) {
async function checkActorFilesWereRemoved (filename: string, serverNumber: number) {
const testDirectory = 'test' + serverNumber
for (const directory of [ 'avatars' ]) {
@@ -50,7 +50,7 @@ async function checkActorFilesWereRemoved (actorUUID: string, serverNumber: numb
const files = await readdir(directoryPath)
for (const file of files) {
expect(file).to.not.contain(actorUUID)
expect(file).to.not.contain(filename)
}
}
}

View File

@@ -524,7 +524,6 @@ async function completeVideoCheck (
expect(video.nsfw).to.equal(attributes.nsfw)
expect(video.description).to.equal(attributes.description)
expect(video.account.id).to.be.a('number')
expect(video.account.uuid).to.be.a('string')
expect(video.account.host).to.equal(attributes.account.host)
expect(video.account.name).to.equal(attributes.account.name)
expect(video.channel.displayName).to.equal(attributes.channel.displayName)

View File

@@ -21,7 +21,6 @@ export interface ActivityPubActor {
attributedTo: ActivityPubAttributedTo[]
support?: string
uuid: string
publicKey: {
id: string
owner: string

View File

@@ -10,7 +10,6 @@ export interface Account extends Actor {
export interface AccountSummary {
id: number
uuid: string
name: string
displayName: string
url: string

View File

@@ -2,7 +2,6 @@ import { Avatar } from '../avatars/avatar.model'
export interface Actor {
id: number
uuid: string
url: string
name: string
host: string

View File

@@ -12,7 +12,6 @@ export interface VideoChannel extends Actor {
export interface VideoChannelSummary {
id: number
uuid: string
name: string
displayName: string
url: string