diff --git a/src/client/app/mobile/views/pages/user/home.vue b/src/client/app/mobile/views/pages/user/home.vue
index 915cd1146..09b4c3f26 100644
--- a/src/client/app/mobile/views/pages/user/home.vue
+++ b/src/client/app/mobile/views/pages/user/home.vue
@@ -31,7 +31,6 @@
-
{{ $t('last-used-at') }}:
diff --git a/src/server/api/endpoints/i.ts b/src/server/api/endpoints/i.ts
index aea47ad79..b14a93490 100644
--- a/src/server/api/endpoints/i.ts
+++ b/src/server/api/endpoints/i.ts
@@ -27,11 +27,4 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => {
includeHasUnreadNotes: true,
includeSecrets: isSecure
}));
-
- // Update lastUsedAt
- User.update({ _id: user._id }, {
- $set: {
- lastUsedAt: new Date()
- }
- });
}));
diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts
index 52e075006..8002b971e 100644
--- a/src/server/api/endpoints/users/recommendation.ts
+++ b/src/server/api/endpoints/users/recommendation.ts
@@ -76,7 +76,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
$nin: followingIds.concat(mutedUserIds)
},
isLocked: { $ne: true },
- lastUsedAt: {
+ updatedAt: {
$gte: new Date(Date.now() - ms('7days'))
},
host: null
diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts
index 58dbacd68..3119e20af 100644
--- a/src/server/api/stream/index.ts
+++ b/src/server/api/stream/index.ts
@@ -46,7 +46,6 @@ export default class Connection {
switch (type) {
case 'api': this.onApiRequest(body); break;
- case 'alive': this.onAlive(); break;
case 'readNotification': this.onReadNotification(body); break;
case 'subNote': this.onSubscribeNote(body); break;
case 'sn': this.onSubscribeNote(body); break; // alias
@@ -77,16 +76,6 @@ export default class Connection {
});
}
- @autobind
- private onAlive() {
- // Update lastUsedAt
- User.update({ _id: this.user._id }, {
- $set: {
- 'lastUsedAt': new Date()
- }
- });
- }
-
@autobind
private onReadNotification(payload: any) {
if (!payload.id) return;