about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-02-11 22:20:19 +0100
committerGitHub <noreply@github.com>2022-02-11 22:20:19 +0100
commit8f03b7a2fb4b420eb46942157160816185e81751 (patch)
tree125819d272db5626bbd41406c633ef39ccd334da /app/serializers
parentd0fcf07436d158bcac2617d076a83d0aa49c39e6 (diff)
Add notifications when a reblogged status has been updated (#17404)
* Add notifications when a reblogged status has been updated

* Change wording to say "edit" instead of "update" and add missing controls

* Replace previous update notifications with the most up-to-date one
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/notification_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/notification_serializer.rb b/app/serializers/rest/notification_serializer.rb
index 27b031fcc..69b81f6de 100644
--- a/app/serializers/rest/notification_serializer.rb
+++ b/app/serializers/rest/notification_serializer.rb
@@ -11,6 +11,6 @@ class REST::NotificationSerializer < ActiveModel::Serializer
   end
 
   def status_type?
-    [:favourite, :reblog, :status, :mention, :poll].include?(object.type)
+    [:favourite, :reblog, :status, :mention, :poll, :update].include?(object.type)
   end
 end