mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 03:23:07 +02:00
Fix bug
This commit is contained in:
parent
1472f0b141
commit
80c52433cc
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ const log = debug('misskey:activitypub');
|
||||||
export default async function(resolver: Resolver, actor: IRemoteUser, activity: IAnnounce, note: INote): Promise<void> {
|
export default async function(resolver: Resolver, actor: IRemoteUser, activity: IAnnounce, note: INote): Promise<void> {
|
||||||
const uri = activity.id || activity;
|
const uri = activity.id || activity;
|
||||||
|
|
||||||
|
// アナウンサーが凍結されていたらスキップ
|
||||||
|
if (actor.isSuspended) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof uri !== 'string') {
|
if (typeof uri !== 'string') {
|
||||||
throw new Error('invalid announce');
|
throw new Error('invalid announce');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue