brings back extra security checks
This commit is contained in:
@@ -13,7 +13,9 @@ module UsersHelper
|
|||||||
|
|
||||||
def comment_commentable_title(comment)
|
def comment_commentable_title(comment)
|
||||||
commentable = comment.commentable
|
commentable = comment.commentable
|
||||||
if commentable.hidden?
|
if commentable.nil?
|
||||||
|
deleted_commentable_text(comment)
|
||||||
|
elsif commentable.hidden?
|
||||||
"<abbr title='#{deleted_commentable_text(comment)}'>".html_safe +
|
"<abbr title='#{deleted_commentable_text(comment)}'>".html_safe +
|
||||||
commentable.title +
|
commentable.title +
|
||||||
"</abbr>".html_safe
|
"</abbr>".html_safe
|
||||||
@@ -28,6 +30,8 @@ module UsersHelper
|
|||||||
t("users.show.deleted_proposal")
|
t("users.show.deleted_proposal")
|
||||||
when "Debate"
|
when "Debate"
|
||||||
t("users.show.deleted_debate")
|
t("users.show.deleted_debate")
|
||||||
|
else
|
||||||
|
t("users.show.deleted")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ en:
|
|||||||
other: "%{count} Comments"
|
other: "%{count} Comments"
|
||||||
no_activity: "User has no public activity"
|
no_activity: "User has no public activity"
|
||||||
private_activity: "This user decided to keep the activity list private"
|
private_activity: "This user decided to keep the activity list private"
|
||||||
|
deleted: "Deleted"
|
||||||
deleted_debate: "This debate has been deleted"
|
deleted_debate: "This debate has been deleted"
|
||||||
deleted_proposal: "This proposal has been deleted"
|
deleted_proposal: "This proposal has been deleted"
|
||||||
unauthorized:
|
unauthorized:
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ es:
|
|||||||
other: "%{count} Comentarios"
|
other: "%{count} Comentarios"
|
||||||
no_activity: "Usuario sin actividad pública"
|
no_activity: "Usuario sin actividad pública"
|
||||||
private_activity: "Este usuario ha decidido mantener en privado su lista de actividades"
|
private_activity: "Este usuario ha decidido mantener en privado su lista de actividades"
|
||||||
|
deleted: "Eliminado"
|
||||||
deleted_debate: "Este debate ha sido eliminado"
|
deleted_debate: "Este debate ha sido eliminado"
|
||||||
deleted_proposal: "Este propuesta ha sido eliminada"
|
deleted_proposal: "Este propuesta ha sido eliminada"
|
||||||
unauthorized:
|
unauthorized:
|
||||||
|
|||||||
Reference in New Issue
Block a user