From e028a852f68558f3eb910ad38f82da5e8af932cf Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 12 Aug 2022 19:39:48 +0200 Subject: [PATCH] remove more code referencing promo notes --- packages/backend/src/server/api/endpoints.ts | 4 ---- packages/client/src/components/note.vue | 8 -------- 2 files changed, 12 deletions(-) diff --git a/packages/backend/src/server/api/endpoints.ts b/packages/backend/src/server/api/endpoints.ts index 372fd503f..5a70d1a4f 100644 --- a/packages/backend/src/server/api/endpoints.ts +++ b/packages/backend/src/server/api/endpoints.ts @@ -33,7 +33,6 @@ import * as ep___admin_getTableStats from './endpoints/admin/get-table-stats.js' import * as ep___admin_invite from './endpoints/admin/invite.js'; import * as ep___admin_moderators_add from './endpoints/admin/moderators/add.js'; import * as ep___admin_moderators_remove from './endpoints/admin/moderators/remove.js'; -import * as ep___admin_promo_create from './endpoints/admin/promo/create.js'; import * as ep___admin_queue_clear from './endpoints/admin/queue/clear.js'; import * as ep___admin_queue_deliverDelayed from './endpoints/admin/queue/deliver-delayed.js'; import * as ep___admin_queue_inboxDelayed from './endpoints/admin/queue/inbox-delayed.js'; @@ -261,7 +260,6 @@ import * as ep___pages_unlike from './endpoints/pages/unlike.js'; import * as ep___pages_update from './endpoints/pages/update.js'; import * as ep___ping from './endpoints/ping.js'; import * as ep___pinnedUsers from './endpoints/pinned-users.js'; -import * as ep___promo_read from './endpoints/promo/read.js'; import * as ep___requestResetPassword from './endpoints/request-reset-password.js'; import * as ep___resetDb from './endpoints/reset-db.js'; import * as ep___resetPassword from './endpoints/reset-password.js'; @@ -342,7 +340,6 @@ const eps = [ ['admin/invite', ep___admin_invite], ['admin/moderators/add', ep___admin_moderators_add], ['admin/moderators/remove', ep___admin_moderators_remove], - ['admin/promo/create', ep___admin_promo_create], ['admin/queue/clear', ep___admin_queue_clear], ['admin/queue/deliver-delayed', ep___admin_queue_deliverDelayed], ['admin/queue/inbox-delayed', ep___admin_queue_inboxDelayed], @@ -570,7 +567,6 @@ const eps = [ ['pages/update', ep___pages_update], ['ping', ep___ping], ['pinned-users', ep___pinnedUsers], - ['promo/read', ep___promo_read], ['request-reset-password', ep___requestResetPassword], ['reset-db', ep___resetDb], ['reset-password', ep___resetPassword], diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index 64607136f..f3aabee26 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -11,7 +11,6 @@ >
{{ i18n.ts.pinnedNote }}
-
{{ i18n.ts.promotion }}
{{ i18n.ts.featured }}
@@ -282,13 +281,6 @@ function focusBefore() { function focusAfter() { focusNext(el.value); } - -function readPromo() { - os.api('promo/read', { - noteId: appearNote.id, - }); - isDeleted.value = true; -}