Skip to content
Extraits de code Groupes Projets
Valider 66a21075 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Turns out that replies don't have to have the type comment. Changed handling

of those to depend on presence of <thr:in-reply-to /> instead
parent 111f2a1d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -26,12 +26,14 @@ class ProcessFeedService < BaseService ...@@ -26,12 +26,14 @@ class ProcessFeedService < BaseService
status = Status.new(uri: activity_id(entry), url: activity_link(entry), account: account, text: content(entry), created_at: published(entry), updated_at: updated(entry)) status = Status.new(uri: activity_id(entry), url: activity_link(entry), account: account, text: content(entry), created_at: published(entry), updated_at: updated(entry))
if object_type(entry) == :comment && verb(entry) == :post if verb(entry) == :share
add_reply!(entry, status)
elsif verb(entry) == :share
add_reblog!(entry, status) add_reblog!(entry, status)
elsif verb(entry) == :post elsif verb(entry) == :post
add_post!(entry, status) if thread_id(entry).nil?
add_post!(entry, status)
else
add_reply!(entry, status)
end
end end
# If we added a status, go through accounts it mentions and create respective relations # If we added a status, go through accounts it mentions and create respective relations
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter