summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/context.ts
diff options
context:
space:
mode:
authorこぴなたみぽ <syuilotan@yahoo.co.jp>2017-11-01 10:22:40 +0900
committerこぴなたみぽ <syuilotan@yahoo.co.jp>2017-11-01 10:22:40 +0900
commit60a7640eb1547dc61997ba5db1eb2c28bdec33a0 (patch)
tree8c0cfd5167e06d81b74efa2bca1f9bb5ab5a8e09 /src/api/endpoints/posts/context.ts
parentv2777 (diff)
downloadsharkey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.tar.gz
sharkey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.tar.bz2
sharkey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.zip
RENAME: reply_to -> reply
Diffstat (limited to 'src/api/endpoints/posts/context.ts')
-rw-r--r--src/api/endpoints/posts/context.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/posts/context.ts b/src/api/endpoints/posts/context.ts
index cd5f15f481..bad59a6bee 100644
--- a/src/api/endpoints/posts/context.ts
+++ b/src/api/endpoints/posts/context.ts
@@ -49,13 +49,13 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
return;
}
- if (p.reply_to_id) {
- await get(p.reply_to_id);
+ if (p.reply_id) {
+ await get(p.reply_id);
}
}
- if (post.reply_to_id) {
- await get(post.reply_to_id);
+ if (post.reply_id) {
+ await get(post.reply_id);
}
// Serialize