+
+async function refreshActor (actorUrl: string) {
+ const fetchType = 'all' as 'all'
+ const actor = await ActorModel.loadByUrlAndPopulateAccountAndChannel(actorUrl)
+
+ if (actor) {
+ await refreshActorIfNeeded(actor, fetchType)
+ }
+}
+
+async function refreshVideoPlaylist (playlistUrl: string) {
+ const playlist = await VideoPlaylistModel.loadByUrlAndPopulateAccount(playlistUrl)
+
+ if (playlist) {
+ await refreshVideoPlaylistIfNeeded(playlist)
+ }
+}