mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 05:42:03 -04:00
Merge pull request #559 from ZogStriP/fix-exception-when-wrong-resource-type-in-url
[fixes #391] exception when wrong resource type in URL
This commit is contained in:
commit
b1d1ab7d2b
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
# If we are rendering HTML, preload the session data
|
# If we are rendering HTML, preload the session data
|
||||||
def preload_json
|
def preload_json
|
||||||
if request.format.html?
|
if request.format && request.format.html?
|
||||||
if guardian.current_user
|
if guardian.current_user
|
||||||
guardian.current_user.sync_notification_channel_position
|
guardian.current_user.sync_notification_channel_position
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue