Count and display post quotes
This commit is contained in:
parent
4c5b45ed73
commit
9a063deacc
14 changed files with 292 additions and 3 deletions
|
|
@ -209,6 +209,10 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
Object.increase_replies_count(in_reply_to)
|
||||
end
|
||||
|
||||
if quote_url = object.data["quoteUrl"] do
|
||||
Object.increase_quotes_count(quote_url)
|
||||
end
|
||||
|
||||
reply_depth = (meta[:depth] || 0) + 1
|
||||
|
||||
# FIXME: Force inReplyTo to replies
|
||||
|
|
@ -305,6 +309,10 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
Object.decrease_replies_count(in_reply_to)
|
||||
end
|
||||
|
||||
if quote_url = deleted_object.data["quoteUrl"] do
|
||||
Object.decrease_quotes_count(quote_url)
|
||||
end
|
||||
|
||||
MessageReference.delete_for_object(deleted_object)
|
||||
|
||||
ap_streamer().stream_out(object)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue