diff options
Diffstat (limited to 'server/models/actor/actor-follow.ts')
-rw-r--r-- | server/models/actor/actor-follow.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/actor/actor-follow.ts b/server/models/actor/actor-follow.ts index 0f199d208..71ce9fa6f 100644 --- a/server/models/actor/actor-follow.ts +++ b/server/models/actor/actor-follow.ts | |||
@@ -311,7 +311,7 @@ export class ActorFollowModel extends Model<Partial<AttributesOnly<ActorFollowMo | |||
311 | if (t.host) { | 311 | if (t.host) { |
312 | return { | 312 | return { |
313 | [Op.and]: [ | 313 | [Op.and]: [ |
314 | ActorModel.wherePreferredUsername(t.name, '$preferredUsername$'), | 314 | ActorModel.wherePreferredUsername(t.name), |
315 | { $host$: t.host } | 315 | { $host$: t.host } |
316 | ] | 316 | ] |
317 | } | 317 | } |
@@ -319,7 +319,7 @@ export class ActorFollowModel extends Model<Partial<AttributesOnly<ActorFollowMo | |||
319 | 319 | ||
320 | return { | 320 | return { |
321 | [Op.and]: [ | 321 | [Op.and]: [ |
322 | ActorModel.wherePreferredUsername(t.name, '$preferredUsername$'), | 322 | ActorModel.wherePreferredUsername(t.name), |
323 | { $serverId$: null } | 323 | { $serverId$: null } |
324 | ] | 324 | ] |
325 | } | 325 | } |