Merge remote-tracking branch 'upstream/develop' into develop
[akkoma] / lib / pleroma / web / activity_pub / side_effects.ex
index a93961922e54719ea7b7d71b7e04e4d1a54d1660..0460289b77c63152dbd9f6bd16ff14ae5a4274c3 100644 (file)
@@ -199,8 +199,9 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
          %User{} = user <- User.get_cached_by_ap_id(activity.data["actor"]) do
       {:ok, notifications} = Notification.create_notifications(activity, do_send: false)
       {:ok, _user} = ActivityPub.increase_note_count_if_public(user, object)
+      {:ok, _user} = ActivityPub.update_last_status_at_if_public(user, object)
 
-      if in_reply_to = object.data["inReplyTo"] && object.data["type"] != "Answer" do
+      if in_reply_to = object.data["type"] != "Answer" && object.data["inReplyTo"] do
         Object.increase_replies_count(in_reply_to)
       end