mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 10:05:46 +01:00
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
bb9fc56cc1
3 changed files with 12 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## 12.x.x (unreleased)
|
## 12.x.x (unreleased)
|
||||||
|
- ActivityPub: deliverキューのメモリ使用量を削減
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- ActivityPub: リモートユーザーのDeleteアクティビティに対応
|
- ActivityPub: リモートユーザーのDeleteアクティビティに対応
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
<MkA class="name" :to="userPage(note.user)" v-user-preview="note.user.id">
|
<MkA class="name" :to="userPage(note.user)" v-user-preview="note.user.id">
|
||||||
<MkUserName :user="note.user"/>
|
<MkUserName :user="note.user"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
<span class="is-bot" v-if="note.user.isBot">bot</span>
|
<div class="is-bot" v-if="note.user.isBot">bot</div>
|
||||||
<span class="username"><MkAcct :user="note.user"/></span>
|
<div class="username"><MkAcct :user="note.user"/></div>
|
||||||
<span class="admin" v-if="note.user.isAdmin"><i class="fas fa-bookmark"></i></span>
|
<div class="admin" v-if="note.user.isAdmin"><i class="fas fa-bookmark"></i></div>
|
||||||
<span class="moderator" v-if="!note.user.isAdmin && note.user.isModerator"><i class="far fa-bookmark"></i></span>
|
<div class="moderator" v-if="!note.user.isAdmin && note.user.isModerator"><i class="far fa-bookmark"></i></div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="mobile" v-if="note.viaMobile"><i class="fas fa-mobile-alt"></i></span>
|
<span class="mobile" v-if="note.viaMobile"><i class="fas fa-mobile-alt"></i></span>
|
||||||
<MkA class="created-at" :to="notePage(note)">
|
<MkA class="created-at" :to="notePage(note)">
|
||||||
|
@ -55,6 +55,7 @@ export default defineComponent({
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
> .name {
|
> .name {
|
||||||
|
flex-shrink: 1;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 .5em 0 0;
|
margin: 0 .5em 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -81,17 +82,20 @@ export default defineComponent({
|
||||||
|
|
||||||
> .admin,
|
> .admin,
|
||||||
> .moderator {
|
> .moderator {
|
||||||
|
flex-shrink: 0;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
color: var(--badge);
|
color: var(--badge);
|
||||||
}
|
}
|
||||||
|
|
||||||
> .username {
|
> .username {
|
||||||
|
flex-shrink: 9999999;
|
||||||
margin: 0 .5em 0 0;
|
margin: 0 .5em 0 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .info {
|
> .info {
|
||||||
|
flex-shrink: 0;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,9 @@ export function deliver(user: ThinUser, content: unknown, to: string | null) {
|
||||||
if (to == null) return null;
|
if (to == null) return null;
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
user,
|
user: {
|
||||||
|
id: user.id
|
||||||
|
},
|
||||||
content,
|
content,
|
||||||
to
|
to
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue