mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
UX: Strip class when link is not oneboxed due to site setting limits.
This commit is contained in:
@ -447,7 +447,12 @@ class CookedPostProcessor
|
||||
skip_onebox = limit <= 0 && !map[url]
|
||||
|
||||
if skip_onebox
|
||||
remove_inline_onebox_loading_class(element) unless is_onebox
|
||||
if is_onebox
|
||||
element.remove_class('onebox')
|
||||
else
|
||||
remove_inline_onebox_loading_class(element)
|
||||
end
|
||||
|
||||
next
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user