Skip to content

Commit 68f456e

Browse files
Improve official author presenter identification in card cell
1 parent bc26866 commit 68f456e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

decidim-core/app/cells/decidim/card_cell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def published_at
8383
end
8484

8585
def official_author?
86-
["Decidim::Proposals::OfficialAuthorPresenter", "Decidim::Debates::OfficialAuthorPresenter"].include? model.class.to_s
86+
model.is_a? Decidim::OfficialAuthorPresenter
8787
end
8888

8989
def user_or_user_group?

0 commit comments

Comments
 (0)