app/presenters/decidim/proposals/proposal_presenter.rb in decidim-proposals-0.18.1 vs app/presenters/decidim/proposals/proposal_presenter.rb in decidim-proposals-0.19.0
- old
+ new
@@ -16,12 +16,14 @@
Decidim::Proposals::OfficialAuthorPresenter.new
else
coauthorship = coauthorships.first
if coauthorship.user_group
Decidim::UserGroupPresenter.new(coauthorship.user_group)
- else
+ elsif coauthorship.author.is_a?(Decidim::User)
Decidim::UserPresenter.new(coauthorship.author)
+ elsif coauthorship.author.is_a?(Decidim::Meeting)
+ Decidim::MeetingPresenter.new(coauthorship.author)
end
end
end
def proposal
@@ -55,10 +57,10 @@
text = strip_tags(text) if strip_tags
renderer = Decidim::ContentRenderers::HashtagRenderer.new(text)
text = renderer.render(links: links, extras: extras).html_safe
- text = Anchored::Linker.auto_link(text, target: "_blank", rel: "noopener") if links
+ text = Decidim::ContentRenderers::LinkRenderer.new(text).render if links
text
end
end
end
end