aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/follow
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-25 16:14:11 +0200
committerChocobozzz <me@florianbigard.com>2021-08-26 10:01:42 +0200
commit98ab5dc81048d47d08a231f17698128f959e59b2 (patch)
tree7f74f835dc35d9f72918c56857f7f28b70d7053f /server/lib/notifier/shared/follow
parent851675c5591dcab1070183f0ed1b1a788de07d2c (diff)
downloadPeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip
Remove useless async
Diffstat (limited to 'server/lib/notifier/shared/follow')
-rw-r--r--server/lib/notifier/shared/follow/auto-follow-for-instance.ts2
-rw-r--r--server/lib/notifier/shared/follow/follow-for-instance.ts2
-rw-r--r--server/lib/notifier/shared/follow/follow-for-user.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts
index 16cc62984..01d2b3563 100644
--- a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts
+++ b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts
@@ -35,7 +35,7 @@ export class AutoFollowForInstance extends AbstractNotification <MActorFollowFul
35 return notification 35 return notification
36 } 36 }
37 37
38 async createEmail (to: string) { 38 createEmail (to: string) {
39 const instanceUrl = this.actorFollow.ActorFollowing.url 39 const instanceUrl = this.actorFollow.ActorFollowing.url
40 40
41 return { 41 return {
diff --git a/server/lib/notifier/shared/follow/follow-for-instance.ts b/server/lib/notifier/shared/follow/follow-for-instance.ts
index 9ab269cf1..a4a2fbf53 100644
--- a/server/lib/notifier/shared/follow/follow-for-instance.ts
+++ b/server/lib/notifier/shared/follow/follow-for-instance.ts
@@ -43,7 +43,7 @@ export class FollowForInstance extends AbstractNotification <MActorFollowFull> {
43 return notification 43 return notification
44 } 44 }
45 45
46 async createEmail (to: string) { 46 createEmail (to: string) {
47 const awaitingApproval = this.actorFollow.state === 'pending' 47 const awaitingApproval = this.actorFollow.state === 'pending'
48 ? ' awaiting manual approval.' 48 ? ' awaiting manual approval.'
49 : '' 49 : ''
diff --git a/server/lib/notifier/shared/follow/follow-for-user.ts b/server/lib/notifier/shared/follow/follow-for-user.ts
index 2d0f675a8..e579d4487 100644
--- a/server/lib/notifier/shared/follow/follow-for-user.ts
+++ b/server/lib/notifier/shared/follow/follow-for-user.ts
@@ -56,7 +56,7 @@ export class FollowForUser extends AbstractNotification <MActorFollowFull> {
56 return notification 56 return notification
57 } 57 }
58 58
59 async createEmail (to: string) { 59 createEmail (to: string) {
60 const following = this.actorFollow.ActorFollowing 60 const following = this.actorFollow.ActorFollowing
61 const follower = this.actorFollow.ActorFollower 61 const follower = this.actorFollow.ActorFollower
62 62