mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix: add error prefix according to NIP-01
This commit is contained in:
parent
d278fc980a
commit
801e68c6c4
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ export class MuteListPolicy implements NPolicy {
|
||||||
const pubkeys = getTagSet(muteList?.tags ?? [], 'p');
|
const pubkeys = getTagSet(muteList?.tags ?? [], 'p');
|
||||||
|
|
||||||
if (pubkeys.has(event.pubkey)) {
|
if (pubkeys.has(event.pubkey)) {
|
||||||
return ['OK', event.id, false, 'You are banned in this server.'];
|
return ['OK', event.id, false, 'blocked: Your account has been deactivated.'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['OK', event.id, true, ''];
|
return ['OK', event.id, true, ''];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue