mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Fix bug
This commit is contained in:
parent
b288304ac3
commit
5e5c46545c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import { IFollow } from '../type';
|
|||
|
||||
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
|
||||
const prefix = config.url + '/@';
|
||||
const id = typeof activity == 'string' ? activity : activity.id;
|
||||
const id = typeof activity.object == 'string' ? activity.object : activity.object.id;
|
||||
|
||||
if (!id.startsWith(prefix)) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue