Remove withReplies NAND withFiles check

This commit is contained in:
jaina heartles 2024-02-27 14:13:48 -08:00
parent 86a77a9dba
commit 6e0f7195b3

View file

@ -86,8 +86,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const serverSettings = await this.metaService.fetch(); const serverSettings = await this.metaService.fetch();
if (ps.withReplies && ps.withFiles) throw new ApiError(meta.errors.bothWithRepliesAndWithFiles);
// early return if me is blocked by requesting user // early return if me is blocked by requesting user
if (me != null) { if (me != null) {
const userIdsWhoBlockingMe = await this.cacheService.userBlockedCache.fetch(me.id); const userIdsWhoBlockingMe = await this.cacheService.userBlockedCache.fetch(me.id);