summaryrefslogtreecommitdiff
path: root/src/api/bot
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:46:11 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:46:11 +0900
commit1acc30822d869fcd4edf70fd8a8dca72f21c8730 (patch)
tree1c452aa0bf777f1cce35b3f21535ee698d3d151e /src/api/bot
parentwip (diff)
downloadsharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.tar.gz
sharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.tar.bz2
sharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.zip
wip
Diffstat (limited to 'src/api/bot')
-rw-r--r--src/api/bot/core.ts4
-rw-r--r--src/api/bot/interfaces/line.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/api/bot/core.ts b/src/api/bot/core.ts
index 9e699572de..ec7c935f9e 100644
--- a/src/api/bot/core.ts
+++ b/src/api/bot/core.ts
@@ -297,7 +297,7 @@ class TlContext extends Context {
private async getTl() {
const tl = await require('../endpoints/posts/timeline')({
limit: 5,
- until_id: this.next ? this.next : undefined
+ untilId: this.next ? this.next : undefined
}, this.bot.user);
if (tl.length > 0) {
@@ -349,7 +349,7 @@ class NotificationsContext extends Context {
private async getNotifications() {
const notifications = await require('../endpoints/i/notifications')({
limit: 5,
- until_id: this.next ? this.next : undefined
+ untilId: this.next ? this.next : undefined
}, this.bot.user);
if (notifications.length > 0) {
diff --git a/src/api/bot/interfaces/line.ts b/src/api/bot/interfaces/line.ts
index dc600125c5..296b42a284 100644
--- a/src/api/bot/interfaces/line.ts
+++ b/src/api/bot/interfaces/line.ts
@@ -130,7 +130,7 @@ class LineBot extends BotCore {
altText: await super.showUserCommand(q),
template: {
type: 'buttons',
- thumbnailImageUrl: `${user.avatar_url}?thumbnail&size=1024`,
+ thumbnailImageUrl: `${user.avatarUrl}?thumbnail&size=1024`,
title: `${user.name} (@${acct})`,
text: user.description || '(no description)',
actions: actions