diff options
Diffstat (limited to 'server/types/models/actor')
-rw-r--r-- | server/types/models/actor/actor-follow.ts | 4 | ||||
-rw-r--r-- | server/types/models/actor/actor.ts | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/server/types/models/actor/actor-follow.ts b/server/types/models/actor/actor-follow.ts index 338158561..84042e228 100644 --- a/server/types/models/actor/actor-follow.ts +++ b/server/types/models/actor/actor-follow.ts | |||
@@ -7,7 +7,7 @@ import { | |||
7 | MActorDefaultAccountChannel, | 7 | MActorDefaultAccountChannel, |
8 | MActorDefaultChannelId, | 8 | MActorDefaultChannelId, |
9 | MActorFormattable, | 9 | MActorFormattable, |
10 | MActorHost, | 10 | MActorHostOnly, |
11 | MActorUsername | 11 | MActorUsername |
12 | } from './actor' | 12 | } from './actor' |
13 | 13 | ||
@@ -21,7 +21,7 @@ export type MActorFollow = Omit<ActorFollowModel, 'ActorFollower' | 'ActorFollow | |||
21 | 21 | ||
22 | export type MActorFollowFollowingHost = | 22 | export type MActorFollowFollowingHost = |
23 | MActorFollow & | 23 | MActorFollow & |
24 | Use<'ActorFollowing', MActorUsername & MActorHost> | 24 | Use<'ActorFollowing', MActorUsername & MActorHostOnly> |
25 | 25 | ||
26 | // ############################################################################ | 26 | // ############################################################################ |
27 | 27 | ||
diff --git a/server/types/models/actor/actor.ts b/server/types/models/actor/actor.ts index 280256bab..47e7b7091 100644 --- a/server/types/models/actor/actor.ts +++ b/server/types/models/actor/actor.ts | |||
@@ -29,7 +29,11 @@ export type MActorLight = Omit<MActor, 'privateKey' | 'privateKey'> | |||
29 | 29 | ||
30 | // Some association attributes | 30 | // Some association attributes |
31 | 31 | ||
32 | export type MActorHost = Use<'Server', MServerHost> | 32 | export type MActorHostOnly = Use<'Server', MServerHost> |
33 | export type MActorHost = | ||
34 | MActorLight & | ||
35 | Use<'Server', MServerHost> | ||
36 | |||
33 | export type MActorRedundancyAllowedOpt = PickWithOpt<ActorModel, 'Server', MServerRedundancyAllowed> | 37 | export type MActorRedundancyAllowedOpt = PickWithOpt<ActorModel, 'Server', MServerRedundancyAllowed> |
34 | 38 | ||
35 | export type MActorDefaultLight = | 39 | export type MActorDefaultLight = |
@@ -68,8 +72,8 @@ export type MActorChannel = | |||
68 | 72 | ||
69 | export type MActorDefaultAccountChannel = MActorDefault & MActorAccount & MActorChannel | 73 | export type MActorDefaultAccountChannel = MActorDefault & MActorAccount & MActorChannel |
70 | 74 | ||
71 | export type MActorServer = | 75 | export type MActorServerLight = |
72 | MActor & | 76 | MActorLight & |
73 | Use<'Server', MServer> | 77 | Use<'Server', MServer> |
74 | 78 | ||
75 | // ############################################################################ | 79 | // ############################################################################ |