summaryrefslogtreecommitdiff
path: root/src/services/blocking
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-30 14:34:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-30 14:34:32 +0900
commit7afa541a53c1b00e8f7fb6f5d211789b3e4c52bb (patch)
treec436302533b1d4fdae91eb87b31cc003077a4294 /src/services/blocking
parentRefactor (diff)
downloadsharkey-7afa541a53c1b00e8f7fb6f5d211789b3e4c52bb.tar.gz
sharkey-7afa541a53c1b00e8f7fb6f5d211789b3e4c52bb.tar.bz2
sharkey-7afa541a53c1b00e8f7fb6f5d211789b3e4c52bb.zip
Fix #3040
Diffstat (limited to 'src/services/blocking')
-rw-r--r--src/services/blocking/create.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/services/blocking/create.ts b/src/services/blocking/create.ts
index 11b2954af6..2998cdd78c 100644
--- a/src/services/blocking/create.ts
+++ b/src/services/blocking/create.ts
@@ -60,7 +60,9 @@ async function cancelRequest(follower: IUser, followee: IUser) {
}
if (isLocalUser(follower)) {
- packUser(followee, follower).then(packed => publishMainStream(follower._id, 'unfollow', packed));
+ packUser(followee, follower, {
+ detail: true
+ }).then(packed => publishMainStream(follower._id, 'unfollow', packed));
}
// リモートにフォローリクエストをしていたらUndoFollow送信
@@ -110,7 +112,9 @@ async function unFollow(follower: IUser, followee: IUser) {
// Publish unfollow event
if (isLocalUser(follower)) {
- packUser(followee, follower).then(packed => publishMainStream(follower._id, 'unfollow', packed));
+ packUser(followee, follower, {
+ detail: true
+ }).then(packed => publishMainStream(follower._id, 'unfollow', packed));
}
// リモートにフォローをしていたらUndoFollow送信