diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-14 11:30:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-14 11:30:15 +0100 |
commit | 744d0eca195bce7dafeb4a958d0eb3c0046be32d (patch) | |
tree | 226c28f7fc63d1f6bf32095d7db0ef26a5b7073a /server/models | |
parent | bb8f7872f5a473c47a688b0c282ff34cd78a9835 (diff) | |
download | PeerTube-744d0eca195bce7dafeb4a958d0eb3c0046be32d.tar.gz PeerTube-744d0eca195bce7dafeb4a958d0eb3c0046be32d.tar.zst PeerTube-744d0eca195bce7dafeb4a958d0eb3c0046be32d.zip |
Refresh remote actors on GET enpoints
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/account/account.ts | 4 | ||||
-rw-r--r-- | server/models/video/video-channel.ts | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index a99e9b1ad..84ef0b30d 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -288,6 +288,10 @@ export class AccountModel extends Model<AccountModel> { | |||
288 | return this.Actor.isOwned() | 288 | return this.Actor.isOwned() |
289 | } | 289 | } |
290 | 290 | ||
291 | isOutdated () { | ||
292 | return this.Actor.isOutdated() | ||
293 | } | ||
294 | |||
291 | getDisplayName () { | 295 | getDisplayName () { |
292 | return this.name | 296 | return this.name |
293 | } | 297 | } |
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 86bf0461a..5598d80f6 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -470,4 +470,8 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
470 | getDisplayName () { | 470 | getDisplayName () { |
471 | return this.name | 471 | return this.name |
472 | } | 472 | } |
473 | |||
474 | isOutdated () { | ||
475 | return this.Actor.isOutdated() | ||
476 | } | ||
473 | } | 477 | } |