Skip to content

Commit

Permalink
diaspora#8239 Shorten Report text in reported posts list
Browse files Browse the repository at this point in the history
  • Loading branch information
tclaus committed Nov 9, 2021
1 parent 7b119b9 commit 0073812
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app/helpers/report_helper.rb
Expand Up @@ -40,25 +40,6 @@ def link_to_content(report)
end
end

def link_to_content(report)
case (item = report.item)
when Post
link_to("", post_path(item.id),
{title: "View reported element",
class: "entypo-eye",
target: "_blank",
rel: "noopener"})
when Comment
link_to("", post_path(item.post.id, anchor: item.guid),
{title: "View reported comment",
class: "entypo-eye",
target: "_blank",
rel: "noopener"})
else
t("report.not_found")
end
end

def unreviewed_reports_count
@unreviewed_reports_count ||= Report.where(reviewed: false).size
end
Expand Down

0 comments on commit 0073812

Please sign in to comment.