mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 05:31:48 +00:00
feat: traer información de perfil remoto vinculado al comentario #15039
This commit is contained in:
parent
2f803f9ea6
commit
1b0fb009f4
3 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,10 @@ class ModerationQueueController < ApplicationController
|
|||
# Cola de moderación viendo todo el sitio
|
||||
def index
|
||||
@moderation_queue = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'moderation_queue.yaml')))
|
||||
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
|
||||
@moderation_queue.each do |activity|
|
||||
activity['attributedTo'] = @remote_profile
|
||||
end
|
||||
end
|
||||
|
||||
# Perfil remoto de usuarie
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%p= comment['published'].to_datetime.strftime('%m/%d/%Y')
|
||||
.col.border.border-white
|
||||
%span.mr-2= t('.source_profile')
|
||||
%a{:href => comment['attributedTo']}= comment['attributedTo'] #falta parsear
|
||||
%a{:href => comment['attributedTo']}= profile['preferredUsername']
|
||||
.row.border.border-white
|
||||
%p.mr-3= t('.reply_to')
|
||||
%span
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'moderation_queue/comment_filter_box'
|
||||
- @moderation_queue.each do |comment|
|
||||
|
||||
= render 'comment', comment: comment
|
||||
= render 'comment', comment: comment, profile: @remote_profile
|
||||
= render 'moderation_queue/comment_button_box'
|
Loading…
Reference in a new issue