From bd1b7099b4fcc8100f104fa55c29a01b89b86ece Mon Sep 17 00:00:00 2001
From: shibafu <shibafu528@gmail.com>
Date: Sat, 8 Jun 2019 14:56:22 +0900
Subject: [PATCH] =?UTF-8?q?[mastodon]=20=E3=83=95=E3=82=A9=E3=83=AD?=
 =?UTF-8?q?=E3=83=BC=E9=96=A2=E4=BF=82=E3=81=AE=E5=8F=96=E5=BE=97=E9=80=9A?=
 =?UTF-8?q?=E7=9F=A5=E3=82=92system=E3=81=8B=E3=82=89=E9=9A=94=E9=9B=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

refs #1343
---
 core/plugin/mastodon/mastodon.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/plugin/mastodon/mastodon.rb b/core/plugin/mastodon/mastodon.rb
index 70bc7347..a5804b3f 100644
--- a/core/plugin/mastodon/mastodon.rb
+++ b/core/plugin/mastodon/mastodon.rb
@@ -36,6 +36,8 @@ Plugin.create(:mastodon) do
 
   defevent :mastodon_appear_toots, prototype: [[pm::Status]]
 
+  defactivity :mastodon_followings_update, "プロフィール・フォロー関係の取得通知(Mastodon)"
+
   filter_extract_datasources do |dss|
     datasources = { mastodon_appear_toots: "受信したすべてのトゥート(Mastodon)" }
     [datasources.merge(dss)]
@@ -46,14 +48,14 @@ Plugin.create(:mastodon) do
   end
 
   followings_updater = Proc.new do
-    activity(:system, "自分のプロフィールやフォロー関係を取得しています...")
+    activity(:mastodon_followings_update, "自分のプロフィールやフォロー関係を取得しています...")
     Plugin.filtering(:mastodon_worlds, nil).first.to_a.each do |world|
       Delayer::Deferred.when(
         world.update_account,
         world.blocks,
         world.followings(cache: false)
       ).next{
-        activity(:system, "自分のプロフィールやフォロー関係の取得が完了しました(#{world.account.acct})")
+        activity(:mastodon_followings_update, "自分のプロフィールやフォロー関係の取得が完了しました(#{world.account.acct})")
         Plugin.call(:world_modify, world)
       }.terminate("自分のプロフィールやフォロー関係が取得できませんでした(#{world.account.acct})")
     end
-- 
2.21.0

