Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
69adbdef15
|
@ -71,7 +71,7 @@ export class ApNoteService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public validateNote(object: any, uri: string) {
|
public validateNote(object: IObject, uri: string) {
|
||||||
const expectHost = this.utilityService.extractDbHost(uri);
|
const expectHost = this.utilityService.extractDbHost(uri);
|
||||||
|
|
||||||
if (object == null) {
|
if (object == null) {
|
||||||
|
@ -86,8 +86,9 @@ export class ApNoteService {
|
||||||
return new Error(`invalid Note: id has different host. expected: ${expectHost}, actual: ${this.utilityService.extractDbHost(object.id)}`);
|
return new Error(`invalid Note: id has different host. expected: ${expectHost}, actual: ${this.utilityService.extractDbHost(object.id)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (object.attributedTo && this.utilityService.extractDbHost(getOneApId(object.attributedTo)) !== expectHost) {
|
const actualHost = object.attributedTo && this.utilityService.extractDbHost(getOneApId(object.attributedTo));
|
||||||
return new Error(`invalid Note: attributedTo has different host. expected: ${expectHost}, actual: ${this.utilityService.extractDbHost(object.attributedTo)}`);
|
if (object.attributedTo && actualHost !== expectHost) {
|
||||||
|
return new Error(`invalid Note: attributedTo has different host. expected: ${expectHost}, actual: ${actualHost}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<MkAvatar :class="$style.avatar" :user="u"/>
|
<MkAvatar :class="$style.avatar" :user="u"/>
|
||||||
<MkUserName :user="u" :nowrap="true"/>
|
<MkUserName :user="u" :nowrap="true"/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="users.length > 10">+{{ count - 10 }}</div>
|
<div v-if="users.length > 10" :class="$style.more">+{{ count - 10 }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</MkTooltip>
|
</MkTooltip>
|
||||||
|
@ -50,7 +50,9 @@ function getReactionName(reaction: string): string {
|
||||||
|
|
||||||
.reaction {
|
.reaction {
|
||||||
max-width: 100px;
|
max-width: 100px;
|
||||||
|
padding-right: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-right: solid 0.5px var(--divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reactionIcon {
|
.reactionIcon {
|
||||||
|
@ -66,25 +68,20 @@ function getReactionName(reaction: string): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
.users {
|
.users {
|
||||||
|
contain: content;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
margin: -4px 14px 0 10px;
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
border-left: solid 0.5px var(--divider);
|
|
||||||
padding-left: 10px;
|
|
||||||
margin-left: 10px;
|
|
||||||
margin-right: 14px;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user {
|
.user {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
padding-top: 4px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
&:not(:last-child) {
|
|
||||||
margin-bottom: 3px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
@ -92,4 +89,8 @@ function getReactionName(reaction: string): string {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.more {
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue