You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stjepan Osojnički 9b491e4c2e Add post images hook (#5828)
* Add post images hook

This hook would allow plugins to manipulate images inside posts  after images are manipulated by nodebb (for example, delay loading). Without this hook we can manipulate images by searching post data for them and manipulate that data, but any change on that level is either erased by nodebb once image loading starts (if delay is turned on) or it disables native image behaviour by changing image code so native behaviour is not triggered.
Hook at this place works for both delayed loading turned on and off.
Usage for this kind of hook was talked about here: https://community.nodebb.org/topic/10960/opening-uploaded-images-in-modal-windows

* trying to fix Travis error

* Update images.js

Hook moved out of wrapImagesInLinks function to places where images are actually loaded. One of the places is inside unloadImage function but in place where loading is happening because of failed if check (delayImageLoading not se in users configuration).
8 years ago
..
admin less padding, closes #5811 8 years ago
client Add post images hook (#5828) 8 years ago
installer ESlint no-unused-vars 8 years ago
modules closes #4197 8 years ago
ajaxify.js Widgets refactor (#5817) 8 years ago
app.js fix eslint 8 years ago
overrides.js add back timeago.allowFuture so we can notify when a ban will expire 8 years ago
require-config.js ESlint strict 8 years ago
sockets.js refactor ban messaging; add ban duration to message; use bootbox instead of alert 8 years ago
utils.js #5772 8 years ago
widgets.js remove ajaxify.widgets.reposition 8 years ago