Skip to content

Commit

Permalink
Updating plugin to work with Discourse v2.4.0.beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvlopes committed Aug 15, 2019
1 parent e645057 commit 08dda70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.rb
Expand Up @@ -73,7 +73,7 @@ def self.reset_anonymous_categories_cache
end
end

anon_user = shadow || AnonymousShadowCreator.create_shadow(user)
anon_user = shadow || AnonymousShadowCreator.get(user)

# The client-side UI seems to get upset if the returned post was made by
# "another" user, and will refuse to clear the field. Instead, we act as
Expand All @@ -87,7 +87,7 @@ def self.reset_anonymous_categories_cache
result.check_errors_from(creator)

if result.success?
result.queued_post = post
result.post = post
result.pending_count = 0
result.reason = :force_anonymous_post
else
Expand Down

0 comments on commit 08dda70

Please sign in to comment.