aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-27 10:13:31 +0100
committerChocobozzz <me@florianbigard.com>2019-11-27 10:29:27 +0100
commit2fa9c40e20ce386c9cdedd219f0753e14bda332a (patch)
tree0d21e3509fdba6134311e9b625ac6fdbb95e7447 /server/lib
parenta18bb55e9b72664dff4043785842d6d406dd15a3 (diff)
downloadPeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.tar.gz
PeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.tar.zst
PeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.zip
Fix tests
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/actor.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts
index 14dd1b9b9..f802658cf 100644
--- a/server/lib/activitypub/actor.ts
+++ b/server/lib/activitypub/actor.ts
@@ -177,7 +177,7 @@ async function updateActorAvatarInstance (actor: MActorDefault, info: AvatarInfo
177 177
178 if (actor.Avatar) { 178 if (actor.Avatar) {
179 // Don't update the avatar if the filename did not change 179 // Don't update the avatar if the filename did not change
180 if (actor.Avatar.filename === info.name) return actor 180 if (actor.Avatar.fileUrl === info.fileUrl) return actor
181 181
182 try { 182 try {
183 await actor.Avatar.destroy({ transaction: t }) 183 await actor.Avatar.destroy({ transaction: t })