summaryrefslogtreecommitdiff
path: root/src/services/note/create.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-04-02 21:59:14 +0900
committerGitHub <noreply@github.com>2020-04-02 21:59:14 +0900
commit356225af14621d16cf1211f30ed05844a57bdcae (patch)
treeb05f2d9f50780d328b55169dccb28aaa2a1e3868 /src/services/note/create.ts
parentlint (diff)
downloadmisskey-356225af14621d16cf1211f30ed05844a57bdcae.tar.gz
misskey-356225af14621d16cf1211f30ed05844a57bdcae.tar.bz2
misskey-356225af14621d16cf1211f30ed05844a57bdcae.zip
Use url if available (#6214)
* Fix #6213 * other link * fix
Diffstat (limited to 'src/services/note/create.ts')
-rw-r--r--src/services/note/create.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 60a5a5e69d..f506337924 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -104,6 +104,7 @@ type Option = {
apHashtags?: string[] | null;
apEmojis?: string[] | null;
uri?: string | null;
+ url?: string | null;
app?: App | null;
};
@@ -407,6 +408,7 @@ async function insertNote(user: User, data: Option, tags: string[], emojis: stri
});
if (data.uri != null) insert.uri = data.uri;
+ if (data.url != null) insert.url = data.url;
// Append mentions data
if (mentionedUsers.length > 0) {