-
-
+
+
+
+
@@ -141,7 +143,7 @@ export default defineComponent({
};
},
- widgets(): any[] {
+ widgets(): any {
if (this.$store.getters.isSignedIn) {
const widgets = this.$store.state.deviceUser.widgets;
return {
@@ -150,18 +152,24 @@ export default defineComponent({
mobile: widgets.filter(x => x.place === 'mobile'),
};
} else {
- return {
- left: [],
- right: [{
+ const right = [{
+ name: 'calendar',
+ id: 'b', place: 'right', data: {}
+ }, {
+ name: 'trends',
+ id: 'c', place: 'right', data: {}
+ }];
+
+ if (this.$route.name !== 'index') {
+ right.unshift({
name: 'welcome',
id: 'a', place: 'right', data: {}
- }, {
- name: 'calendar',
- id: 'b', place: 'right', data: {}
- }, {
- name: 'trends',
- id: 'c', place: 'right', data: {}
- }],
+ });
+ }
+
+ return {
+ left: [],
+ right,
mobile: [],
};
}
diff --git a/src/models/entities/user-profile.ts b/src/models/entities/user-profile.ts
index 0a6722aace..cf1c341182 100644
--- a/src/models/entities/user-profile.ts
+++ b/src/models/entities/user-profile.ts
@@ -149,7 +149,7 @@ export class UserProfile {
@Index()
@Column('boolean', {
- default: false,
+ default: false, select: false,
})
public enableWordMute: boolean;
diff --git a/src/remote/activitypub/kernel/like.ts b/src/remote/activitypub/kernel/like.ts
index a877110303..a6f02a1f8f 100644
--- a/src/remote/activitypub/kernel/like.ts
+++ b/src/remote/activitypub/kernel/like.ts
@@ -9,8 +9,6 @@ export default async (actor: IRemoteUser, activity: ILike) => {
const note = await fetchNote(targetUri);
if (!note) return `skip: target note not found ${targetUri}`;
- if (actor.id === note.userId) return `skip: cannot react to my note`;
-
await extractEmojis(activity.tag || [], actor.host).catch(() => null);
await create(actor, note, activity._misskey_reaction || activity.content || activity.name);
diff --git a/src/server/api/endpoints/notes/reactions/create.ts b/src/server/api/endpoints/notes/reactions/create.ts
index 6abc7e3059..9017d9f36f 100644
--- a/src/server/api/endpoints/notes/reactions/create.ts
+++ b/src/server/api/endpoints/notes/reactions/create.ts
@@ -40,12 +40,6 @@ export const meta = {
id: '033d0620-5bfe-4027-965d-980b0c85a3ea'
},
- isMyNote: {
- message: 'You can not react to your own notes.',
- code: 'IS_MY_NOTE',
- id: '7eeb9714-b047-43b5-b559-7b1b72810f53'
- },
-
alreadyReacted: {
message: 'You are already reacting to that note.',
code: 'ALREADY_REACTED',
@@ -60,7 +54,6 @@ export default define(meta, async (ps, user) => {
throw e;
});
await createReaction(user, note, ps.reaction).catch(e => {
- if (e.id === '2d8e7297-1873-4c00-8404-792c68d7bef0') throw new ApiError(meta.errors.isMyNote);
if (e.id === '51c42bb4-931a-456b-bff7-e5a8a70dd298') throw new ApiError(meta.errors.alreadyReacted);
throw e;
});
diff --git a/src/services/note/reaction/create.ts b/src/services/note/reaction/create.ts
index f3637352c0..bfa95b087b 100644
--- a/src/services/note/reaction/create.ts
+++ b/src/services/note/reaction/create.ts
@@ -15,11 +15,6 @@ import { createNotification } from '../../create-notification';
import deleteReaction from './delete';
export default async (user: User, note: Note, reaction?: string) => {
- // Myself
- if (note.userId === user.id) {
- throw new IdentifiableError('2d8e7297-1873-4c00-8404-792c68d7bef0', 'cannot react to my note');
- }
-
reaction = await toDbReaction(reaction, user.host);
const exist = await NoteReactions.findOne({