diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-12-01 07:15:10 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-01 07:15:10 +0900 |
| commit | f2b1cf92e1ab683c680d5da4ccd55733d8feff56 (patch) | |
| tree | 1889f8cd5703fdab180766738bdd8c71e6be8294 /src/remote/activitypub/models/note.ts | |
| parent | Use for-of instead of map (diff) | |
| download | sharkey-f2b1cf92e1ab683c680d5da4ccd55733d8feff56.tar.gz sharkey-f2b1cf92e1ab683c680d5da4ccd55733d8feff56.tar.bz2 sharkey-f2b1cf92e1ab683c680d5da4ccd55733d8feff56.zip | |
AP CW (#3448)
Diffstat (limited to 'src/remote/activitypub/models/note.ts')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 0f0f0bc2bf..9fc03c777d 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -103,6 +103,8 @@ export async function createNote(value: any, resolver?: Resolver, silent = false quote = await resolveNote(note._misskey_quote).catch(() => null); } + const cw = note.summary === '' ? null : note.summary; + // テキストのパース const text = note._misskey_content ? note._misskey_content : htmlToMFM(note.content); @@ -120,7 +122,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false files: files, reply, renote: quote, - cw: note.summary, + cw: cw, text: text, viaMobile: false, localOnly: false, |