diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-07-22 17:42:15 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-07-22 17:42:15 +0200 |
commit | 72ca58c540ee03de50631ea08a419f2589a0fe8e (patch) | |
tree | f3202dbb9cdfa2b9399d5584c03ba0dd2ff917cd /lib/pleroma/web/twitter_api/twitter_api.ex | |
parent | a027b0027cc06609b112d4341348734c1378d6f2 (diff) | |
download | pleroma-72ca58c540ee03de50631ea08a419f2589a0fe8e.tar.gz |
Save follower count and note count in user.
Diffstat (limited to 'lib/pleroma/web/twitter_api/twitter_api.ex')
-rw-r--r-- | lib/pleroma/web/twitter_api/twitter_api.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 04c1d914c..dc66e27ad 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -39,7 +39,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do context <- make_context(inReplyTo), tags <- Formatter.parse_tags(status), object <- make_note_data(user.ap_id, to, context, content_html, attachments, inReplyTo, tags) do - ActivityPub.create(to, user, context, object) + res = ActivityPub.create(to, user, context, object) + User.update_note_count(user) + res end end |